very to easy do in Delphi, but I can't find a way to do this in Lazarus.
Its the same way and your code will crash on delphi too
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;
right way.

It crashes with an AccessViolation.
maybe becouse you try this at an time when dmMain is not created ?
At example in formcreate of another form witch is created bevore dmMain

regards
Christian

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to