OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: domenicomaria on June 02, 2024, 06:43:42 AM

Title: to know from Lisp the TYPE of a control
Post by: domenicomaria on June 02, 2024, 06:43:42 AM
Is there a way to know from Lisp the TYPE of a control contained in an ODCL form?

with dcl-Form-GetControls I get the "entity names" of all the controls

and now I can access many properties of each control

but I can't understand which property allows me to understand if the control is a ListBox, a ComboBox, a TextBox... and so on
Title: Re: to know from Lisp the TYPE of a control
Post by: domenicomaria on June 02, 2024, 11:00:34 PM
dcl-control-dump returns:
CDclControlobject [CtlComboBox: ...
CDclControlobject [CtlCheckBox: ...
CDclControlobject [CtlGraphicButton: ...
and so on ...

but it print the results in the command line

and dcl-control-dump simply returns T
. . .
How can I access this information?
How do you know the TYPE of control?
Title: Re: to know from Lisp the TYPE of a control
Post by: domenicomaria on June 05, 2024, 12:19:52 AM
I solved it by reading logfilename
...
but it's not elegant
...
it would serve a function
(dcl-control-gettype ename-or-control-name)