Result = EditorGadget(#Gadget, x, y, Width, Height [, Flags][,version$])
eg:
Code: Select all
Procedure EditorGadget(h, x, y, w, h, f=0, v$="RichEdit20A")
ProcedureReturn CreateWindowEx_(#WS_EX_CLIENTEDGE,v$,"",f, x, y, w, h,WindowID(0), 0, GetModuleHandle_(0), 0)
EndProcedure
This way all the normal PureBasic commands could be used to control the gadget rather than having to use the API commands.