Sample HtmlEdit_2

This forum is for eXpress++ general support.
Post Reply
Message
Author
Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Sample HtmlEdit_2

#1 Post by Wolfgang Ciriack »

Hi Roger,
i am thinking of using the DCHTML example in my app for editing text. I think the subclassing of a dcmultiline is very good.
There are two issus i can not get to work.
1. the context menu (copy/paste/select all) does not work in this sample (error: method is unknown for this object: handleMessage)
2. I like to insert text at the cursor position from an DCPUSHBUTTON, is this possible ?

Thanks, Wolfgang
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Sample HtmlEdit_2

#2 Post by rdonnay »

Wolfgang -

Your handleMessage error makes me believe you are using eXpress++ build 259 or earlier.
This error was fixed in build 260:

1279. Fixed a regression error in build 259 that is caused when using menus
that are not derived from DC_XbpMenu().

Inserting text is a different issue.

This editor is derived from the XbpHtmlViewer() class which is based on the Internet Explorer ActiveX control.

I found that the paste works because it calls SendCtrlKey( VK_V ).
So, what you can do is use the button to copy text to the copy/paste buffer using XbpClipBoard() and then call SendCtrlKey( VK_V ).
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Sample HtmlEdit_2

#3 Post by Wolfgang Ciriack »

Thank you Roger, you are right, I am still using 259, i will try it with 260 and use your suggestion with the clipboard.
_______________________
Best Regards
Wolfgang

Post Reply