TheSwamp

Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: cadpoobah on March 20, 2022, 11:09:32 PM

Title: Can't fill ListBox in 2nd (overlapping) modal dialog
Post by: cadpoobah on March 20, 2022, 11:09:32 PM
All,

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?

Thanks!!!