MultiLine StaticText
MultiLine StaticText
What is the equivalent to the object "StaticText" (MultiLine) that is found in VisualBasic? I cannot see anything similar in the "Visual Designer". Is there any better designer tool than "Visual Designer"?
The TextGadget() supports new lines as well (maybe not in the visual designer).
The simplest is to not use the visual designer and just write the code by hand:
The simplest is to not use the visual designer and just write the code by hand:
Code: Select all
OpenWindow(0, 0, 0, 512, 384, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))
TextGadget(0, 10, 10, 200, 200, "First line" + #CRLF$ + "Second line")
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
Break
EndSelect
ForEver
Different fonts in a TextGadget
Thanks!
BTW. Is it possible to combine different fonts in a string that is printed in a TextGadget?
BTW. Is it possible to combine different fonts in a string that is printed in a TextGadget?

