WPCubed Product Support

Set cursor visible and blinking after file open?

I cannot for the life of me get the cursor to show up in a wprichtext after loading a file unless I manually click on the wprichtext.

#1 ♥ 0
3.5k Views 2 users read 1 min
support

Hi,

I assume this is an MDI project? Here I had the problem, too. It is somehow caused by the VCL I guess. The only way I find was the creation of a TEdit, place the cursor there and then hide that editor. Now the cursor is "free" and can be movced to TWPRichtext.

Usually a

WPRichText1.SetFocus

in Form.OnShow is enough to show the cursor in the editor.

Julian

  • If somebody knows a better way please tell
#2 ♥ 0

It is VCL forms project. I will try your suggestion. Thank you.

#3 ♥ 0
This category is archived. No new posts are possible.