Page 1 of 1

Custom cursor for footnotes

Posted: Wed Oct 07, 2009 8:39 am
by csterg
Hello Sergey,
i need some help pls:
i have implemented in my RVE this: when cursor moves over a footnote, the footnote text appears in a popup (like MS Word).
What i try to do is to make the cursor change when the mouse hovers over the footnote (again as MSWord).

I thought i could replace the TRvFootnoteItemInfo class with one of my own where i override the MouseMove method and use SetCursor there. I did that, i used RegisterRichViewItemClass(rvsFootnote, TRVFootnoteItemInfoEx) and commented out the RegisterRichViewItemClass(rvsFootnote, TRVFootnoteItemInfo); line in initialization section of RVNote (i know, not very good solution but you don't have a global var to set the class, as is the case with RichViewTextItemClass).

The problem is that RV still uses the TRVFootnoteItemInfo and not mine that i registered. What do i do wrong?

Also, if this is not the best way to do it, what is it?

TIA,
Costas

Posted: Wed Oct 07, 2009 3:57 pm
by Sergey Tkachenko
If you store data as RTF, footnotes and endnotes are read in RVRTFProps.pas

Posted: Wed Oct 07, 2009 6:20 pm
by csterg
Hm, i am not sure about the hint.
My requirement is to have the mouse cursor change when the user hovers over a footnote. Can you point me to some direction?

Is the above approach going to work somehow?
Costas