Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone.
I am having problems with a dialog box that I am creating.
The visual lisp editor gives me this : error: string too long on input:
If I remove two rows, it will work, but actually I need to have 16 rows...
I have seen many dialog boxes with more information than mine and I do not understand how it is possible to achieve this.
Thank you in advance for any help.
p.s. I did not put the action_tile yet for the purpose of getting help here before. I will do this latter.
(defun c:test ( / d o) (if (and (setq d (vl-filename-mktemp nil nil ".dcl")) (setq o (open d "w")) (write-line (strcat "InfoSec:dialog{key=\"Title\";label=\"INFORMATION\"; :column{ :row{ :text{label=\" \";width=4;} :text{label=\"ID prod.\";width=10;} :text{label=\"Sct#\";width=1;} :text{label=\"Technology\";width=21;} :text{label=\"Prod. model\";width=20;} :text{label=\"Hight\";width=3;} :text{label=\"Level\";width=5;} :text{label=\"MDT\";width=5;}} :row{ :radio_button{key=\"radio1\";} :edit_box {key=\"eid1\";edit_width=7;} :edit_box {key=\"esc1\";edit_width=3;} :edit_box {key=\"ete1\";width=20;} :edit_box {key=\"emo1\";width=18;} :edit_box {key=\"eaz1\";edit_width=4;} :edit_box {key=\"eha1\";edit_width=7;} :edit_box {key=\"emd1\";edit_width=3;}} :row{ :radio_button{key=\"radio2\";} :edit_box{key=\"pid1\";edit_width=7;} :edit_box{key=\"psc1\";edit_width=3;} :edit_box{key=\"pte1\";width=20;} :edit_box{key=\"pmo1\";width=18;} :edit_box{key=\"paz1\";edit_width=4;} :edit_box{key=\"pha1\";edit_width=7;} :edit_box{key=\"pmd1\";edit_width=3;}} :row{ :radio_button{key=\"radio3\";} :edit_box {key=\"eid2\";edit_width=7;} :edit_box {key=\"esc2\";edit_width=3;} :edit_box {key=\"ete2\";width=20;} :edit_box {key=\"emo2\";width=18;} :edit_box {key=\"eaz2\";edit_width=4;} :edit_box {key=\"eha2\";edit_width=7;} :edit_box {key=\"emd2\";edit_width=3;}} :row{ :radio_button{key=\"radio4\";} :edit_box{key=\"pid2\";edit_width=7;} :edit_box{key=\"psc2\";edit_width=3;} :edit_box{key=\"pte2\";width=20;} :edit_box{key=\"pmo2\";width=18;} :edit_box{key=\"paz2\";edit_width=4;} :edit_box{key=\"pha2\";edit_width=7;} :edit_box{key=\"pmd2\";edit_width=3;}} :row{ :radio_button{key=\"radio5\";} :edit_box {key=\"eid3\";edit_width=7;} :edit_box {key=\"esc3\";edit_width=3;} :edit_box {key=\"ete3\";width=20;} :edit_box {key=\"emo3\";width=18;} :edit_box {key=\"eaz3\";edit_width=4;} :edit_box {key=\"eha3\";edit_width=7;} :edit_box {key=\"emd3\";edit_width=3;}} :row{ :radio_button{key=\"radio6\";} :edit_box{key=\"pid3\";edit_width=7;} :edit_box{key=\"psc3\";edit_width=3;} :edit_box{key=\"pte3\";width=20;} :edit_box{key=\"pmo3\";width=18;} :edit_box{key=\"paz3\";edit_width=4;} :edit_box{key=\"pha3\";edit_width=7;} :edit_box{key=\"pmd3\";edit_width=3;}} spacer; :row{fixed_width=true;alignment=centered; :button{key=\"Save\";label=\"&Save\";is_default=true;}} :row{:column{fixed_width=true; :row{:column{spacer; :image_button{key=\"Select\";width=3;height=1.4;color=15;} spacer;} :column{spacer; :text{label=\"Select block\";} spacer;}}}} } spacer; : row { fixed_width = true; alignment = centered; : button { key = \"OK\"; label = \"&OK\"; is_default = true; width = 12; fixed_width = true;} : button { key = \"Cancel\"; label = \"&Cancel\"; is_cancel = true; width = 12; fixed_width = true;} } }" );strcat o );write-line (not (close o)) );and (progn (if (and (< 0 (setq id (load_dialog d))) (new_dialog "InfoSec" id) );and (progn (action_tile "OK" "(done_dialog 1)") (action_tile "Cancel" "(done_dialog 0)") (setq rtn (start_dialog)) (unload_dialog id) (vl-file-delete d) );progn (progn (unload_dialog id) (vl-file-delete d) );progn );if (cond ((eq rtn 3) (RefillDP) ) ((and radio1 (eq rtn 3)) (IS) );eq );cond );progn );if );defun
Solved! Go to Solution.