the set text in a text box needs to be a long string.... I would like to make a large text box populate and be able to control when the
next line is started... as in the below:
1. this is first line of text
2. this is second line
3. third line
4. etc.
but I don't know if there is a special character to control this?
Thanks!
does /n work?
I tried it, it did not....
I don't know of a way.
Can you use a listbox ??
Something like :
(vl-load-com)
(command "OPENDCL")
;;;---------------------------------------------------------------------------
;;;
;|<<MAIN>>|;
(defun c:Hype1 (/ dialogreturn)
(dcl_project_load "HYPE-01" T)
(dcl_form_show HYPE-01_F)
;;------
(princ)
)
;;;---------------------------------------------------------------------------
;;;
;|<<OPENDCL Handlers Event>>|;
;;;-------------------------------------------
(defun c:Hype-01_F_Populate_OnClicked (/)
(setq longTextString (list
"1. this is first line of text"
"2. this is second line"
"3. third line"
"4. etc."
)
)
(dcl_ListBox_AddList Hype-01_F_ListBox1 longTextString)
)
;;;-------------------------------------------
(defun c:Hype-01_F_ListBox1_OnSelChanged (ItemIndexOrCount Value /)
(dcl_MessageBox Value "Selected Value from ListBox" 2 2)
)
;;;---------------------------------------------------------------------------
;;;
(princ)
Refer attachments:
That should work!
Thanks!
Hi guys, I'm not sure if you meant this (http://www.opendcl.com/forum/index.php?topic=1076.msg5658#msg5658).
Fred
Yes that works perfect!!!
Thanks Fred, that might have been easier..... ::)