help with types and buttons

BlitzMax Forums/BlitzMax Beginners Area/help with types and buttons

danielos(Posted 2008) [#1]
Hello!

I just created a TButton type (for my own buttons, obviously ^^ )
It works fine by know to set them up, but I have no clues how to manage the EVENT_MOUSEENTER, EVENT_MOUSELEAVE and EVENT_MOUSEDOWN actions inside the type definitions...
Can someone help please ?
Thanks in advance,

Daniel


jsp(Posted 2008) [#2]
You may want to have a look at CS_TBL' s Imagebutton as a good example how to implement OnEvent Methods and Hook Functions.

http://www.blitzbasic.com/codearcs/codearcs.php?code=1750


A good discussion about hooks can also be found here:

http://www.blitzbasic.com/Community/posts.php?topic=79728


danielos(Posted 2008) [#3]
thank you, didn't find these posts...

Daniel