Some times ago I used RTF2 in an application, and I wanted to use a
custom RTF2 popup menu.
To accomplish this I use subclassing.
This can be implemented either with Win32 API or with some subclassing
components.
I choose the later approach, for simplicity, using for subclassing the
Subclass.ocx control from SoftCircuits (see threed
http://groups.google.fr/group/microsoft.public.access.forms/browse_frm/thread/c097026ed2bbdb1f/254155cebb5e5a0e?lnk=st&q=rtf2+menu&rnum=1&hl=fr#254155cebb5e5a0e)
I created a demo app to show how to accomplish this. It is based on
demo MDB from RTF2 website which shows how to resize RTF2 on reports.
You can download it from
http://amssoft.dyndns.org:8090/public/RTF2-popupmenu-060822.zip
It contains the MDB and the control Subclass.ocx.
Please send me any comments or thought about this.
Cordially,
Bogdan Zamfir
PS: Attn. to mr Stephen Lebans: Please feel free to include this on
RTF2 website as a sample on how to create a custom popup menu with RTF2
OCX.
______________________________________________________
Bogdan Zamfir
(bzamfir at gmail dot com)
Independent Consultant and Software Developer
http://fox.wikis.com/wc.dll?Wiki~BogdanZamfir~People
Thanks for your help. But in my case, it's not working correctly. I use
Access 2K fr.
First i have convert adob to dao. It's not a really pb.
But in DisableRTFEdit and EnableRTFEdit sub, the object oSubclass not
feels have any property about Hwnd, Message. I don't understand why.
The activex is correctly referenced.
Cordially,
ja who have a bad english
Alias Km
Ok pb resolved, i have forgotten to catch an error.
This work is very great. Then times is to understand.
cordially,
ja