Using custom popup menu with Stephen Lebans's RTF2 control

B

Bogdan Zamfir

Hi,

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/micro...=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
 
J

joyeux atchoum

Hi

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
 
J

joyeux atchoum

Hi

Ok pb resolved, i have forgotten to catch an error.

This work is very great. Then times is to understand.

cordially,

ja
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top