Hi,
Somebody knows how to autoadjust the text lines to the width of a gadget (editor or stringgadget)?
I would like not to have to press the intro key when at the end of the line.
Thanks!
Greetings
Adjusting text lines in a editorgadget or stringgadget
Code: Select all
OpenWindow(0, 0, 0, 512, 384, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))
EditorGadget(0, 10, 10, 512-20, 384-20)
SendMessage_(GadgetID(0), #EM_SETTARGETDEVICE, 0, 0)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
Break
EndSelect
ForEver