[Gambas-user] Switching between forms in tabstrip
M0E Lnx
m0e.lnx at ...626...
Wed Feb 25 19:04:23 CET 2009
The form does have a keypress() event.
If you are using a workspace to host(embed) other forms into one host
form, you'll have to declare a variable that holds the current object
in the workspace, and address the correct object.
For example.
PUBLIC $CurrentObject as Object
on the guest forms open() event... you set this variable.
PUBLIC SUB Form_Open()
Fmain.$CurrentObject = me ' FMAIN is your host form (name it whatever you want)
END
That will give you a common ground to use the host form's _keypress() event
Of course, there must be better ways to do this, but I have used this
method in the past and it works for me
More information about the User
mailing list