AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Linefeeds in a Gui text control...

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ImprisonedPride



Joined: 30 Apr 2008
Posts: 18

PostPosted: Mon May 12, 2008 4:57 am    Post subject: Linefeeds in a Gui text control... Reply with quote

I was wondering, after I looked at the help files, how I can get it so that line feeds appear in a Gui text control? my current code:

Code:


Gui, Add, Edit, +Border w660 h100, +------------------+
| Javelin          |
+------------------+-------+--------+-------------------------------------------+
| Item Name        | Count | Ammo   | Item Types                                |
+------------------+-------+--------+-------------------------------------------+
| Aphasic Plating  |     1 |        | Armor                                     |
| G-Ammo           |  7305 |        | Gun Ammo                                  |
| B-Ammo           |   753 |        | Bomb Ammo                                 |
| Heat Reaver      |     1 |    753 | Signature, Bomb                           |
| Power Strip      |     1 |        | Addon                                     |
| Maneuvering Fins |     1 |        | Addon                                     |
| Inertial Damper  |     1 |        | Emitter                                   |
| Siege Mount      |     2 |        | -10 Thor's Hammer, Mount                  |
| Coffin Maker     |     1 |        | Field Ammo                                |
| Phaser           |     1 |   7305 | Gun                                       |
| Naquadah Gen.    |     1 |        | Reactor                                   |
| Carnot Engine    |     1 |        | Sublight Drives                           |
+------------------+-------+--------+-------------------------------------------+
; all these lines should show up neatly formatted in the Text area, but don't.
Gui, Show, w700 h240
return


What am I missing here? I've tried putting 'n directly into the text, but no matter what, it ignores the end of line and only ends when it catches the word wrap.

EDIT: I've read the continuation section but feel I am missing something.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon May 12, 2008 5:00 am    Post subject: Reply with quote

Code:
Str=
(
+------------------+
| Javelin          |
+------------------+-------+--------+-------------------------------------------+
| Item Name        | Count | Ammo   | Item Types                                |
+------------------+-------+--------+-------------------------------------------+
| Aphasic Plating  |     1 |        | Armor                                     |
| G-Ammo           |  7305 |        | Gun Ammo                                  |
| B-Ammo           |   753 |        | Bomb Ammo                                 |
| Heat Reaver      |     1 |    753 | Signature, Bomb                           |
| Power Strip      |     1 |        | Addon                                     |
| Maneuvering Fins |     1 |        | Addon                                     |
| Inertial Damper  |     1 |        | Emitter                                   |
| Siege Mount      |     2 |        | -10 Thor's Hammer, Mount                  |
| Coffin Maker     |     1 |        | Field Ammo                                |
| Phaser           |     1 |   7305 | Gun                                       |
| Naquadah Gen.    |     1 |        | Reactor                                   |
| Carnot Engine    |     1 |        | Sublight Drives                           |
+------------------+-------+--------+-------------------------------------------+ ; all these lines should show up neatly formatted in the Text area, but don't.
)
Gui, Add, Edit, +Border w660 h100, %Str%
Gui, Show, w700 h240
return
Back to top
ImprisonedPride



Joined: 30 Apr 2008
Posts: 18

PostPosted: Mon May 12, 2008 5:02 am    Post subject: Reply with quote

Thanks... Embarassed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group