Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TabOrder
#1
Hello,

I have some problems with the order of components shown in the browser. As I understand property IWComponent.TabOrder is responsible for order of component regarding parent component. So if form consists of Region which is a parent to GridPanel and Label (both align = alTop) and if Label.TabOrder is 0, GridPanel.taborder is 1 that means Label should be set above the Button.

[Image: HpPQCVb.png]
LabelBoxWorkDept.TabOrder = 0
MGridPanelWorkDep.TabOrder = 1 (grid panel holds 2 buttons)

But when form is rendered components are in reverse order (GridPanel above Label)
[Image: HpQoW1L.png]


I should also mention that components are added to main form from another form by code (in main form on create event), but component names are not duplicated.
Code:
    FormSub := TFormSub.Create(WebApplication);
    FormSub.Region02WorkDeparture.Parent := MRegionMenuHolder;

What needs to be done so that components will be rendered in the same order as is defined by property TabOrder ?

Regards,
Tomaž
Reply


Messages In This Thread
TabOrder - by cyracks - 06-14-2018, 11:19 AM
RE: TabOrder - by DanielFields - 06-14-2018, 10:10 PM
RE: TabOrder - by Alexandre Machado - 06-14-2018, 10:32 PM
RE: TabOrder - by cyracks - 06-14-2018, 11:14 PM
RE: TabOrder - by Alexandre Machado - 06-15-2018, 08:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)