Re: Win32 editing of MLE
- Posted by "Brian K. Broker" <bkb at CNW.COM> Nov 02, 1999
- 517 views
On Tue, 2 Nov 1999, Irv Mullins wrote: > On Tue, 02 Nov 1999, you wrote: > > On Tue, 2 Nov 1999 19:54:54 -0500, Judith Evans <camping at FLASH.NET> > > wrote: > > > > >I want to allow selection with the mouse of a portion of text in a MLE for > > >copy/cut/paste operations. Can anyone tell me, programatically, how I > > would > > >do that? The program is including Win32lib.ew. I know how to program the > > >copy/cut and paste. It is how to know what portion of the MLE has been > > >selected about which I am clueless. > > > > > >Thanks, > > >Judith > > > > Those edit properties are inherent to an MLE text box. Windows does that > > work for you. 8^) > > A related question: how can I programatically select the text > in an EditText control and highlight it ? > What I am trying for is to fill the edit boxes with default wording which will > be highlighted when you tab into that control, and either replaced with > whatever new keystrokes are typed, or left as-is if the control is tabbed > out of. > > Currently, the default data is there, with the cursor at the end of the > default string. You have to backspace the old data out, or highlight with > the mouse before typing new data. Much too slow. > > Thanks, > Irv I haven't played with this aspect of Windows programming so I can't give you any examples but you can find Edit Control Messages at You'll have to use 'SendMessage' (defined in Win32Lib) and send an EM_SETSEL message to your MLEtext. I might play with this and provide more insight if you have troubles. Good luck, Brian