Run this code with debugger enabled:
Code: Select all
OpenWindow(0, 5,5,400,400,"test",#PB_Window_ScreenCentered | #PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))
EditorGadget(1, 10,10,300,300)
Debug Str(SendMessage_(GadgetID(1), #EM_GETMODIFY, 0, 0))
SendMessage_(GadgetID(1), #EM_SETMODIFY, #True, 0)
Debug Str(SendMessage_(GadgetID(1), #EM_GETMODIFY, 0, 0))
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
The MSDN says that after the creation of a Richedit (which the EditorGadget uses) the MODIFY Flag is set to 0:
(http://msdn.microsoft.com/library/defau ... modify.asp)
What am I doing wrong?
Thanks, in advance
milan1612