Caret disapear after inserting list bullet

General TRichView support forum. Please post your questions here
Post Reply
hcourcelles
Posts: 16
Joined: Wed Aug 26, 2009 7:58 pm

Caret disapear after inserting list bullet

Post by hcourcelles »

Hi,

I've created a DBRichViewEdit and created a button name "List" that when click insert a bullet list into the DBRichViewEdit as showned in the "Editor 1" example of the demos.

It is working perfectly in my application except that as soon as the first bullet list is inserted the caret disapear.

I've tried to found in the demo if an option was set but couldn't find one.

What can make the caret disapear?

Thanks!

Helene
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

What's the type of your button for applying lists? If it is TButton or TBitBtn, this button acquires the input focus after your click it. The editor is not focused, so the caret is not shown.
Solution: either use buttons that cannot receive focus (toolbar button or TSpeedButton, for example), or call DBRichViewEdit1.SetFocus after applying lists.
hcourcelles
Posts: 16
Joined: Wed Aug 26, 2009 7:58 pm

Post by hcourcelles »

It is working perfectly now.

Thanks!
Post Reply