If OpenWindow(0,0,0,340,480,#PB_Window_SystemMenu,"") And CreateGadgetList(WindowID(0))
StringGadget(0,8,8,326,466,"Does anybody know how to set this stringgadget to auto-word wrap? When the text is too long, it is cut out and this is my problem. Do you know understand what I mean? I want the gadget to automatically add a line return when the text is too long and continued in the next line. Can anybody help me? Please! Thank you!",#ES_MULTILINE | #ESB_DISABLE_LEFT | #ESB_DISABLE_RIGHT | #ES_AUTOVSCROLL | #WS_VSCROLL)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
This works perfect under winXP, but...
on win98 the text is right aligned?????
Procedure EditGadgetEnableTextWarp(Id); - Activate the automatic word-warp for a EditorGadget
GID=GadgetID(11)
dc=GetWindowDC_(GID)
SendMessage_(GID, #EM_SETTARGETDEVICE ,dc ,-1)
ReleaseDC_(GID,dc)
EndProcedure
EditorGadget(1,blablabla)
EditGadgetEnableTextWarp(1)
@Andre:
Can you remove the example above? Because it only work on XP (and i found no information, that it is allowed to use this constants to a string-gadget in the SDK...)
If OpenWindow(0,0,0,340,480,#PB_Window_SystemMenu,"") And CreateGadgetList(WindowID(0))
EditorGadget(0, 8, 8, 326, 466)
SendMessage_(GadgetID(0), #EM_SETTARGETDEVICE, #NULL, 0)
SetGadgetText(0, "Does anybody know how to set this stringgadget to auto-word wrap? When the text is too long, it is cut out and this is my problem. Do you know understand what I mean? I want the gadget to automatically add a line return when the text is too long and continued in the next line. Can anybody help me? Please! Thank you!")
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
@GPI / Kale: Can anyone test Kale's new code on Win98, please ? On WinXP it works fine, if its the same for other Windows versions I will change the code the CodeArchive to the new one...
@ GPI / Kale / Andre:
Kale's prog works fine, but in purearea the first prog is described with 'stringgadget with wordwrap' and kale's doesn't have the rightclick kontext-menu like in the stringgadget.
@ El_Choni: I know, we talked about this, but my question was WHY?
on my w98fe...
DEU.exe's code does wrap and has right-click options, but it is right justified
and Kale's wraps correctly but lacks the right-click options as mentioned.
Joe