1. [Win32Lib] setFocus() bug ??

Hello list.

I was coding and I came accross what seems to be a bug (oohhhh nnoooooo!).

<code>

include win32lib.ew

constant Win = create( Window, "TEST", 0, Default, Default, 300, 200, 0),
   box1 = create( EditText, "Box 1", Win, 5, 10, 90, 22, 0),
   box2 = create( EditText, "Box 2", Win, 5, 40, 90, 22, 0)


procedure onFocus_box2(atom id, atom event, sequence params)
setFocus(box1)
end procedure
setHandler(box2,w32HGotFocus, routine_id("onFocus_box2"))

WinMain(Win,Normal)

</code>


When box2 gets focus, it gives focus to box1 but the cursor remains in box2
sad

I experience this traumatizing event(:P) in Win32Lib v 57.9 & 57.11 sad

Thanks for listening/reading/hopefully_responding

Merry X-mas to all!
    Robert Szalay

---------------------------------------------

new topic     » topic index » view message » categorize

2. Re: [Win32Lib] setFocus() bug ??

You're lucky I'm working on the library right now, eh? I'll see what I can
do (just for you of course) blink
----------------
cheers,
Derek Parnell
----- Original Message -----
From: "Robert Szalay" <robsz1 at hotpop.com>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, December 21, 2002 6:41 PM
Subject: [Win32Lib] setFocus() bug ??


>
> Hello list.
>
> I was coding and I came accross what seems to be a bug (oohhhh nnoooooo!).
>
> <code>
>
> include win32lib.ew
>
> constant Win = create( Window, "TEST", 0, Default, Default, 300, 200, 0),
>    box1 = create( EditText, "Box 1", Win, 5, 10, 90, 22, 0),
>    box2 = create( EditText, "Box 2", Win, 5, 40, 90, 22, 0)
>
>
> procedure onFocus_box2(atom id, atom event, sequence params)
> setFocus(box1)
> end procedure
> setHandler(box2,w32HGotFocus, routine_id("onFocus_box2"))
>
> WinMain(Win,Normal)
>
> </code>
>
>
> When box2 gets focus, it gives focus to box1 but the cursor remains in
box2
> sad
>
> I experience this traumatizing event(:P) in Win32Lib v 57.9 & 57.11 sad
>
> Thanks for listening/reading/hopefully_responding
>
> Merry X-mas to all!
>     Robert Szalay
>
> ---------------------------------------------
>
>
>
>

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

3. Re: [Win32Lib] setFocus() bug ??

Derek,

While you're at it, could you also make setIndex select TV items?  :)

Dan Moyer

----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, December 21, 2002 12:03 AM
Subject: Re: [Win32Lib] setFocus() bug ??


>
> You're lucky I'm working on the library right now, eh? I'll see what I can
> do (just for you of course) blink
> ----------------
> cheers,
> Derek Parnell
> ----- Original Message -----
> From: "Robert Szalay" <robsz1 at hotpop.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Saturday, December 21, 2002 6:41 PM
> Subject: [Win32Lib] setFocus() bug ??
>
>
> > Hello list.
> >
> > I was coding and I came accross what seems to be a bug (oohhhh
nnoooooo!).
> >
> > <code>
> >
> > include win32lib.ew
> >
> > constant Win = create( Window, "TEST", 0, Default, Default, 300, 200,
0),
> >    box1 = create( EditText, "Box 1", Win, 5, 10, 90, 22, 0),
> >    box2 = create( EditText, "Box 2", Win, 5, 40, 90, 22, 0)
> >
> >
> > procedure onFocus_box2(atom id, atom event, sequence params)
> > setFocus(box1)
> > end procedure
> > setHandler(box2,w32HGotFocus, routine_id("onFocus_box2"))
> >
> > WinMain(Win,Normal)
> >
> > </code>
> >
> >
> > When box2 gets focus, it gives focus to box1 but the cursor remains in
> box2
> > sad
> >
> > I experience this traumatizing event(:P) in Win32Lib v 57.9 & 57.11 sad
> >
> > Thanks for listening/reading/hopefully_responding
> >
> > Merry X-mas to all!
> >     Robert Szalay
> >
> > ---------------------------------------------
> >
> >
>
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu