1. IDE Grouping Issues

I created a few set of controls and then decided to place them in a group. I
created the group control then positioned each child control into the group.
The IDE is smart enough to make the group control the parent control of each
control place in the group control. However, the IDE ain't smart enough to
know that the parent group needs to be CREATED in the code before the child
controls! When I run the form, it crashes saying Group28 not defined... So,
the IDE needs to know to create parents before children.

Also, I'd like to be able to use <TAB> in the Form Design window to check
the tab order. I mean, when I hit <TAB> with a control selected in the Form
Design window, it goes to the next control in the sequence.

Finally, if I've got a group of controls in a group control, when I <TAB> it
only selects subsequent items in that group. IOW, it never selects controls
OUTSIDE of that group control. This is not expected behavior in the Windows
environment that I'm aware of...

Thanks! :)
<\<

new topic     » topic index » view message » categorize

2. Re: IDE Grouping Issues

Judith,

> > Also, I'd like to be able to use <TAB> in the Form Design window to
> > check the tab order. I mean, when I hit <TAB> with a control selected in
the
> > Form Design window, it goes to the next control in the sequence.
>
> Really! When I use <Tab> nothing happens.

My statement was quite ambiguous... Here it is revised and understandable:

I'd like to be able to use <TAB> in the Form Design window to jump from
control to control. Right now it doesn't do that.

> > Finally, if I've got a group of controls in a group control, when I
> > <TAB> it only selects subsequent items in that group. IOW, it never
selects
> > controls OUTSIDE of that group control. This is not expected behavior in
the
> > Windows environment that I'm aware of...
>
> Now it really sounds like you mean in your EXW program.

Yes. This time I mean in my EXW program.

At the top of my form I have a group control, with four text boxes within.
When I run the EXW, when I press <TAB>, the only controls ever selected are
the ones in the group. I have many more outside the group. Is that clear?

<\<

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

3. Re: IDE Grouping Issues

On Wednesday 08 August 2001 16:57, Judith wrote:

> > At the top of my form I have a group control, with four text boxes
> > within.
> > When I run the EXW, when I press <TAB>, the only controls ever selected
> > are
> > the ones in the group. I have many more outside the group. Is that
> > clear?
>
> Absolutely. But I don't do anything with the controls except create them
> in order. If you write your own exw without using IDE does it act
> differently?

The problem is with Win32Lib.
Since there is no tab order stored in the exw, the tab order must be assigned
by Win32Lib.  You can experiment by writing a small program, and moving 
the control declarations around.

include Win32Lib.ew
without warning

global constant Window1 = create( Window, "Window1", 0, Default, Default, 400,
300, 0 )
global constant Group2 = create( Group, "Group2", Window1, 44, 8, 228, 108, 0 )
global constant EditText3 = create( EditText, "EditText3", Group2, 12, 20, 150,
20, 0 )
global constant EditText4 = create( EditText, "EditText4", Group2, 12, 44, 150,
20, 0 )
global constant EditText5 = create( EditText, "EditText5", Group2, 12, 68, 150,
20, 0 )
global constant PushButton6 = create( PushButton, "PushButton6", Window1, 28,
128, 90, 30, 0 )
global constant PushButton7 = create( PushButton, "PushButton7", Window1, 220,
124, 90, 30, 0 )

WinMain( Window1, Normal )

Given the above order, tabs will only move thru the 3 edittext controls, never
to the buttons.
Now move the buttons up above the edit controls:

global constant Window1 = create( Window, "Window1", 0, Default, Default, 400,
300, 0 )
global constant PushButton6 = create( PushButton, "PushButton6", Window1, 28,
128, 90, 30, 0 )
global constant PushButton7 = create( PushButton, "PushButton7", Window1, 220,
124, 90, 30, 0 )
global constant Group2 = create( Group, "Group2", Window1, 44, 8, 228, 108, 0 )
global constant EditText3 = create( EditText, "EditText3", Group2, 12, 20, 150,
20, 0 )
global constant EditText4 = create( EditText, "EditText4", Group2, 12, 44, 150,
20, 0 )
global constant EditText5 = create( EditText, "EditText5", Group2, 12, 68, 150,
20, 0 )

WinMain( Window1, Normal )

Now tab moves between the two buttons, but never reaches the edittext controls.

I wrote the same program in Delphi, the tab moves thru the 3 edittext controls,
then to button6,
then button7, and back to edittext3, which seems to be the way most windows
programs function.

Regards,
Irv

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

4. Re: IDE Grouping Issues

Thanks for the confirmation, Irv.

>
> Now tab moves between the two buttons, but never reaches the edittext
controls.
>
> I wrote the same program in Delphi, the tab moves thru the 3 edittext
controls, then to button6,
> then button7, and back to edittext3, which seems to be the way most
windows programs function.
>
> Regards,
> Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu