Are you bored with the plain old Richedit control yet? 
Just tested some code to load Richedit 2 and I thought I'd share
it here. Richedit 2 is a later version and the file is called
Riched20.dll. If you have an older version of Windows 95, it may
not be present, so if you want to use it, you'd better make sure
it is available at all (like if LoadLibrary("Riched20.DLL") fails,
use LoadLibrary("Riched32.DLL") instead, etc..)
RE2 has support for multilevel Undo/Redo, Transparency support,
password style through EM_SETPASSWORDCHAR, etc.
To create it, use the following (DDT code example):
To test the multilevel Undo/Redo, type some text into it, move some
selected text around with the mouse and use Ctrl+V to paste something
into it. Then use Ctrl+Z repeated times to undo, or Ctrl+Y to redo..
To learn more about it, go to http://search.microsoft.com/us/dev/
and search for "Riched20" or "Richedit 2", something like that..
[This message has been edited by Borje Hagsten (edited April 26, 2000).]

Just tested some code to load Richedit 2 and I thought I'd share
it here. Richedit 2 is a later version and the file is called
Riched20.dll. If you have an older version of Windows 95, it may
not be present, so if you want to use it, you'd better make sure
it is available at all (like if LoadLibrary("Riched20.DLL") fails,
use LoadLibrary("Riched32.DLL") instead, etc..)
RE2 has support for multilevel Undo/Redo, Transparency support,
password style through EM_SETPASSWORDCHAR, etc.
To create it, use the following (DDT code example):
Code:
%ID_RICHEDIT2 = 500 'whatever.. ---------------------------------------- LOCAL hRichEd AS LONG hRichEd = LoadLibrary("Riched20.DLL") CALL InitCommonControls 'Use RichEdit20W if you want unicode support.. CONTROL ADD "RichEdit20A", hDlg, %ID_RICHEDIT, "", 6, 6, 126, 110, _ %WS_CHILD OR %WS_VISIBLE OR %ES_MULTILINE OR %WS_VSCROLL OR _ %WS_HSCROLL OR %ES_AUTOVSCROLL OR %ES_WANTRETURN OR _ %ES_NOHIDESEL, %WS_EX_CLIENTEDGE CALL DlgCallback
selected text around with the mouse and use Ctrl+V to paste something
into it. Then use Ctrl+Z repeated times to undo, or Ctrl+Y to redo..
To learn more about it, go to http://search.microsoft.com/us/dev/
and search for "Riched20" or "Richedit 2", something like that..

[This message has been edited by Borje Hagsten (edited April 26, 2000).]
Comment