OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: cadplayer on April 30, 2016, 05:06:58 AM

Title: Push button - not all function are running in button-event
Post by: cadplayer on April 30, 2016, 05:06:58 AM
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 ?!
Title: Re: Push button - not all function are running in button-event
Post by: roy_043 on April 30, 2016, 06:54:52 AM
Look at the Event Invoke property of the modeless dialog.
Title: Re: Push button - not all function are running in button-event
Post by: cadplayer on April 30, 2016, 10:26:07 AM
Thank you Roy, that´s solved it!
Title: Re: Push button - not all function are running in button-event
Post by: cadplayer on May 02, 2016, 11:18:23 PM
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
Title: Re: Push button - not all function are running in button-event
Post by: roy_043 on May 04, 2016, 03:59:48 AM
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.