How to add items to combo list?

Started by neperin, March 24, 2023, 01:33:45 PM

Previous topic - Next topic

neperin

Hello everybody.
I am a newbie, so the question might be rather simple.
How to add items to the combo box in modelless mode? I've search through properties but I couldn't find anything.

Fred Tomke

Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

neperin

Thanks for the reply.
However, I couldn't get the results I want. I really want to populate the combo box in the first place, when the program starts running.
But It is empty, unfortunately.

Here is my code snippet:

(defun c:qq ()
  (command "_OPENDCL")
  (dcl_project_load "modeless")
  (dcl_form_show modeless_mainForm)
  (dcl-Control-AddList bo_type (list "A" "B" "C"))
  (princ)
)

Fred Tomke

Hello, have you already tried to put it into the OnInitialize event?
With regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]