Board index » delphi » TabOrder and dynamically creating creating of components

TabOrder and dynamically creating creating of components

Hello,

Im reading an textfile with information about the components to be created.
The components in the textfile are sortetd by component type. If I generate
a component and the TabOrder of the component is <> 1 the TabOrder is
automatically changed to 1. Is there a solution to stop this automatic
change?
Or should I:
write the infos to the textfile in taborder order
or save the taborder infos and set the taborder property after all
components are created?

Any other idea?
--
Bj?rn Gundermann

 

Re:TabOrder and dynamically creating creating of components


Quote
"Bj?rn Gundermann" wrote:
> Im reading an textfile with information about the components to be created.
> The components in the textfile are sortetd by component type. If I generate
> a component and the TabOrder of the component is <> 1 the TabOrder is
> automatically changed to 1. Is there a solution to stop this automatic
> change?
> Or should I:
> write the infos to the textfile in taborder order
> or save the taborder infos and set the taborder property after all
> components are created?

You can't change the default TabOrder. So your best bet is to
create them all, and then walk through, setting the highest tab
order value first. (Do it this way, or you won't get the results
you want.)

Good luck.

Kurt

Other Threads