1. Win32 editing of MLE

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

new topic     » topic index » view message » categorize

2. Re: Win32 editing of MLE

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^)

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32 editing of MLE

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32 editing of MLE

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: Win32 editing of MLE

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: Win32 editing of MLE

Thanks to everyone. EM_GETSEL worked just fine.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu