OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on March 31, 2009, 11:01:01 AM

Title: dcl_Control_GetProperty
Post by: velasquez on March 31, 2009, 11:01:01 AM
In the beginning of my code I do: 
 
Code (autolisp) Select
(defun c:DuctilCAD_Tes_OnInitialize (/)
  (dcl_ComboBox_Clear DuctilCAD_Tes_Combo-DN)
  (dcl_ComboBox_AddList
    DuctilCAD_Tes_Combo-DN
    (list "30" "50" "80" "120")
  ) ;_ fim de dcl_ComboBox_AddList
  (dcl_ComboBox_SetCurSel DuctilCAD_Tes_Combo-DN 0)
) ;_ fim de defun

 
Before the closing I try the function below and she comes back anything.
Code (autolisp) Select
(setq ComboList (dcl_Control_GetProperty DuctilCAD_Tes_Combo-DN "List"))
 
Am I making something wrong?   
Or this is not possible in this condition.
Thanks   
Title: Re: dcl_Control_GetProperty
Post by: BazzaCAD on March 31, 2009, 11:05:29 AM
Try this:
http://www.opendcl.com/HelpFiles/ENU/Reference/Property/List.htm (http://www.opendcl.com/HelpFiles/ENU/Reference/Property/List.htm)
Title: Re: dcl_Control_GetProperty
Post by: velasquez on March 31, 2009, 12:21:13 PM

Hi Bazz 
I still work with OpenDCL 4.1.2.2. 
This function exists but nothing doesn't come back.


Code (autolisp) Select
(setq ComboList (dcl_Control_GetList DuctilCAD_Tes_Combo-DN))

(setq ComboList (dcl_Control_GetList "DuctilCAD" "Tes" "Combo-DN"))

Title: Re: dcl_Control_GetProperty
Post by: owenwengerd on March 31, 2009, 03:26:53 PM
In OpenDCL 4, 'List' was a design-time-only property (it was used only when constructing the list box, then ignored).