Cut, Copy and Paste

The place for threads about TimoSoft EditControls.
Post Reply
bjoernlueders
Cadet
Posts: 9
Joined: 12 Nov 2008, 10:26

Cut, Copy and Paste

Post by bjoernlueders »

Is there a way to get control over the ContextMenu (cut, copy and paste) from "outside" (i.e. a menu)?
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Cut, Copy and Paste

Post by TiKu »

What do you mean by "control", i. e. what do you want to achieve?
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
bjoernlueders
Cadet
Posts: 9
Joined: 12 Nov 2008, 10:26

Re: Cut, Copy and Paste

Post by bjoernlueders »

I want to apply an "edit"-menu with the items cut, copy and paste.
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Cut, Copy and Paste

Post by TiKu »

I see. Well, the context menu is provided by the system, so it's difficult if not impossible (I don't know a way to do it) to reuse it.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
bjoernlueders
Cadet
Posts: 9
Joined: 12 Nov 2008, 10:26

Re: Cut, Copy and Paste

Post by bjoernlueders »

Sorry that I didn't google better at first:

http://www.devx.com/vb2themax/Tip/18632

Now it's working.
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Cut, Copy and Paste

Post by TiKu »

I knew about these messages, but didn't name them, because you still should check whether there is something to copy/cut/delete (i.e. there is text selected) or whether the control can handle the data contained in the clipboard and there are no messages like WM_CANCOPY or WM_CANPASTE. So these messages alone are not very helpful in my opinion.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Post Reply