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

Dynamic text on a Modeless Palette?

Csanyi Bence
Contributor

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 ACCEPTED SOLUTION
2 REPLIES 2

Solution
bschwb
Advocate

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

Bernd Schwarzenbacher
Archicad Add-On Developer
Get (partially free) Add-Ons at www.bschwb.com/add-ons

Csanyi Bence
Contributor

thanks a lot! it's working!

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!