Author Topic: Can't fill ListBox in 2nd (overlapping) modal dialog  (Read 3584 times)

0 Members and 1 Guest are viewing this topic.


  • Newt
  • Posts: 47
Can't fill ListBox in 2nd (overlapping) modal dialog
« on: March 20, 2022, 11:09:32 PM »

Relative ODCL newbie here, but making progress. At least until now.

Scenario: programs displays a main dialog displays which acts properly. I've added a Browse button to the main dialog so the user can select a CSV file to import. This Browse "event" works; it lets the user select the file, then displays a 2nd dialog containing a ListBox. The purpose of the ListBox is so the user can select the rows they want imported. This 2nd dialog displays fine, but I haven't been successful in filling the ListBox.

Code is shown below (with test list for ListBox):

Code: [Select]
(defun c:Skyline/SkylinePurlins#OnInitialize (/)
    (dcl-ListBox-Clear Skyline/SkylineSteel/ListBox_PurlinMarks)
    (dcl-ListBox-AddList Skyline/SkylineSteel/ListBox_PurlinMarks '("Row1" "Row2" "Row3"))

What am I missing?

Chris Lindner
Onebutton CAD Solutions
---------------------------------------------------- #dayjob    #sidehustle