force next line in a large text box....

Started by Hypersonic · 2009-12-12 21:21 UTC · 8 replies · SMF topic #1075

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")

;;;---------------------------------------------------------------------------
;;;

;|<>|;

(defun c:Hype1 (/ dialogreturn)
  (dcl_project_load "HYPE-01" T)
  (dcl_form_show HYPE-01_F)
  ;;------ 
  (princ)
)

;;;---------------------------------------------------------------------------
;;;
;|<>|;

;;;-------------------------------------------
(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:
Attachments
That should work! 

Thanks!
Hi guys, I'm not sure if you meant {2}.

Fred
Yes that works perfect!!!
Attachments
Thanks Fred, that might have been easier.....  ::)