[Lazarus] howto change the order the components of a Form are created?

John Landmesser jmlandmesser at gmx.de
Thu Apr 9 21:23:47 CEST 2015



On 09.04.2015 20:27, Howard Page-Clark wrote:
> Project Options lets you order the creation of auto-created forms, but 
> it does not handle other objects.
>
> Can you not dynamically create these two objects in order like this?
>
> procedure TForm1.FormCreate(Sender: TObject);
> begin
>   FIniPropStorage:=TIniPropStorage.Create(Self);
>   //  with FIniPropStorage do ... etc.
>
>   FFilelistbox:=TFileListBox.Create(Self);
>   // with FFilelistbox do ...
> end;
>
> Howard
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> http://www.avast.com
>
>
> -- 

thanks Howard but i was struggling with the wrong problem:

i have a TShellTreeView and i want to set the TShellTreeView.Path 
property by code ( saved in a ini-File ) , but that doesn't work because 
you can't  assign a string to this property?

        ShellTreeView1.Path := '/media/First_XPS/PROJEKTE/Lazarus/arjgui/';
        ShowMessage(ShellTreeView1.Path);

Path is '' ?!!!

I try again tomorrow :-))

Perhaps windows only, i'm Linux?!!







More information about the Lazarus mailing list