Recent

Author Topic: [SOLVED] Frames and datamodule  (Read 3683 times)

wp

  • Hero Member
  • *****
  • Posts: 11923
[SOLVED] Frames and datamodule
« on: November 06, 2012, 09:28:17 am »
In my recent project I am using various frames. In order to share images I intended to use a datamodule for the common imagelist. However, the imagelist is not visible from the frames although the datamodule is listed in the frames uses clause. I am not quite sure, but I think that this is different with Delphi. Is this a bug?
« Last Edit: November 06, 2012, 11:07:01 am by wp »

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Frames and datamodule
« Reply #1 on: November 06, 2012, 10:09:32 am »
double click the datamodule in your project inspector and then press F12 to open the designer for it, then you should be able to use it.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Frames and datamodule
« Reply #2 on: November 06, 2012, 10:21:29 am »
I know how to use the datamodule. My problem is different, maybe I did not describe it clearly enough:

There is a datamodule with an imagelist, and a frame with a toolbar. The datamodule is "used" by the frame. When I want to assign the imagelist of the datamodule to the frame's toolbar I'd expect to see it in the dropdown of the Images property in the object inspector. But the imagelist of the datamodule is not listed.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Frames and datamodule
« Reply #3 on: November 06, 2012, 10:43:59 am »
this usually happens when the datamodule is not open in the designer. You need to have it open at all times.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Frames and datamodule
« Reply #4 on: November 06, 2012, 11:06:31 am »
Ah! You are right, this is the solution

 

TinyPortal © 2005-2018