[Gambas-user] What has happened to ValueBox
Benoît Minisini
gambas at ...1...
Fri Dec 17 13:41:37 CET 2010
> In Gambas 2 I had a number of Value Boxes which I assigned to Group
> "Value". Then I would identify the calling box in code as follows:
> Public Sub Value_GotFocus()
> dim txtTemp as valueBox = LAST
> SELECT CASE txtTemp.Name 'Returns name of calling Value Box
> <various actions>
>
> In Gambas 3 I got an error because the Value boxes are recognised as
> plain text boxes not as Value boxes. I changed my code (Dim txtTemp as
> Textbox) but when reading the LAST.Name it returns "TextBox". It is
> returning the type not the name I assigned to the textbox.
>
> The group feature was great for preventing repetitive code but this
> functionality appears to have gone. I must write similar code for each
> TextBox_GotFocus event.
>
> Regards
> Michael
>
ValueBox exists in Gambas 3, so I don't understand what error you are talking
about. ValueBox are not "recognized as plain text boxes", whatever that
means...
Can you explain better what happens to you?
--
Benoît Minisini
More information about the User
mailing list