![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

> Hi, I'm a student trying to write a program to control an automated machine.
> I want to post text into what is for the moment an editbox,
> and I want the text to continue automatically to the next line
> .to scroll vertically.
> I would put the text into a string, but I don't know how to make it
> continue onto the next line.
Try a multi line list box,
[LISTBOX x y w h
(+style LBS_MULTILINE ) ]
Make it taller than 1 line
Convert your message to text and
put a crlf between lines ( swift forth has +crlf function )
Then add it to the list box end -
possibly by getting the text currently in the list box, adding the new text
and putting the total new text back in the list box
You can also add a vertical scroll bar to the list box by adding another style
to the list box,
LBS_VSCROLL
This is all I recall this late at night - ask if you need more details
Warren Heath
> Hi, I'm a student trying to write a program to control an automated machine.
>
> I want to post text into what is for the moment an editbox, and I want
> the text to continue automatically to the next line. Thus, when a
> function is performed, the text confirmation is written into this
> field and displayed in the dialog box. In effect, the text will
> continue as certain commands are executed, and thus the box will need
> to scroll vertically.
>
> The current situation is that one line of text is displayed and then
> replaced by the following line of text. I want this text to continue
> down the screen...
>
> I would put the text into a string, but I don't know how to make it
> continue onto the next line.
> The only solution I can really come up with is to load the text into
> an ACSII buffer each time that a new action is performed, and then
> either paste that directly into the editbox or output it to a text
> file and display that text file in the box. I would prefer the latter
> of these two solutions, but I am not sure how I would do this. I read
> something about a "Daily log" viewer, but I was not sure how I would
> get that into the area of my editbox...
>
> Any help is greatly appreciated!
>
> Thanks in advance,
>
> Anthony Senerchia
> ----------------------------------------------------------------------
> sftalk_at_forth.com The SwiftForth programming discussion email list
> To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
> For list command help, send subject "help" to sftalk-request_at_forth.com
> Message archives are located at http://www.forth.com/archive/sftalk
> ----------------------------------------------------------------------
> This list is a forum for SwiftForth users. For product support and bug
> reports, please send email to support_at_forth.com
> ----------------------------------------------------------------------
>
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Wed Jun 23 2004 - 19:07:22 PDT
This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 03:04:23 PST