Page 1 of 1

[TODO] ListIcon with #PB_Any and object rename

Posted: Wed Oct 18, 2006 9:21 pm
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)

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

Posted: Tue Jan 08, 2008 11:19 pm
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