You've already forked lazarus-ccr
richmemo: CharAtPos method
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4086 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -251,6 +251,8 @@ type
|
||||
|
||||
function Print(const params: TPrintParams): Integer;
|
||||
|
||||
function CharAtPos(x, y: Integer): Integer;
|
||||
|
||||
property HideSelection : Boolean read fHideSelection write SetHideSelection;
|
||||
property OnSelectionChange: TNotifyEvent read fOnSelectionChange write fOnSelectionChange;
|
||||
property ZoomFactor: Double read GetZoomFactor write SetZoomFactor;
|
||||
@@ -1027,6 +1029,14 @@ begin
|
||||
Result:=TWSCustomRichMemoClass(WidgetSetClass).Print(Self, Printer, params, true);
|
||||
end;
|
||||
|
||||
function TCustomRichMemo.CharAtPos(x, y: Integer): Integer;
|
||||
begin
|
||||
if HandleAllocated then
|
||||
Result:=TWSCustomRichMemoClass(WidgetSetClass).CharAtPos(Self, x, y)
|
||||
else
|
||||
Result:=-1;
|
||||
end;
|
||||
|
||||
function TCustomRichMemo.PrintMeasure(const params: TPrintParams; var est: TPrintMeasure): Boolean;
|
||||
begin
|
||||
if not Assigned(Printer) then begin
|
||||
|
||||
Reference in New Issue
Block a user