1. Win32 editing of MLE
- Posted by Judith Evans <camping at FLASH.NET> Nov 02, 1999
- 499 views
- Last edited Nov 03, 1999
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
2. Re: Win32 editing of MLE
- Posted by Brian Broker <bkb at CNW.COM> Nov 02, 1999
- 497 views
- Last edited Nov 03, 1999
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^)
3. Re: Win32 editing of MLE
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Nov 03, 1999
- 481 views
Hello, > >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^) I think he/she wants to know what property tells which text is currently selected (like SelStart and SelLength). Unfortunately I don't know if this is how it is done in Win32lib or not. later, Lewis Townsend ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
4. Re: Win32 editing of MLE
- Posted by Irv Mullins <irv at ELLIJAY.COM> Nov 02, 1999
- 500 views
- Last edited Nov 03, 1999
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
5. Re: Win32 editing of MLE
- Posted by "Brian K. Broker" <bkb at CNW.COM> Nov 02, 1999
- 518 views
- Last edited Nov 03, 1999
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
6. Re: Win32 editing of MLE
- Posted by Judith Evans <camping at FLASH.NET> Nov 03, 1999
- 484 views
Thanks to everyone. EM_GETSEL worked just fine.