[Gambas-user] problems with core functions

Norarg norarg at ...2311...
Wed Dec 16 21:08:37 CET 2009


hi,

thanks, but how do I get this "Text I want to copy", it is selected, but 
somehow I have to make a string of it, before sending it to the 
clipboard. Somewhere I have seen SelStart, SelLength with Gambas, but 
just can not find that part any more - it seemed so clear, I did not 
give it any further notice - and that so clear part just does not work. 
:) btw. using ubuntu 09.10/gambas 2.13.

regards
norarg


Ricardo Díaz Martín schrieb:
> use Clipboard.Copy("Text you want copy") and Clipboard.Paste()
>
> http://gambasdoc.org/help/comp/gb.qt/clipboard
>
>
>
> 2009/12/16 Norarg <norarg at ...2311...>
>
>   
>> hi
>>
>> I am struggling with some nasty little things..
>> when I select a text or a part of a text in a textbox, and I want to
>> copy this or paste from clipboard, the usual way is to use ctrl-c,
>> ctrl-v. well, every software I know has a button too, making this
>> possible. I tried to use the Desktop.Sendkeys, which works with "\t"
>> f.ex., but I can not figure out how to send ctrl-c - tried ({[CTRL]C})
>> and ({[CTRL_L]C}). In the manual I get the information, all keys are
>> defined in /usr/include/X11/keysymdef.h - but this file does not exist
>> on my system in this folder. Will be thankful for any help.
>>
>> Then I tried with .SelStart and .SelLenght to get the string - that was
>> not accepted at all, get  "unknown symbol".
>>
>>
>> It would be nice, if I could get this two different functions to work.
>>
>> thanks and regards
>> norarg
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and
>> easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>     
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-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