Adjusting text lines in a editorgadget or stringgadget

Just starting out? Need help? Post your questions and find answers here.
SP
User
User
Posts: 33
Joined: Wed Aug 16, 2006 2:32 pm
Location: BCN-SPAIN

Adjusting text lines in a editorgadget or stringgadget

Post 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
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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


SP
User
User
Posts: 33
Joined: Wed Aug 16, 2006 2:32 pm
Location: BCN-SPAIN

Post by SP »

OK Trond!
It's exactly that I need! Thanks

Greetings
Post Reply