File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1149,7 +1149,25 @@ export format is a [[https://www.tecgraf.puc-rio.br/iup/en/led.html][IUP LED fil
1149
1149
1150
1150
** List Dialog
1151
1151
1152
+ Use [[http://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iuplistdialog.html][iup:list]] (IupListDialog). You can display the items inline, make
1153
+ the list a dropdown or add an editbox.
1154
+
1152
1155
#+begin_src lisp :results silent :tangle examples/dialogs.lisp
1156
+ (defun iuplist ()
1157
+ (iup:with-iup ()
1158
+ (let* ((frame (iup:frame
1159
+ (iup:vbox (loop for list in (list (iup:list :value 1 :tip "List 1")
1160
+ (iup:list :value 2 :tip "list 2" :dropdown :yes)
1161
+ (iup:list :value 3 :tip "List 3" :editbox :yes))
1162
+ do (loop for i from 1 upto 3
1163
+ do (setf (iup:attribute list i)
1164
+ (format nil "Item ~A" i)))
1165
+ collect list))
1166
+ :title "IUP List"))
1167
+ (dialog (iup:dialog frame :menu "menu" :title "a title")))
1168
+ (iup:map dialog)
1169
+ (iup:show dialog)
1170
+ (iup:main-loop))))
1153
1171
#+end_src
1154
1172
1155
1173
** Get Param Dialog
You can’t perform that action at this time.
0 commit comments