[Gambas-user] Feature request
R. Stormo
rohnny at ...1248...
Mon Nov 6 20:28:54 CET 2006
Charlie Reinl wrote:
>
> Salut Rohnny,
>
> Am Montag, den 06.11.2006, 09:58 -0800 schrieb R. Stormo:
>> Wonder if there is a possibility to include both group_keypress and
>> object_keypress in a later release.
>> Is sometimes there would be needed to check
>> sub MyGroup_keypress()
>> 'Some of the elements have changed
>> haschanged=true
>> end sub
>>
>>
>> sub TextBox1_keypress()
>> some change specified only to this box
>>
>> end sub
>> sub TextBox2_keypress()
>> some change to this box.
>> end usb
>>
>> Does this make sense?
>
> NO. That makes no sense.
>
> Use the LAST Keyword to find out which of the grouped Objects has sended
> the keypress.
>
> Usually it's LAST.TAG ,so you have to give a unique TAG to all of these
> Objects grouped in 'MyGroup'.
>
> In a groupe you can take all different kinds of components/objects, so
> you have 1 SUB where the keypressed of an form is handled.
>
> Amicalment
> Charlie
>>
>>
>> Regards Rohnny
>
>
Thanks for that tip. That should also do the trick and it was not on my
mind.
Have you a solution for this.?
Have a group of 7 fields and want to pass the object to a sub/function
Lets now use the tag in this also if it's possible. The tag have the same as
name as
textbox. Lets say TextBox 1..7
sub group_Leave()
' usage: myroutine(myTextBox as textbox)
myrutine(Last.Tag)
end sub
or do I need to do it the hard way.??
select case last.tag
case "TextBox1"
myrutine(TextBox1)
case "TextBox2"
myrutine(TextBox2)
end select
If it does not exist it would be nice to have a routine so we could pass
object.
C have something like that I think
MyVariable = "TextBox1"
MyVariable.Text ="Hello"
Regards Rohnny
My Gambas Community http://gambasforum.tk
--
View this message in context: http://www.nabble.com/Feature-request-tf2583986.html#a7205419
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list