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 work with "List Box" Dialog item ?

Nayan
Booster
Hello, I am try to create a dropdown list in the Modal dialog. But it seems like DG(Dialog framework) does not provide any controls like dropdown. I think this can be achieved using List Box.

Here are the modal properties in the GRC file:

'GDLG' ID_ADDON_DLG Modal 40 40 250 352 "Add-Ons UI" {
/* [ 1] */ Button 150 319 90 23 LargePlain "OK"
/* [ 2] */ Button 50 319 90 23 LargePlain "Cancel"
/* [ 3] */ Icon 15 10 220 160 10001
/* [ 4] */ LeftText 10 100 230 23 LargeBold vCenter "Template Settings"
/* [ 5] */ LeftText 10 130 130 23 LargePlain vCenter "Scale"
/* [ 6] */ PosIntEdit 150 130 90 23 LargePlain "1" "50"
/* [ 7] */ LeftText 10 160 130 23 LargePlain vCenter "Layer Combination"
/* [ 8] */ PosIntEdit 150 160 90 23 LargePlain "1" "50"
/* [ 9] */ Separator 10 307 230 2
/* [ 10] */ SingleSelListView 50 200 200 50 SmallPlain 64 64 96 96 bottomText
}

In the Dialog I have inherited DG:: ModalDialog and DG::ListBoxObserver but the problem is I can not insert any listitem in the ListBox so in the UI I am just getting a empty ListBox.
I have followed the "Maze Generator" tutorial and from that got the idea about get and set value to the EditBox and CheckBox item. But the ListBox is not working on the same way.
Can anyone please help me on this?
0 REPLIES 0