Il 10/02/2015 16:37, Rolf-Werner Eilert ha scritto:
> Or even simpler: set Background and Foreground colors appropriately and
> give the help text as default text for the Textbox. Then wait for the
> first letter to be typed or a mouse click into the textbox, delete the
> default text, set Background and Foreground to standard values and start
> with the typed text.
>
> Rolf
>
>
> Am 10.02.2015 14:03, schrieb Yahoo:
>> Hi Benoit,
>>
>> Do you think if it's possible to add feature in text box object like a text 
>> as a king of help displayed into the textbook in light grey for example when 
>> this one is empty. As soon something is entered into the textbook, this text 
>> could disappear.
>>
>> It could be very useful to help the user of a software to know what do enter 
>> in some fields
>>
>> Olivier
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming. The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

Something like (a little silly) :)


Private $iChange As Integer


Public Sub TextBox1_Change()

   Inc $iChange
   If $iChange = 2 Then
     Label1.Visible = False
   Endif
   $iChange = 1

End

Public Sub TextBox1_LostFocus()

   If TextBox1.Text = "" Then
     Label1.Visible = True
   Endif

End

Public Sub TextBox2_Change()

   Inc $iChange
   If $iChange = 2 Then
     Label2.Visible = False
   Endif
   $iChange = 1

End

Public Sub TextBox2_LostFocus()

   If TextBox2.Text = "" Then
     Label2.Visible = True
   Endif

End

Regards
Gianluigi

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to