Push button - not all function are running in button-event

Started by cadplayer · 2016-04-30 12:06 UTC · 4 replies · SMF topic #2368

Hello!
I don´t realy understand what´s the diffrent between modal and unmodal Dialog.
But in my case I have a problem, once I click Ok-Button in my Dialog and not all functions in Ok-Button-click-event would be run.
Have somebody has have same problems and could it solve ?!
Look at the Event Invoke property of the modeless dialog.
Thank you Roy, that´s solved it!
Hello again!
Something is strange her, I have open dcl-dialog and push button "Ok" then it should request: "Do you want table... " but this question doesn´t display:

(defun cd:CreateTable(lst / r)
    ;error: Can't reenter LISP.
    ;https://www.theswamp.org/index.php?topic=43587.0
    (opendcl_init_ui 1)
    (setq r (getstring t "\nDo you want Project Datas in Tableform Press : "))
    (if (= "" r)
        (cd:AddTable (reverse lst) "Project datas") ; output dynamically Textresults
        )       
    )

Take a look on this video, may understand it better http://screencast.com/t/ukKo5OfX
Your video is confusing. You say "the question doesn't display", yet the "Do you want ... " prompt is clearly visible in the command line.
In general it is better to supply (simplified) .lsp and .odcl files when trying to address such issues.