Recent

Author Topic: How to avoid sub component listed in TabOrder window  (Read 2993 times)

tintinux

  • Sr. Member
  • ****
  • Posts: 378
    • Gestinux
How to avoid sub component listed in TabOrder window
« on: July 05, 2012, 07:55:19 pm »
Hi

I have made components which are TPanel descendants, and contain other TWinControls.

The only small issue I have is, when setting TabOrder, I see in the tree of components the main component and also all the sub components. I don't want to allow any change of taborder within the main container.

How would you hide the sub components. Is there a value to exclude in ControlStyle  ?

Thanks
Tintinux
Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: How to avoid sub component listed in TabOrder window
« Reply #1 on: July 07, 2012, 09:52:38 pm »
I am not sure that I understand your question, but maybe you could hard-code the TabOrder.

Edit1.TabOrder:= 4;
Lazarus Trunk / fpc 2.6.2 / Win32

 

TinyPortal © 2005-2018