Programming Tips
55
Working with Grids
Panel view grids are a helpful tool to line up buttons and frames. A panel view grid is a set of up
to 64 horizontal and 64 verticle line segments.The main use for grids is grid snapping, which
restricts button and frame locations to grid location (the locations where the line segments of a
grid intersect). Grid snapping affects button and frame moving, dropping a button or frame
dragged from one panel or gallery, as well as button or frame resizing.
All grid functions are accessible through the Grid submenu of the Panel menu or the Grid sub-
menu of the panel view pop-up menu. Default grid settings, which affect all newly opened panel
views, can be set in the Settings menu.The following is an overview of some of the things you
can do with grids:
• RC5000 Setup stores 10 different default grids, which are automatically assigned to a panel
view when it is opened.The grids can be modified per panel view without affecting the
default grids. Use the Set Default Grid submenu of the Settings menu to set any of
RC5000 Setup’s default grids to the current grid of the action panel view.
• To change the current grid of panel view, enable grid editing by selecting Edit Grid in the
Grid submenu.The Edit Grid item is only enabled if a grid is currently visible.
• A horizontal grid line can be added by holding down a CTRL key while clicking on a hori-
zontal grid line. A similar approach works for verticle grid lines.The selected grid line can
be deleted by pressing the DEL key. Note that every grid must contain at least one hori-
zontal and one verticle grid line.Therefore, the last horizontal and vertical grid line cannot
be deleted.When you put the selected grid line on top of another grid line and you dese-
lect the selected grid line, the selected grid line is deleted.
• To add a verticle grid line to the right of two other verticle grid lines at the same distance
as the distance between the two other verticle grid lines, hold down a CTRL key and
press the cursor RIGHT key. A similar approach works for a verticle line to the left of
two verticle grid lines and horizontal grid lines.
• To create an evenly spaced grid, use the Auto Grid... menu item.
• By default RC5000 Setup snaps the top left corner of a button or frame to the nearest
grid location. However, you can instruct RC5000 Setup to snap to any corner or the cen-
ter of a button or frame using the Snap Mode submenu of the Grid menu. Note that the
snap mode does not affect resizing, only placement or moving.
• To make the current grid of panel A the current grid of panel B: make the current grid of
panel A default grid 9 (or any other unused grid, we just picked 9 for this example), close
panel B, open panel B, and select grid 9.
•To move the entire grid, hold down a SHIFT key and use the mouse or the cursor UP or
DOWN key to move the grid.
•Use the Export Grids or Import Grids items in the Files menu to export or import the
default grids to or from a text file.This allows you to keep your grids with your CCF’s and
makes it easier to make changes to your CCF’s afterwards.
Grids are not stored in CCF’s.
Kommentare zu diesen Handbüchern