On Sun, 23 Sep 2007, Dominique Louis wrote:
> Hi Lazarians,
> I'm working on Mac OS X and can't find a way to hook up properties from
> Form1 to properties on Form2 or DataModule2 in the IDE. This is very to easy
> do in Delphi, but I can't find a way to do this in Lazarus.
>
> For example. I have a toolbar and MainMenu on Form1, but I have an ImageList
> on a DataModule. I want to hook up the ImageList from the DataModule to both
> the ToolBar and MainMenu on Form 1. How do I do this via the IDE and also via
> code?
>
> When I tried to do the following via code
> Toolbar.Images := dmMain.ToolbarImages;
>
> It crashes with an AccessViolation.
This should work, but:
You must be sure that dmMain is instantiated before this code is executed.
The best is to have dmMain instantiated as the first form
(see Project Options dialog, tab Forms).
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives