Code: Select all
If OpenWindow(0, 0, 0, 322, 205, "StringGadget Flags", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
StringGadget(0, 8, 10, 306, 25, "Line 1" + Chr(10) + "Line 2" + Chr(10) + "Line 3")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Code: Select all
cell = CocoaMessage(0, GadgetID(0), "cell")
CocoaMessage(0, cell, "setUsesSingleLineMode:", #YES)