Using custom popup menu with Stephen Lebans's RTF2 control

Using custom popup menu with Stephen Lebans's RTF2 control

Post by Bogdan Zam » Wed, 23 Aug 2006 21:07:41


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://www.yqcomputer.com/ +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://www.yqcomputer.com/ :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://www.yqcomputer.com/ ~BogdanZamfir~People
 
 
 

Using custom popup menu with Stephen Lebans's RTF2 control

Post by joyeux atc » Thu, 24 Aug 2006 16:49:57

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

 
 
 

Using custom popup menu with Stephen Lebans's RTF2 control

Post by joyeux atc » Thu, 24 Aug 2006 19:43:42

Hi

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

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

cordially,

ja