from Delphi i know there is a editor to change the order in which objects of the Application are created:
I have a IniPropStorage and that has to be created before a FileListView.
Searched the IDE, i know its there, but i can't find it!
Thank you!

Mailing lists / lazarus / 2015-04
4 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
from Delphi i know there is a editor to change the order in which objects of the Application are created:
I have a IniPropStorage and that has to be created before a FileListView.
Searched the IDE, i know its there, but i can't find it!
Thank you!
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?!!
This has nothing to do with order of creating components. You can use the code in FormCreate event. But use property Root instead of Path. I'm on Linux too, I just tried: ShellTreeView1.Root := '/home/v1'; and works well. ?
______________________________________________________________
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?!!