1. VEL bug?

Hello, Gary?

I can't get the CHANGE_EVENT to work for an EDIT control.
I used a KEYPRESS_EVENT instead and it worked fine, could
this be a bug? KEYPRESS_EVENT will work for now but not quite
the way I would like. Is there a better way around this?

later,
Lewis Townsend

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view message » categorize

2. Re: VEL bug?

Hi, Lewis,

Gary doesn't seem to be here at the moment, but maybe I can help.
I think it's right that the CHANGE_EVENT doesn't work for an EDIT
control; its mainly used in LISTBOX controls, where you can
navigate using mouse and cursor keys. (BTW, the CLICK_EVENT has got
the same functionality!)
The KEYPRESS_EVENT in an EDIT control captures all your 'normal' keypre=
sses and returns them in the p variable of the 'event-
processor'.
Does that answer your questions?

 ^  |
/-\<|

> Hello, Gary?
> =C2=A0
> I can't get the CHANGE_EVENT to work for an EDIT control.
> I used a KEYPRESS_EVENT instead and it worked fine, could
> this be a bug? KEYPRESS_EVENT will work for now but not quite
> the way I would like. Is there a better way around this?
> =C2=A0
> later,
> Lewis Townsend
> =C2=A0
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>



 | Gratis e-mail en meer: http://www.dolfijn.nl/
 | Een product van Ilse: http://www.ilse.nl/

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

3. Re: VEL bug?

Hello Ad,

>Hi, Lewis,
>
>Gary doesn't seem to be here at the moment, but maybe I can help.
>I think it's right that the CHANGE_EVENT doesn't work for an EDIT
>control; its mainly used in LISTBOX controls, where you can
>navigate using mouse and cursor keys. (BTW, the CLICK_EVENT has got
>the same functionality!)
>The KEYPRESS_EVENT in an EDIT control captures all your 'normal' keypresses
>and returns them in the p variable of the 'event-
>processor'.
>Does that answer your questions?
>
>  ^  |
>/-\<|

Well, here is a snippet of documentation from the VEL.chm
file in the section about EDIT controls:

Event          Meaning
------------   ------------------------------------------
CHANGE_EVENT   ChangeEvent occurs whenever the text for
               the edit control may have changed.
CLICK_EVENT    ClickEvent occurs when the user clicks the
               control.

In fact, the CHANGE_EVENT isn't even available for the
listbox control (acording to the same help file).
Like I said before, I can use the KEYPRESS_EVENT or
KEYDOWN_EVENT but they don't respond quite the way I want
and won't respond at all to mouse cuts and pastes. I found
another way: using EXIT_EVENT but it's not quite what I'm
looking for either because it requires more tabing and
clicking.

Well, I'll send this reply to the whole list since Gary
seems to be unavailable so maybe someone (Ad or anyone else)
can help me:

Does any one know how to "emulate" the CHANGE_EVENT in VEL
for an EDIT control? Or get the real one to work?

later,
Lewis Townsend

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

4. Re: VEL bug?

Hello Lewis,

I don't see what you want to do with the Event Handlers when you
want to copy, cut and paste. The EDIT control in VEL behaves as any
'normal' Windoze control. You can select text by dragging the mouse
over it, or by using Shift-Cursor movements, and then you can copy,
cut and paste this text by right-clicking on it. What more do you
want? Can you be more explicit, or give an example?

 ^  |
/-\<|

Lewis Townsend wrote:
> Hello Ad,
> =C2=A0
> >Hi, Lewis,
> >
> >Gary doesn't seem to be here at the moment, but maybe I can help.
> >I think it's right that the CHANGE_EVENT doesn't work for an EDIT
> >control; its mainly used in LISTBOX controls, where you can
> >navigate using mouse and cursor keys. (BTW, the CLICK_EVENT has got
> >the same functionality!)
> >The KEYPRESS_EVENT in an EDIT control captures all your 'normal' key=
presses
> >and returns them in the p variable of the 'event-
> >processor'.
> >Does that answer your questions?
> >
> >  ^  |
> >/-\<|
> =C2=A0
> Well, here is a snippet of documentation from the VEL.chm
> file in the section about EDIT controls:
> =C2=A0
> Event          Meaning
> ------------   ------------------------------------------
> CHANGE_EVENT   ChangeEvent occurs whenever the text for
>                the edit control may have changed.
> CLICK_EVENT    ClickEvent occurs when the user clicks the
>                control.
> =C2=A0
> In fact, the CHANGE_EVENT isn't even available for the
> listbox control (acording to the same help file).
> Like I said before, I can use the KEYPRESS_EVENT or
> KEYDOWN_EVENT but they don't respond quite the way I want
> and won't respond at all to mouse cuts and pastes. I found
> another way: using EXIT_EVENT but it's not quite what I'm
> looking for either because it requires more tabing and
> clicking.
> =C2=A0
> Well, I'll send this reply to the whole list since Gary
> seems to be unavailable so maybe someone (Ad or anyone else)
> can help me:
> =C2=A0
> Does any one know how to "emulate" the CHANGE_EVENT in VEL
> for an EDIT control? Or get the real one to work?
> =C2=A0
> later,
> Lewis Townsend
> =C2=A0
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>



 | Gratis e-mail en meer: http://www.dolfijn.nl/
 | Een product van Ilse: http://www.ilse.nl/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu