Setting Focus to ScaleRichView
Posted: Sat Aug 05, 2023 8:08 am
Hello Sergey,
I work with ScaleRichviewEdit V 9.01 and unfortunately I can't upgrade because then basic things don't work.
It's about two controls, rv (TRichViewEdit) and srv (TSRichViewEdit).
Because I want to optionally switch between the two, rv is integrated externally with srv.ExternalRV := rv. The switching works perfectly.
My question is about the situation where rv is used as an external control of srv, so srv is the current write area.
When a user jumps into srv with a keyboard shortcut, I want the cursor to already be flashing at a certain position.
With rv this is no problem: SetSelectionBounds and then rv.SetFocus.
With srv.SetFocus the cursor does not blink at the set position, it looks like srv does not have the focus. When I check with Screen.ActiveControl, rv is indeed the active control.
How can I set the focus in the srv so that the cursor flashes there?
Best regards
Martin
I work with ScaleRichviewEdit V 9.01 and unfortunately I can't upgrade because then basic things don't work.
It's about two controls, rv (TRichViewEdit) and srv (TSRichViewEdit).
Because I want to optionally switch between the two, rv is integrated externally with srv.ExternalRV := rv. The switching works perfectly.
My question is about the situation where rv is used as an external control of srv, so srv is the current write area.
When a user jumps into srv with a keyboard shortcut, I want the cursor to already be flashing at a certain position.
With rv this is no problem: SetSelectionBounds and then rv.SetFocus.
With srv.SetFocus the cursor does not blink at the set position, it looks like srv does not have the focus. When I check with Screen.ActiveControl, rv is indeed the active control.
How can I set the focus in the srv so that the cursor flashes there?
Best regards
Martin