[Lazarus] Lazarus addon - File Browser

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Sep 17 13:33:17 CEST 2008


On 9/17/08, Mattias Gärtner <nc-gaertnma at netcologne.de> wrote:
>  > My problem is, how am I supposed to implement platform specific code
>  > in a Lazarus addon?  Am I allowed to use IFDEFs?
>  >
>
> Yes.

OK, done!

>
> >  * Dialog position persistence via IDE (Environment Options | Windows tab)
>
>
> This is for windows only. For dialogs use:
>
>  uses IDEWindowIntf;
>
>  FormCreate
>   IDEDialogLayoutList.ApplyLayout(Self);
>  FormDestroy
>   IDEDialogLayoutList.SaveLayout(Self);


My mistake for calling it a "dialog" when in fact it is a "window".
File Browser is the same as the Object Inspector or Messages windows -
a window that is left open while working in your code.  Michael was
kind enough to add the above mentioned code (applying to dialogs), but
in fact it it should integrate with the IDE's Window Positions list,
saving/restoring size *and* position.  The XXXLayout() seems to only
store size.

Any hints on how I integrate it into the "window list"?  I know I did
this before, months ago, but that was for windows that are built into
the IDE (as standard). File Browser is an addon.

Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the Lazarus mailing list