PC Review


Reply
Thread Tools Rate Thread

context-menu copy/paste

 
 
=?Utf-8?B?cm9iZXJ0?=
Guest
Posts: n/a
 
      9th Dec 2004
Hello,

I added the TextboxOperations class und the ClipBoard class form OpenNETCF
page to my project,
but I do not exactly know how I have to use one of these classes that the
copy-paste function works?

thx

robert

 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      9th Dec 2004
None of the standard .NETCF controls have Clipboard support out of the box.
TextBoxEx in the OpenNETCF SDF adds Cut Copy and Paste methods. For some
other controls you can interact with the clipboard by getting the control
handle, and sending a WM_COPY etc message to the native control. You can
view the TextBoxEx code for an example of how this might be done.
The clipboard class in the SDF currently only works directly with text data.
It can either be used exactly like it's desktop counterpart or using the
SetClipboardText and GetClipboardText methods.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"robert" <(E-Mail Removed)> wrote in message
news:F1155D19-0C8B-4EB7-A998-(E-Mail Removed)...
> Hello,
>
> I added the TextboxOperations class und the ClipBoard class form OpenNETCF
> page to my project,
> but I do not exactly know how I have to use one of these classes that the
> copy-paste function works?
>
> thx
>
> robert
>



 
Reply With Quote
 
=?Utf-8?B?cm9iZXJ0?=
Guest
Posts: n/a
 
      9th Dec 2004
Hello,

I tried the TextBoxEx class and the copy paste work with the virtual
keyboard. But is it not possible to create a little context menu, which is
open when the user marks with the pen the text in the textBox? - How does
this work?

thx

robert
 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      9th Dec 2004
Yes you should be able to add a ContextMenu. You'll have to create a context
menu and add Cut, Copy, Paste options, and set the ContextMenu property of
the TextBoxEx to this menu. Then in the handlers for Cut Copy and Paste call
the respective methods on the TextBoxEx.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"robert" <(E-Mail Removed)> wrote in message
news:CED09E74-89AF-4605-AE3B-(E-Mail Removed)...
> Hello,
>
> I tried the TextBoxEx class and the copy paste work with the virtual
> keyboard. But is it not possible to create a little context menu, which is
> open when the user marks with the pen the text in the textBox? - How does
> this work?
>
> thx
>
> robert



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Paste function in Context Menu donwb Windows XP Help 2 25th Jan 2010 12:26 AM
Custom Paste Function in Context menu donwb Windows XP General 0 22nd Jan 2010 05:49 PM
How can I add Paste Special to the Word 2007 context menu? Steve Samson Microsoft Word Document Management 1 23rd Nov 2009 03:17 PM
Can I add them to the context menu and programmically copy them to the main menu Franky Microsoft VB .NET 3 12th Nov 2006 08:04 PM
Context Menu, Paste Special From Selected Range rshow1971@frontiernet.net Microsoft Excel Programming 0 20th Jan 2006 06:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:26 PM.