Page 1 of 1

Caret disapear after inserting list bullet

Posted: Fri Feb 12, 2010 1:41 am
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

Posted: Sat Feb 13, 2010 4:07 pm
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.

Posted: Thu Feb 18, 2010 1:00 am
by hcourcelles
It is working perfectly now.

Thanks!