Page 1 of 1

Posted: Mon Mar 17, 2003 5:17 pm
by BackupUser
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~

Posted: Mon Mar 17, 2003 8:04 pm
by BackupUser
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

Posted: Tue Mar 18, 2003 9:00 pm
by BackupUser
Restored from previous forum. Originally posted by Naitfreak.

Well, not quite. I mean that any text that reaches the end of the right side (scrollbar) breaks and continues at the next line. Just word-warp you know?

Posted: Tue Mar 18, 2003 10:57 pm
by BackupUser
Restored from previous forum. Originally posted by Fangbeast.

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
Regards, FangBeastly :)

We are Dyslexic of Borg, prepare to have your ass laminated!

Posted: Thu Mar 20, 2003 2:27 pm
by BackupUser
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.

Posted: Thu Mar 20, 2003 9:10 pm
by BackupUser
Restored from previous forum. Originally posted by Voldemort.
The text should break on the right, not the left.
Breaks on the right for me...

Posted: Thu Mar 20, 2003 10:43 pm
by BackupUser
Restored from previous forum. Originally posted by Fangbeast.

Breaks on the right for me too. Maybe your keyboard has been setup for right to left languages support?


We are Dyslexic of Borg, prepare to have your ass laminated!