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

Started by cadplayer, April 30, 2016, 05:06:58 AM

Previous topic - Next topic

cadplayer

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 ?!

roy_043

Look at the Event Invoke property of the modeless dialog.

cadplayer

Thank you Roy, that´s solved it!

cadplayer

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:

Code (autolisp) Select
(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 <Enter>: "))
    (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

roy_043

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.