03-09-2015, 04:16 PM
I can't seem to create a combo box that displays the list of elements when it's run. here is the code I tried. I made a simple test based on the inp2 function i found in the forum just to see how to create a box with a list of 5 numbers. When the function is called the box is there but no list of numbers inside the box. Help please.
Function inp3
Function inp3
;\Dialog_Editor
function# str&s [$text] [$caption] [$default] [x] [y]
;Input box. Similar to inp, but you can set position.
;Requires QM 2.1.8 or later.
;EXAMPLE
;str s
;if(!inp2(s "text" "caption" "" 0 -10)) end
;out s
str controls = "3"
str cb3
if(!ShowDialog("inp3" 0 &controls 0 0 0 0 0 x y)) ret
s=cb3
ret 1
;
;BEGIN DIALOG
;0 "" 0x90C80A46 0x188 0 0 204 122 "Combo Box Test"
;3 ComboBox 0x54230242 0x0 4 8 96 213 "1[]2[]3[]4[]5[]"
;1 Button 0x54030001 0x4 76 104 48 14 "OK"
;2 Button 0x54030000 0x4 136 104 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040202 "" "" "" ""