Restored from previous forum. Originally posted by Naitfreak.
How do I achieve a decent word-warp like in Notepad? I think it has to be done manually but actually I have no clue how do do this. So any help is appreciated.
Lata~
Word-Warp in string gadgets?
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Kendrel.
i dunno exactly what you mean, but this lets you create a multiline stringgadget:
StringGadget(20,60,95,182,40,"",#ES_MULTILINE|#ES_AUTOVSCROLL|#WS_VSCROLL)
or its probably this:
pbcrlf.s=Chr(13)+Chr(10)
text1.s = "Line1"
text2.s = "Line2"
SetGadgetText(20,text1+pbcrlf+text2)
so your stringgadget would have:
Line1
Line2
probably this helps
so long,
kendrel
i dunno exactly what you mean, but this lets you create a multiline stringgadget:
StringGadget(20,60,95,182,40,"",#ES_MULTILINE|#ES_AUTOVSCROLL|#WS_VSCROLL)
or its probably this:
pbcrlf.s=Chr(13)+Chr(10)
text1.s = "Line1"
text2.s = "Line2"
SetGadgetText(20,text1+pbcrlf+text2)
so your stringgadget would have:
Line1
Line2
probably this helps
so long,
kendrel
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
From PB
Courtesy of Fangbeast in another post:
Regards, FangBeastly 
We are Dyslexic of Borg, prepare to have your ass laminated!
From PB
Courtesy of Fangbeast in another post:
Code: Select all
If OpenWindow(0,0,0,640,480,#PB_Window_SystemMenu,"") And CreateGadgetList(WindowID(0))
StringGadget(0,8,8,626,466,"Does anybody know how to set this stringgadget to auto-word wrap? When the text is too long, it is cut out and this is my problem. Do you know understand what I mean? I want the gadget to automatically add a line return when the text is too long and continued in the next line. Can anybody help me? Please! Thank you!",#ES_MULTILINE | #ESB_DISABLE_LEFT | #ESB_DISABLE_RIGHT | #ES_AUTOVSCROLL | #WS_VSCROLL)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
We are Dyslexic of Borg, prepare to have your ass laminated!
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Naitfreak.
ROFL!
Fangbeast, I know the #ESB_DISABLE_LEFT & #ESB_DISABLE_RIGHT flags but the doesn't solve my problem. Your example works but as long I don't learn how to write Arabian it's facing in the wrong direction. The text should break on the right, not the left.
ROFL!
Fangbeast, I know the #ESB_DISABLE_LEFT & #ESB_DISABLE_RIGHT flags but the doesn't solve my problem. Your example works but as long I don't learn how to write Arabian it's facing in the wrong direction. The text should break on the right, not the left.
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm