Hi,
I want to obtain the position of the text insertion point(Caret) in the Winform control (pink box in the picture below). The GetCaretXY function cannot obtain coordinate information
This problem has been bothering me for a long time, and now I have come up with a new solution:
Inside the Winform control, I can use the following code to obtain the position of the Caret, as shown in the following image
How to send this message in QM and obtain the position of the Caret? I can already obtain the handle of this control through the QM code below
Thanks in advance for any suggestions and help
david
Function Macro3
I want to obtain the position of the text insertion point(Caret) in the Winform control (pink box in the picture below). The GetCaretXY function cannot obtain coordinate information
This problem has been bothering me for a long time, and now I have come up with a new solution:
Inside the Winform control, I can use the following code to obtain the position of the Caret, as shown in the following image
Winform C# code:
var viewBounds = se1.ActiveView.GetCharacterBounds(se1.ActiveView.Selection.CaretPosition).Rect;
Console.WriteLine(viewBounds.ToString());
How to send this message in QM and obtain the position of the Caret? I can already obtain the handle of this control through the QM code below
Thanks in advance for any suggestions and help
david
Function Macro3
int w=win("Actipro" "*.Window.*")
int c=child("" "*.Window.*" w 0x0 "wfName=syntaxEditor1")
out c
;SendMessageW c ??? 0 0 ;;Todo: Send a message to the control to obtain the result of the following code execution
;______________________________________________________________________
;Winform C# code:
;var viewBounds = se1.ActiveView.GetCharacterBounds(se1.ActiveView.Selection.CaretPosition).Rect;
;Console.WriteLine(viewBounds.ToString());