Seems to work for me PROVIDING the Dropdown width is greater than the Control ..
(vl-load-com)
(command "OPENDCL")
;; Test Code
;; 20091125 kdub@home
;|<>|;
;;;---------------------------------------------------------------------------
;;; (findfile "Test1125A.ODCL")
;;;---------------------------------------------------------------------------
;;;
(defun c:doit (/ dialogreturn)
(dcl_project_load "Test1125A.ODCL" t)
;; Show the main form
(setq dialogreturn (dcl_form_show test1125a_main))
;;------
(princ)
)
;;;---------------------------------------------------------------------------
;;;
;|<>|;
;;;---------------------------------------------------------------------------
;;;
;|<>|;
(defun c:Test1125A_Main_OnInitialize (/)
(setq combocontent '("AddColor" "AddList" "AddPath"
"AddString" "Clear" "ClearEdit"
)
)
(dcl_ComboBox_AddList Test1125A_Main_ComboBox1 combocontent)
)
;;;-------------------------------------------
(defun c:Test1125A_Main_ComboBox1_OnDropDown (/)
(dcl_ComboBox_SetDroppedWidth Test1125A_Main_ComboBox1 300)
;;(dcl_ComboBox_SetDroppedWidth Test1125A_Main_ComboBox1 70)
)
;;;-------------------------------------------
;;;---------------------------------------------------------------------------
;;;
(prompt "\n DOIT to run.")
(princ)
regards
Kerry