Custom cursor for footnotes

General TRichView support forum. Please post your questions here
Post Reply
csterg
Posts: 306
Joined: Fri Nov 25, 2005 9:09 pm

Custom cursor for footnotes

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

If you store data as RTF, footnotes and endnotes are read in RVRTFProps.pas
csterg
Posts: 306
Joined: Fri Nov 25, 2005 9:09 pm

Post 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
Post Reply