Define An Event From a Class
Posted
#1
(In Topic #330)
Regular

/comp/gb.qt4/control/.mousedown - Gambas Documentation
I can do it from the form, but this is overly complicated for more than one instance. What I am wondering is if there is a way to define code for this event in the class file.
Here is pseudo code to show what I am looking for:
Code
Public Sub _MouseDown()
Me.Tag = "Clicked!"
End
Is this possible?
Posted
Guru

Posted
Regular

Great minds thing alike.
:ugeek:
Your use of LAST is better than my solution though, which was to check which ones were triggering .Hovered, so thanks for that.
1 guest and 0 members have just viewed this.


