U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » About Events ...
About Events ... [message #420] Sun, 25 December 2005 19:45 Go to next message
funnyman is currently offline  funnyman
Messages: 4
Registered: December 2005
Location: BG
Junior Member

Hi.

How i can use "on_mouse_enter" event (or others)
for Button widget without inheritance of the
Button class ? ...using the callback system.

thanks.


Re: About Events ... [message #422 is a reply to message #420] Mon, 26 December 2005 00:24 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
You cannot Smile

Use inheritance. You can however create your own derived button class that has WhenMouseEnter callback.

The thing is that this case is quite special it it is not worth to add necessary code and data to each widget....

Alternatively, there is a possibility of MouseHooks...

Mirek
Previous Topic: widgets allocation - if not on the heap then - where?
Next Topic: Socket-Help me!
Goto Forum:
  


Current Time: Wed May 06 00:58:32 GMT+2 2026

Total time taken to generate the page: 0.00439 seconds