Home » U++ Library support » U++ Widgets - General questions or Mixed problems » how to add runtime StaticText and hook mouse events for it
Re: how to add runtime StaticText and hook mouse events for it [message #3369 is a reply to message #3366] |
Mon, 22 May 2006 10:59   |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
qwerty wrote on Mon, 22 May 2006 04:21 | ...tried few methods, but all fail, including overriding virtual metods.
Experimenting with something like that:
It wont even react on clicks.... am I missing something?
|
StaticText has "IgnoreMouse" flag, that is why it does not recieve any mouse events. If you insist on deriving from it and overriding mouse virtuals, you should call NoIgnoreMouse in constructor...
(BTW, the reason for IgnoreMouse is that this way, labels and label boxes do not prevent other ctrls, whose rectangles they often intersect, recieving mouse events).
Mirek
|
|
|
Goto Forum:
Current Time: Sat Jun 07 21:26:43 CEST 2025
Total time taken to generate the page: 0.23567 seconds
|