Dear all
I want
if the 'edit_box " is nil (no input any string)
press "ok" button , can't quit, press"cancel" button can quit.
(setq dcl_file (load_dialog fname) dd 3)
(while
(or (not (= nom nil)) (= dd 3))
(new_dialog "mydcl" dcl_file)
(action_tile "eb1" "(setq nom $value)")
(action_tile "ok" "(setq nom (get_tile \"eb1\")) (done_dialog 1)")
(action_tile "cancel" "(done_dialog 0)")
(mode_tile "eb1" 2)
(setq dd (start_dialog))
);;_end_while
(unload_dialog dcl_file)
(vl-file-delete fname)
(cond
((= dd 1)(test1))
((= dd 0)(test2))
(t)
)
But ,use above code. I Enter string to edit_box or keep nil , press "ok" or "cancel" ,can't quit , All operations can't quit
I changed (or (not (= nom nil)) (= dd 3)) ==to=> (or (= nom nil) (= dd 3)) , if edit_box nil , still can quit .
Depressed .....