Home > QuickStart > Context Menus
 
QuickStart Context Menus  
 

A large part of PocketDraw's functionality is presented in the form of context menus. Context menus pop up when you click-and-hold, but do not drag, an object, or any group of already selected objects.

Figure 11 shows a typical context menu. Items appear in the menu based on the context in which it is invoked. For instance, the Group menu item only appears when more than one object is selected. Except for object properties, which are always displayed at the bottom of the context menu, items in this menu generally appear in the same relative order.

The bottom of the context menu typically contains a collection of properties exposed by objects in the current selection set. Some property names are fixed, such as "Line Style". However, most property names are chosen by the designer of symbols used in the drawing and may vary.

Here's what the standard menu items do:

  Cut, Copy, Delete  

Cut and Copy place all of the selected objects onto the clipboard. Cut and Delete remove the selected objects from the drawing.

Connector lines are treated specially. They are only copied to the clipboard when the objects at both of their endpoints are also selected; and, they are removed from the drawing if removing the selected items would otherwise cause them to dangle.

The delete item always appears, Cut and Copy are present only when the selection includes objects other than connector lines.

To paste items on the clipboard into a drawing, tap and hold the stylus on a blank part of the canvas where you'd like the object to appear. From the popup context menu that apears, choose "paste".

  Bring Forward
Send Back
  These two operations affect the layering of objects in a drawing. Bringing an object forward puts it at the top of the layer stack, while sending it back places it at the bottom.
  Align   Pops up the align sub-menu. See below. This item appears only when the selection set contains two or more objects.
  Cleanup Line  

Causes PocketDraw to completely recompute the segments of any orthogonal connector lines in the current selection set. This item does not appear if there are no orthogonal connector lines selected.

  Group   Creates a new group object containing all of the selected items. Resizing, rotating, or moving the group affects all items in the group. Appears only when two or more objects are selected.
  Ungroup   Breaks a group into its constituent parts. (Ungrouping objects may cause the appearance of the constituents to change.) This item appears only when the current selection includes at least one group.

The context menu may also contain two other special entries:

  Edit Text...  

Pops up a text edit box. Many objects include text. This item appears when the stylus is directly over a text area.

  Edit Vertices...   If the selected object is a polygon, this entry places the object into a mode where is vertices may be manipulated directly. To move a vertex, just grab it and drag. Dragging a vertex to its nearest neighbor removes it. Dragging an edge creates a new vertex.

The Align menu contains operations that align multiple objects on the canvas. When the align menu is available, it appears in its entirety.

  Left  

The left edge of all selected objects are aligned with the left edge of the left-most object.

  Top   The top edge of all selected objects are aligned with the top edge of the top-most object.
  Bottom   The bottom edge of all selected objects are aligned with the bottom edge of the bottom-most object.
  Right  

The right edge of all selected objects are aligned with the right edge of the right-most object.

  Vertical   The center line of all selected objects are aligned in a column along the center line of the left-most object.
  Horizontal   The center line of all selected objects are aligned in a row along the center line of the top-most object.
 

Figure 11. A typical context menu.

 

Figure 12. The Align context menu.

 
       
  Next Topic      
 

 

     
 

Copyright © 2002-2005 All rights reserved.

Systemix Software
 


Home | Download | Purchase | Contact | Tutorial
Product | FAQ | News | Support | Developers
 

 

PocketDraw is a registered trademark of Systemix Software, Inc. Systemix Software and the Systemix Software logo are trademarks of Systemix Software, Inc. This site, and all of its contents are © 2002-2005 Systemix Software, Inc. All rights reserved worldwide. Features and specifications subject to change without notice.