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 » 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 Go to previous messageGo to previous message
mirek is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Could anyone create a small example with the new ScrollArea?
Next Topic: changing Ctr pos, react on mouse evnt
Goto Forum:
  


Current Time: Sat Jun 07 21:26:43 CEST 2025

Total time taken to generate the page: 0.23567 seconds