Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

Using DataModule

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Weustink
to Tony Maro: Perhaps I'm forgetting something from my old Delphi days, but... In my form's Interface…
Tony Maro wrote 8 lines
Perhaps I'm forgetting something from my old Delphi days, but... In my form's Interface "uses" clause I've listed the datamodule's unit. How then do I link properties across to components in the DataModule? For instance, how do you place the TImageList on the datamodule, but have the menu on the form use it?

In delphi it appears in the picklist when you add the uses clause. I don't know if lazarus supports this.

Maybe you can point it by hand by typing: yourDatamodule.yourImagelist

Marc

Reply by email

Tony Maro
to Tony Maro: Perhaps I'm forgetting something from my old Delphi days, but... In my form's Interface…
Marc Weustink wrote 10 lines
At 19:08 9-11-2003, Tony Maro wrote: > In my form's Interface "uses" clause I've listed the datamodule's unit. > > How then do I link properties across to components in the DataModule? In delphi it appears in the picklist when you add the uses clause. I don't know if lazarus supports this. Maybe you can point it by hand by typing: yourDatamodule.yourImagelist

Tried that... I get a popup: "Invalid Property"

-Tony

Reply by email

Mattias Gaertner
to Tony Maro: Perhaps I'm forgetting something from my old Delphi days, but... In my form's Interface…
Show quoted text 14 lines
At 19:08 9-11-2003, Tony Maro wrote: >Perhaps I'm forgetting something from my old Delphi days, but... > >In my form's Interface "uses" clause I've listed the datamodule's unit. > >How then do I link properties across to components in the DataModule? > >For instance, how do you place the TImageList on the datamodule, but have > >the menu on the form use it? In delphi it appears in the picklist when you add the uses clause. I don't know if lazarus supports this.

Not implemented yet.

Maybe you can point it by hand by typing: yourDatamodule.yourImagelist

No. You have to assign it manually (e.g. in the Create event).

Mattias

Reply by email

Tony Maro

Perhaps I'm forgetting something from my old Delphi days, but...

In my form's Interface "uses" clause I've listed the datamodule's unit.

How then do I link properties across to components in the DataModule?

For instance, how do you place the TImageList on the datamodule, but have the menu on the form use it?

-Tony Maro

Reply by email