trichview.com

trichview.support




CurTextStyleChanged Problem Urgent! Please


Return to index


Author

Message

Chia Chen Yap

Posted: 03/23/2004 10:54:48


I have problem on the CurTextStyleChange event. I have tested the demo given

on the Editor 2. When I was trying to open a new document, even though I

have commented the rveCurTextStyleChanged(nil);

it will still fire the event. But on my program when the rve.Format was

execute, it will not fire the event. I have to include

rveCurTextStyleChanged(nil); in order to fire the event. But the problem is

when this event is fired, the CurTextStyleNo that I get is 0 which is my

default text style index. This causes the font combo box to display the

incorrect font name. As far as I understand, if the test style doesn't exist

in the rvs.TextStyles... the CurTextStyleNo should be a number larger than

the text style I have. For example, I have 2 text styles with the index 0

and 1, then I will get 2 for unknown text style, am I right?


Please help! This is urgent, I can't find the solution.





Powered by ABC Amber Outlook Express Converter