We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

How To Get Control Address By Modless Dialog

Kouichi
Participant

I make Modeless Dialog By DGModelessInit() Function.

I use UserControl (257 0x0005 == TextPopup Control).

Sample Source 
  Modeless Class definistion

    #define popupid 5

     UC::TextPopup* popup;

  Modeless Class in constructor 

    popup (GetReference (), popupId),

 

But 

DGModelessInit() no have Modeless Class definistion & constructor

 

Please Teach me TextPopup Control address by dialogID and controlID(poupid)

 

1)  UC::TextPopup* pop = UC::TextPopup(???, popupid)

      --> ??? = dialog GetReference ()

  or

  

2) UC::TextPopup* pop = (UC::TextPopup *)DGUserGetControl(dialogID, popupid);

   --> pop == nullptr return

  

 

 

0 REPLIES 0

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!