Re: How can I make a field ready to receive typing?

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thu, 09 Oct 2003 06:55:51 +1000, Derek Parnell
<ddparnell at bigpond.com> wrote:

>What does this code do on your system?
>
>------------
>without warning
>include win32lib.ew
>
>integer MainWin
>integer Text1
>integer Text2
>integer Text3
>
>MainWin =3D create(Window,   "Initial Focus",0,     0,  0, 300, 300, 0)
>Text1   =3D create(EditText, "Not here", MainWin,   5,  5, 200,  25, 0)
>Text2   =3D create(EditText, "This is it", MainWin, 5, 35, 200,  25, 0)
>Text3   =3D create(EditText, "Nor here", MainWin,   5, 65, 200,  25, 0)
>
>WinMain({MainWin, Text2}, Normal)
>------------=20
Sorry to jump in with a different and less important "feature":

The above code works just fine for me, with focus initially on Text2
and pressing tab moves the focus to Text3.

However, if I change Text2 to a ComboBox, or better:
Text2 =3D create(ComboBox, "", MainWin, 5, 35, 200,  25, 0)
addItem(Text2,"This is it")
setIndex(Text2,1)

the initial focus is OK, but pressing tab jumps back to Text1, which
is kinda odd. Subsequent tabs operate "in the right order".

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu