To be able to specify the version of RichEdit to use.
Posted: Sat May 31, 2008 8:56 am
An added optional parameter for the EditorGadget to specify version (windows only) would be great:
Result = EditorGadget(#Gadget, x, y, Width, Height [, Flags][,version$])
eg:
The default for compability would be "Richedit20A", but the programmer could pick "Richedit50W" if they wanted the latest version.
This way all the normal PureBasic commands could be used to control the gadget rather than having to use the API commands.
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.