[TODO] ListIcon with #PB_Any and object rename

You need some new stunning features ? Tell us here.
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

[TODO] ListIcon with #PB_Any and object rename

Post by Tranquil »

Hi!

I encountered the following problem:

After adding some columns to a listicon gadget and then rename the Object, the generated source is no longer valid.

AddGadgetColumn() then contains still the old object name which looks like that:

Code: Select all

LST_Anmeldungen_Anmeldungen = ListIconGadget(#PB_Any, 20, 170, 1020, 480, "Nr.", 30, #PB_ListIcon_GridLines | #PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection)
      AddGadgetColumn(ListIcon_1, 2, "Absender", 150)
      AddGadgetColumn(ListIcon_1, 3, "Empfänger", 150)
      AddGadgetColumn(ListIcon_1, 4, "Von", 150)
Tranquil
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Re: Alpha 15:ListIcon with #PB_Any and object rename

Post by Berikco »

Tranquil wrote:Hi!

I encountered the following problem:

After adding some columns to a listicon gadget and then rename the Object, the generated source is no longer valid.

AddGadgetColumn() then contains still the old object name which looks like that:

Code: Select all

LST_Anmeldungen_Anmeldungen = ListIconGadget(#PB_Any, 20, 170, 1020, 480, "Nr.", 30, #PB_ListIcon_GridLines | #PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection)
      AddGadgetColumn(ListIcon_1, 2, "Absender", 150)
      AddGadgetColumn(ListIcon_1, 3, "Empfänger", 150)
      AddGadgetColumn(ListIcon_1, 4, "Von", 150)

Yes, same goes for the other Gadget that work this way, Panelgadget.
Will try to implement this for next alpha 16
Post Reply