To be able to specify the version of RichEdit to use.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

To be able to specify the version of RichEdit to use.

Post by DoubleDutch »

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:

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
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.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Re: To be able to specify the version of RichEdit to use.

Post by neotoma »

Still missing.

At the moment i am writing a Editor and missing the new Functions. (RichEdit50W).

Mike
Post Reply