Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic text on a Modeless Palette?

Csanyi Bence
Participant

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!

 

 


floating_palette.jpg
1 REPLY 1

bschwb
Booster

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),
yourText.SetText ("New text");

// C Style
DGSetItemText (dialogID, yourTextItemID, "New text");

 

Bernd Schwarzenbacher
Archicad Add-On Developer
AC 24-25, VS 2019

Get free Add-Ons at www.bschwb.com/add-ons

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!