eniomarconcini 0 Posted Wednesday at 06:00 PM TImageList in BPL Datamodule images not showing. Hello. My first thread here. I'm making a project splitted in packages/modules. I have main project, that's application.exe. And I have application modules, eg, employees, customers, in separated projects, but is package (BPL) projects. As final result I have in exe folder like this: app.exe customers.bpl employees.bpl dbobjects.bpl images.bpl Toolbar images, and button images was stored in TImageList components on a DataModule inside images.bpl package. The throuble is: in design-time images in buttons is displayed correctly. But in runtime, when app.exe is running, toolbar buttons or buttos is displayed without images. Any idea? thanks so much. Share this post Link to post
Remy Lebeau 1601 Posted Wednesday at 06:42 PM 41 minutes ago, eniomarconcini said: Toolbar images, and button images was stored in TImageList components on a DataModule inside images.bpl package. The throuble is: in design-time images in buttons is displayed correctly. But in runtime, when app.exe is running, toolbar buttons or buttos is displayed without images. Hard to diagnose without seeing your actual setup - how the BPLs load the images, how the EXE loads the BPLs, how the EXE assigns the images to its UI, etc. Lots of factors here. Share this post Link to post
eniomarconcini 0 Posted Wednesday at 07:05 PM (edited) I already found the cause of. i forgot to instantiate the datamodule var reference. DataModule1 := TDataModule1.Create(Application). I add this code in main form onCreate event, and all right now. This is the DataModule in BPL package. I've programmed in Delphi in 2002 to 2010 and not more. I've back now to do some adjusts in a little project. Thanks Edited Wednesday at 07:06 PM by eniomarconcini Share this post Link to post