Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / BlueGui - force a new line in a text/edit box

Author
Message
The Old Man
21
Years of Service
User Offline
Joined: 24th Aug 2003
Location: Ct., USA
Posted: 14th May 2006 17:55
I want to send text to an edit box and then have it start on a new line in the edit box when I send text again- or is there a better way-I actually want to send messages to the box to show what is happening-one message at a time -e.g. I create a panel and I want to send a message the edit box 'panel created'.If I create a listbox I want to send a message 'listbox created' without wiping out the first message like:
panel created
listbox created
I hope this is clear enough and someone can help me.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 14th May 2006 20:52
Using a listbox would be a better method than using an edit gadget, although you can insert a new line using the chr$(13)+chr$(10) combination (it may be the other way round - I cannot remember off-hand)


BlueGUI Windows Plugin
EddieB
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location: United Kingdom
Posted: 14th May 2006 20:56
char$(10) = '\n'
and char$(13) = '\r'?

If so, Then yes, that should work
The Old Man
21
Years of Service
User Offline
Joined: 24th Aug 2003
Location: Ct., USA
Posted: 14th May 2006 21:58
Thanks to both of you
Xolatron
18
Years of Service
User Offline
Joined: 12th Mar 2006
Location: The Star Forge Language: DBpro
Posted: 1st Jun 2006 18:42
Yes, the 13 is first, the 10 second:

#CONSTANT NEWLINE chr$(13)+chr$(10)

And yes, the 10 is the \n or newline, while the 13 is the \r or carriage return.

-Xol

Login to post a reply

Server time is: 2024-11-22 06:23:04
Your offset time is: 2024-11-22 06:23:04