We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-07-23 02:54 PM - last edited on 2024-07-25 08:51 AM by Noemi Balogh
Good day everyone. I need a help with understanding the GRC nature in order to properly define modal dialogs and other appereances.
I wonder if there is a documentation like cppreference but for GRC so I could understand this scripting language better?
I am trying to define the modal dialog, however, I get stucked with some errors sometimes when trying to add styles or else.
For example:
Here I made a wrote a simple grc for this modal dialogue...
How can I get rid of that question mark thing?
ChatGPT gave me this solution:
'GDLG' 32525 Modal 10 10 300 200 "Modal" {
Style NoResizing, NoHelpButton // Add this line
/* [ 1] */ Button 130 160 30 30 LargePlain "OK"
}
However, this solution seems not being properly built when I press "Build" button to build the final project in Visual Studio.
Now I am completely lost how the syntax is organized in GRC. I need help please.
Thank you in advance!
Operating system used: Windows 10
2024-07-30 04:04 AM
Hi, I'd suggest you to check the help file (DialogManager.chm) which you can find in API kit. Also, there is a sample code (DG_Test) in API Examples code which shows you how to create UI in your addon.
HTH.