We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2021-11-24 03:00 PM
Hi there,
i was thinking if this is possible? I successfully invoked a floating palette (modeless palette) and placed some placeholder texts on it (see image). Is it possible, if i am selecting a placed object (GDL object), to write the parameters of the object on the palette? For example: number of selections, guids, typeID s etc..
Thanks in advance!
Solved! Go to Solution.
2021-11-25 09:02 PM - edited 2021-12-16 10:27 AM
Yes this should be possible. I assume you are using a Static Text Item correct?
Depending on whether you use the C++ or C style Dialog Items, one of the following should work.
// C++ Style
DG::StaticText yourTextItem (panelReference, yourTextItemID),
yourTextItem.SetText ("New text");
// C Style
DGSetItemText (dialogID, yourTextItemID, "New text");
Edit: Minor fix in code example
2021-11-25 09:02 PM - edited 2021-12-16 10:27 AM
Yes this should be possible. I assume you are using a Static Text Item correct?
Depending on whether you use the C++ or C style Dialog Items, one of the following should work.
// C++ Style
DG::StaticText yourTextItem (panelReference, yourTextItemID),
yourTextItem.SetText ("New text");
// C Style
DGSetItemText (dialogID, yourTextItemID, "New text");
Edit: Minor fix in code example
2021-12-02 02:37 PM
thanks a lot! it's working!