Interesting solution - I'll have a look, but I'm a bit worried that a lot of
our base code hooks into the application variable and responds to different
things. I'll give it a go though!

Cheers,
Phil.
----- Original Message ----- 
From: "Corey Murtagh" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Saturday, September 27, 2003 11:59 AM
Subject: Re: [DUG]: ImageList images


> Phil Middlemiss wrote:
>
> > I have a form in a DLL that has an action list and an associated image
> > list. When I use the actions on toolbar buttons (or anything else, I
> > think) - the images don't appear. The DLL form has it's own TApplication
> > even though it's loaded into the same memory space as the main app and I
> > hade to take that into account to pass on the On Idle event to the DLL
> > so that actions could update their status. But I can't seem to get the
> > image list to show. Any ideas?
>
> The solution that worked for MDI forms in a DLL might work for you, if
> you're runtime-linking to the DLL.  When you load the DLL, initialize by
> replacing the Application and Screen variables with the ones from the
> host application (sent as params to the init procedure).  Save the old
> values and restore them before the DLL is unloaded.
>
> This lets MDI forms work from DLLs, and might solve the problem you're
> having.
>
> -- 
> Corey Murtagh
> The Electric Monk
> "Quidquid latine dictum sit, altum viditur!"
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to