Skype:TextControlSupport
Orders:877-462-4772
TX Text Control - word processing components.

Context Menus, New White Paper, TX Text Control News RSS Feeds

Topics for Wednesday, July 14 2004

Click to enlarge

Context Menus with TX Text Control .NET

A context menu is a very helpful feature to provide end users with information or menu options at a specific text position.

For example, a context menu for adding additional field information could be shown, but only if the user clicks on a field.

This week, we would like to show you how to create a very simple context menu.

When an end user right clicks, a menu will be displayed that offer the actions Cut, Copy and Paste. Only the possible menu entries will be shown.

For example, a Copy menu will be only shown, if a part of the text has been selected by the user.

  1. Private Sub TextControl1_MouseUp(ByVal sender As Object, ByVal_
  2. e As System.Windows.Forms.MouseEventArgs) Handles TextControl1.MouseUp
  3.  
  4. Dim pos As System.Drawing.Point
  5.  
  6. If e.Button = MouseButtons.Right Then
  7. MenuItem3.Visible = TextControl1.CanCopy
  8. MenuItem4.Visible = TextControl1.CanPaste
  9.  
  10. If TextControl1.Selection.Length = 0 Then
  11. MenuItem2.Visible = False
  12. Else
  13. MenuItem2.Visible = True
  14. End If
  15.  
  16. pos.X = e.X
  17. pos.Y = e.Y
  18. ContextMenu1.Show(TextControl1, pos)
  19. End If
  20.  
  21. End Sub

We use the TX Text Control MouseUp event to intercept the end user's right mouse click. The Visible property of the different menu entries can be used to hide functionality that is currently not possible. Finally, the context menu will be shown at the X and Y position returned by the MouseUp event.

Please download Download [9.28 KB, ZIP] the full source code for this sample.

At least TX Text Control .NET trial version and Visual Studio .NET is required to test this sample.

New White Paper: Benefits of Web Based Business Applications

We have discussed the benefits of web based applications at length in the last few weeks. This paper summarizes the points that we have raised and presents some more interesting arguments.

The paper shows the benefits of web based intranet and Internet applications. It illustrates how employees and clients can access templates on a corporate network to create business correspondences using TX Text Control based technologies.

Please download Download [1.53 MB, PDF] the white paper.

TX Text Control News RSS Feeds

Really Simple Syndication (RSS) is a lightweight XML format designed for sharing news items and other web site content. With the ever increasing popularity of RSS, we have decided to make all TX Text Control News and TX Text Control Forum Posts available in this XML format:

http://www.textcontrol.com/news/syndication/

To stay abreast of what happens on the TX Text Control web site, we suggest that you subscribe to the feeds right away - there are eight to choose from.

To learn more about RSS, please take a look at the following article:

http://www.xml.com/lpt/a/2002/12/18/dive-into-xml.html

top

Top 10 Bestselling Product Award 2007Top 25 Publisher Product Award 2007Top 10 Bestselling Product Award 2007 in JapanTop 25 Bestselling Product Award 2006Top 25 Bestselling Publisher Award 2006Reader's Choice Award, dot.net magazin, 3rd place