You've already forked lazarus-ccr
fix for win richmemo scrollbars
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@988 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -304,11 +304,16 @@ begin
|
||||
end;
|
||||
|
||||
class procedure TRichEditManager.SetHideSelection(RichEditWnd: Handle; AValue: Boolean);
|
||||
var
|
||||
style : LResult;
|
||||
begin
|
||||
// res-setting options might RichEdit style. Must restore it, after option is changed
|
||||
style := GetWindowLong(RichEditWnd, GWL_STYLE);
|
||||
if AValue then
|
||||
SendMessage(RichEditWnd, EM_SETOPTIONS, ECOOP_AND, not ECO_NOHIDESEL)
|
||||
else
|
||||
SendMessage(RichEditWnd, EM_SETOPTIONS, ECOOP_OR, ECO_NOHIDESEL);
|
||||
SetWindowLong(RichEditWnd, GWL_STYLE, style);
|
||||
end;
|
||||
|
||||
type
|
||||
|
Reference in New Issue
Block a user