Send to Back changes tab order

Started by Brian Chirgwin, March 07, 2010, 01:23:49 AM

Previous topic - Next topic

Brian Chirgwin


When a control is "send to the back" it becomes the top control on order on the tab order.
When and item is "send to front" it becomes the last in the tab order.
In design mode everything displays properly but when running the exe, the controls are not in the correct order.

1. Add a fireLine (box with white fill)
2. Add a button control in the Fireline box.
3. Send the Fireline box to the back.

Should the tab order be changed when changing drawing order of controls?
If so, the order should be changed so that Send to back makes it the last control listed in the tab order, not the first. At least this would keep the order the same in both design and run time modes.


Paul Squires

Yes, you seem to right about that. I'm checking into it now.
Paul Squires
PlanetSquires Software

Paul Squires

I've changed the code slightly and now it seems to work much better.

However, when working with the Command Button it does not seem to stay totally in the back at runtime. That is, when set to back in the designer, the command button indeed is hidden totally behind the foreground control, however when the app is compiled and ran, the command button fully displays - although you can't click it. Must be some sort of redraw that the command button does. Not sure at this point. Overlapping Labels seem to work fine.
Paul Squires
PlanetSquires Software