Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Add Ctrls to ArrayCtrl
Re: Add Ctrls to ArrayCtrl [message #20071 is a reply to message #20069] Mon, 16 February 2009 10:51 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
MatthiasG wrote on Mon, 16 February 2009 03:59

Hello,

i have a class derived from ParentCtrl, consisting of a button and a few EditStrings. I want this to show up in a column of an ArrayCtrl. In my ArrayCtrl i did the following:

	array.AddColumn ("Column1", 1).Ctrls<MyLayout>();
	array.Add();
	array.Add();


At first, it seemed to work, my Ctrl is showing in the ArrayCtrl, but it seems that it is eating all mouse-events. No Mousewheel is possible, and no rmb menu is showing up.
What can i do, to make this work?

greetings,
Matthias



Err, and what have you expected? U++ delivers mouse events to widget with mouse pointer.

However, MyLayout suggests that it is in fact some sort of minidialog. There is magic "IgnoreMouse" modifier that will deliver the mouse events to parent widget. Maybe if you activate this for your layout ParentCtrl, you will get what you desire. You can use IgnoreMouse for any Ctrl, but of course, ignoring mouse inputs is not always what you want to achieve.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: AcceptRow broken when SetCtrl is used
Next Topic: Assertion in GridCtrl on Linux
Goto Forum:
  


Current Time: Sun Jun 09 07:49:00 CEST 2024

Total time taken to generate the page: 0.00902 seconds