Page 1 of 1

Adjusting text lines in a editorgadget or stringgadget

Posted: Tue Oct 03, 2006 7:34 pm
by SP
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

Posted: Tue Oct 03, 2006 8:20 pm
by Trond

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



Posted: Wed Oct 04, 2006 5:59 am
by SP
OK Trond!
It's exactly that I need! Thanks

Greetings