[Gambas-user] SelectAll feature

Matti math.eber at ...221...
Thu Nov 11 21:37:50 CET 2010


I don't understand.
What do you mean with "not a mine one"?
Here, in Gambas 2 (and 3) TextBox.SelectAll works fine.


Am 11.11.2010 21:19, schrieb Demosthenes Koptsis:
> The SelectAll is for the Gambas2 application, not a mine one.
> 
> This feature is missing from Gambas2.
> 
> On Thu, 2010-11-11 at 20:47 +0100, Matti wrote:
>> If you want to do it via CTRL+A, you have to write a keypress event for the form:
>>
>> Public Sub Form_KeyPress()
>>   If Key.Code = Key["A"] And If Key.Control Then
>>     TextBox1.SelectAll
>>   Endif
>> End
>>
>> And if you want to have the text selected automatically when the text box gets
>> the focus, do:
>>
>> Public Sub TextBox1_GotFocus()
>>   TextBox1.SelectAll
>> End
>>
>>
>> Am 11.11.2010 08:01, schrieb Demosthenes Koptsis:
>>> Good morning to all,
>>>
>>> While setting properties or any text that is in a textbox i wanted to
>>> press CTRL+A to select all the word and then press BACKSPACE to delete
>>> it and next to write a new one.
>>>
>>> But the CTRL+A is not working and i need to press many times the arrow
>>> keys to set the pointer to the end of the word and then to press many
>>> times BACKSPACE to delete the word.
>>>
>>> I know this is not so a big deal but if i do it many times is annoying.
>>>
>>> Is it possible to enable the SelectAll feature for any textbox or any
>>> other control that contains text so to manage more fastest the strings? 
>>>
>>
>> ------------------------------------------------------------------------------
>> Centralized Desktop Delivery: Dell and VMware Reference Architecture
>> Simplifying enterprise desktop deployment and management using
>> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
>> client virtualization framework. Read more!
>> http://p.sf.net/sfu/dell-eql-dev2dev
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 
> 
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 




More information about the User mailing list