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:
@ -303,12 +303,17 @@ begin
|
|||||||
SendMessage(RichEditWnd, EM_EXSETSEL, 0, PtrInt(@Range));
|
SendMessage(RichEditWnd, EM_EXSETSEL, 0, PtrInt(@Range));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TRichEditManager.SetHideSelection(RichEditWnd: Handle; AValue: Boolean);
|
class procedure TRichEditManager.SetHideSelection(RichEditWnd: Handle; AValue: Boolean);
|
||||||
|
var
|
||||||
|
style : LResult;
|
||||||
begin
|
begin
|
||||||
|
// res-setting options might RichEdit style. Must restore it, after option is changed
|
||||||
|
style := GetWindowLong(RichEditWnd, GWL_STYLE);
|
||||||
if AValue then
|
if AValue then
|
||||||
SendMessage(RichEditWnd, EM_SETOPTIONS, ECOOP_AND, not ECO_NOHIDESEL)
|
SendMessage(RichEditWnd, EM_SETOPTIONS, ECOOP_AND, not ECO_NOHIDESEL)
|
||||||
else
|
else
|
||||||
SendMessage(RichEditWnd, EM_SETOPTIONS, ECOOP_OR, ECO_NOHIDESEL);
|
SendMessage(RichEditWnd, EM_SETOPTIONS, ECOOP_OR, ECO_NOHIDESEL);
|
||||||
|
SetWindowLong(RichEditWnd, GWL_STYLE, style);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
Reference in New Issue
Block a user