rich text experiments in win32maxguiex

BlitzMax Forums/MaxGUI Module/rich text experiments in win32maxguiex

skidracer(Posted 2009) [#1]
anyone wanting to do some experimenting,

it may make NO difference what so ever but in win32maxguiex.bmx try changing:
		LoadLibraryW "riched20.dll"

to
		LoadLibraryW "msftedit.dll"

and
	hwnd=CreateWindowExW(xstyle,"RichEdit20W","",wstyle,0,0,1,1,parent,hotkey,GetModuleHandleW(Null),Null)

to
		
	hwnd=CreateWindowExW(xstyle,"RICHEDIT50W","",wstyle,0,0,1,1,parent,hotkey,GetModuleHandleW(Null),Null)



new features

Additional language support:

Additional languages include Armenian, Divehi, Telugu, and others.

Improved table support Features include:

wrapping within cells, improved handling via RTF, and improved navigation.

hmph...

keyboard shortcuts also of interest from here:

http://msdn.microsoft.com/en-us/library/bb787873(VS.85).aspx#_win32_Rich_Edit_Version_4.1


xlsior(Posted 2009) [#2]
Does switching to the newer rich edit DLL also raise the bar compatibility wise?

e.g. does it still work on a plain vanilla Windows 2000 system, or does this all of a sudden turn it into "XP with servicepack 3 or above" or something?


jsp(Posted 2009) [#3]
I would think so as Rich Edit 4.1 is only mentioned from XP SP1 and above.


SebHoll(Posted 2009) [#4]
Does switching to the newer rich edit DLL also raise the bar compatibility wise?

e.g. does it still work on a plain vanilla Windows 2000 system, or does this all of a sudden turn it into "XP with servicepack 3 or above" or something?

I would think so as Rich Edit 4.1 is only mentioned from XP SP1 and above.

jsp is right in that RichEdit 4.1 (msftedit.dll) is only distributed with Windows XP SP1, but the fact that we are loading a dynamic link library means that we can revert back to the old library if msftedit.dll fails to load for whatever reason:

		If Not LoadLibraryW("msftedit.dll") Then LoadLibaryW("riched20.dll")



SebHoll(Posted 2009) [#5]
Btw, I've just tried this out and even though I haven't had slow parsing problems myself, using RichEdit 4.1 causes files to load quicker than they were before.

As such, perhaps we should implement this anyway. I've made a few other minor tweaks to win32maxguiex.bmx so will include this when I send it to you and Mark.


plash(Posted 2009) [#6]
http://msdn.microsoft.com/en-us/library/bb787873(VS.85).aspx