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

2015-04-09 Thread John Landmesser



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?!!




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2015-04-09 Thread John Landmesser
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!

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2015-04-09 Thread Howard Page-Clark

On 09/04/2015 18:30, John Landmesser wrote:

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!


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


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus