Custom cursor for footnotes
Posted: Wed Oct 07, 2009 8:39 am
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
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