Re: TSplitter Persistence problem



for i:=0 to ControlCount-1 do
Controls[i].Name;

This results in the following index sequence:
0 = Splitter1
1 = Splitter2
2 = Panel1
3 = Panel2
4 = Panel3

Delphi returns this same sequence when the controls are
positioned properly or with the problem positioning. Therefore
I assume Delphi does not use the Controls array sequence to
define the controls position in a container. In C#, Controls
determines the position in the container and Controls.SetIndex
(Splitter1,1) would move Splitter1 to the second position in the
container.

So how does Delphi determine the position of a control in a
container? And more importantly how do we manipulate it?

.



Relevant Pages

  • Re: TSplitter Persistence problem
    ... Therefore I assume Delphi does not use the Controls array sequence to define the controls position in a container. ... A Delphi VCL program might have its own Controls array implemented the same as it is in the Win32 version of the VCL. ...
    (alt.comp.lang.borland-delphi)
  • Re: Definition of outdated...
    ... There are often a reference to a programming language to be 'outdated', ... Looking strictly at the wording, then Java is more outdated than Delphi, ... What imo should be outdated is how money controls hype that controls ...
    (borland.public.delphi.non-technical)
  • Re: Converting a userspecific VCL-component to an ActiveX-control
    ... > the controls are in OCXes - not a good idea IMO ... the only control it does recognize is a TPanel (not the hWnd of ... making the native VCL interface available as ActiveX interface? ... I think with a fairly up to date version of Delphi (lets say at least ...
    (comp.lang.pascal.delphi.misc)
  • Re: OOP in database programming - Newbie question
    ... I have no formal Delphi training, but I have written several database ... in them and all data is accessed through database controls. ... manipulating this data and then passing the data ... If I create a class representing the container ...
    (borland.public.delphi.non-technical)
  • Re: Component
    ... Yes I'm using Container to call dispose in all of the components of my ... Controls (I use a Control Composite (here I need to do other little change, ... don't implement IComponent (because this maybe will be not a class that I ...
    (microsoft.public.dotnet.framework.compactframework)