It is currently Tue May 21, 2013 10:54 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Programatically pre-select text in StringGadget
PostPosted: Sat Feb 04, 2012 6:01 am 
Offline
Addict
Addict

Joined: Fri Oct 23, 2009 2:33 am
Posts: 2852
Location: Wales, UK
I thought this would select the existing text in the string gadget, so I could if I wanted, simply delete it or paste over it:
Code:
           SetGadgetText(#StrGdtInput,"Some Text")
            SendMessage_(GadgetID(#StrGdtInput),#EM_SETSEL,0,-1)

....however, none of the text is selected - at least, not shown (not highlighted) as selected?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
 Post subject: Re: Programatically pre-select text in StringGadget
PostPosted: Sat Feb 04, 2012 7:49 am 
Offline
Addict
Addict

Joined: Sun Apr 12, 2009 6:27 am
Posts: 1468
IdeasVacuum Hi

Code:
StringGadget(#StrGdtInput,10,10,250,20,"Old Text",#ES_NOHIDESEL)

_________________
Egypt my love


Top
 Profile  
 
 Post subject: Re: Programatically pre-select text in StringGadget
PostPosted: Sat Feb 04, 2012 9:29 pm 
Offline
Addict
Addict

Joined: Fri Oct 23, 2009 2:33 am
Posts: 2852
Location: Wales, UK
Hi Rashad

Rashad to the rescue again! Thank you.

Confession: I think you already told me how to do this once before :oops:

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye