trichview.com

trichview.support




RVStyle -> OnApplyStyle


Return to index


Author

Message

Alexander Fatykhov

Posted: 07/01/2005 11:15:36


Hello, All!


I have trouble with this event.


my code:


  if ( v_edit_mode )

     {

       Canvas->Font->Assign(RVStyle->TextStyles->Items[StyleNo]);

       Canvas->Font->Size = RVStyle->TextStyles->Items[StyleNo]->Size + 1;

       Canvas->Font->Name = RVStyle->TextStyles->Items[StyleNo]->FontName;

       DoDefault = false;

     }


so, I want to increase font size to 1 point in edit mode.

it works, but strange, it looks like if text style is bold - left positions

of words isn't recalculated!

instead of "word1 word2" I got smth like this "word@ord2", where "@" - last

letter (or several) of previous word at back and first (or several) letters

of next

word at top...

and trouble with tables.

if cell text align is right, then several letters is out of cell:

--------

some te|xt

--------


is it normal?





Powered by ABC Amber Outlook Express Converter