new line in the text gadget

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Post Reply
super_castle
Posts: 289
Joined: Oct 10, 2006 7:19

new line in the text gadget

Post by super_castle »

Hello, why new line in the text gadget in the window9 ?

SetGadgetText (2, "neuer text"+Chr(10)+Chr(13)) not funktion.

Thanks
VANYA
Posts: 1859
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: new line in the text gadget

Post by VANYA »

Hi super_castle!

Code: Select all

#Include "window9.bi"
Dim As hwnd hwnd
Dim As integer event
hwnd=OpenWindow("1",300,10,230,200)
EditorGadget(1,10,10,100,50)
SetGadgetText(1,"hello" + Chr(13) + Chr(10) + "super_castle")
ButtonGadget(2,10,60,100,50,"hello super_castle",BS_MULTILINE)
TextGadget(3,120,10,90,50,"")
SetGadgetText(3,"hello" + Chr(13) + Chr(10) + "super_castle")

Do
 event=WaitEvent()
 If event=EventClose Then End
Loop
Post Reply