Main Help → GENerel Commmands → Cell Command
Because writing templates involves laying out a generalized table cells, creating cells and setting their properties are very important parts of the GENerel language. You create cells with the Cell command:
Cell #1,<#2>
where
When a new cell is created, any current cell is closed and the new cell is started. The new cell will start a default spacing from the previous cell (see #cellSkip variable). Alternatively, various movement commands can be used to position the next cell at any new position. The new cell will start with the default cell size (as set by editing properties or with a DefaultCellSize command).
Once a cell is created, you can set its properties with the Set command. The following section list all types of cells and all their possible properties.
The following list has all types of cells that can be created in GEDitCOM II templates and list their possible properties. A cell's properties are hierarchical. A cell at a higher level inherits all properties from lower level cells. For example, an Expression cell inherits all properties of Static, TextCell, and GenericCell cells.
A cell is created by the cell name being argument #1 to the Cell command. The cells in italics are abstract cells that define certain cell properties, but cannot be created in templates.
target is set to "none").This cell is the base cell. All other cells inherit the properties of this cell type. The properties are:
height number - height of the cell in pixels
width number - width of the cell in pixels. Setting the width to -1 will create a cell that extends to the right margin of the window. Use SizeToFit command to adjust size to length of text in the cell.
tabwidth number - width of the cell in number of tab stops. The cell will extend from the current horizontal position to the specified tab stop. If the number is negative, it will be the same as if the number was positive, but then will check the width of the text in the cell. If the width does not fit, it will expand to hold the text. This feature is useful when supporting translations where labels in other languages might be too long to fit the tabbed size. The negative option only works for TextCells, ButtonCells, and PopupMenuEdit cells.number is zero, the width will adjust to fit content without changing the height (this option is most useful for TextCells where a SizeToFit command that changes height might cause misalignment with other cells). It is equivalent to resetting height to #defaultHeight$ (or any desired height) after a SizeToFit command.
offset number - moves the cell down in the vertical direction by specified number of pixels. Negative numbers are allowed and move the cell up. Offsets are sometimes needed for better alignment of different cell types.
shift number - moves the cell to the right in the horizontal direction by specified number of pixels. Negative numbers are allowed and move the cell to the left
font name - font for the cell specified by font key (or name) in the browser style's editing fonts (note that underline is not supported in all cell types).
fontSize number - change just the size of the current font. This option enables changing just the size without having to define a new named font.fontColor color - change just the color of the current font to a named color in the format (or to specific colors). This option enables changing just the color without having to define a new named color.text string - append the string to the cell's text. Multiple text commands can build longer cell text. Some cells will not use the text such as expression cells whose text comes from GEDCOM data, cells that edit GEDCOM data, and popup menus whose text comes from menu items.
help string - append the string to the cell's help text. When the use hoovers the mouse over the cell, the help text will appear after a short delay.
watch expression - the expression must be a GEDCOM expression. The cell will watch the structure referenced by the expression and trigger an update whenever it changes or is removed. To watch an entire record, use an expression to the record with appended .rec, e.g., @FAMS.HUSB.rec to watch a person's husband's record. This property is not needed in cells the already reference an expression (e.g., Expression cells or cells whose text comes from a TextExpression property). The watch property is provided for cases where a cell might depend on multiple structures or records. Because the watch property does not alter the update that is trigger, it probably only makes sense to use it when the cell's AutoReload property is set to yes. With that setting the trigger update will reload the entire window.This cell is the base cell for single-line text cells. It inherits properties from GenericCells and has the following additional properties:
Alignment type - text alignment for the cell with options left, right, center, and justify; this property should be set after the cell has some text.Border type - cell border type with options rounded, square (all the same), or none (both the same). The default is square (or none for Static cells). Note that rounded and square used to be bezeled borders but changes need to support MacOS Tahoe had to diable bezeling; they now draw a line around the cell border (note that line and yes is same as square and no is same as none).BorderWidth number - line width for the border in pixels.BorderColor color - set color of the border to a named color in the browser style (or to specific colors). Some MacOS's need BorderWidth of at least 2 to be visible.CellBackground color - set cell background color to a named color in the browser style, to specific colors, or to parent to set to background color of the parent cell (e.g., a group box or the main window). Note that color is not set when the border is a bezel border (rounded or square).This cell is for label text. The optional parameter #1 sets the text for the cell. The text can alternatively be set and appended by using the text property.
Label cells inherit properties from GenericCells and TextCells and have the following additional properties:
This cell is is for static text. The optional parameter #1 sets the text for the cell. The text can alternatively be set and appended by using the text property.
Static cells inherit properties from GenericCells and TextCells and have the following additional properties:
This cell defines a cell that displays text from the GEDCOM file. The required argument #1 must be a GEDCOM expression. The cell will display data of the last structure referenced by the expression. If the contents of the last structure is a record ID, you will need an extra expression tag (such as ".rec") to get the correct structure. If the last structure is a record, it will only update correctly if AppendedExpression is view or altView
When your cell will display text from another record, you can display it by setting the text of a static or label cell or by passing the GEDCOM expression used to extract that text to an expression cell. The advantage of an expression cell is the the text will automatically update if the user changes the text in the other record. Static or label cells will not update.
An Expression cell inherits properties from GenericCells, TextCells, and Static Cells and has the following additional properties:
AppendedExpression type - without the "@" sign. Evaluate initial expression (#1 above) with type appended to get the final text. This property is sometimes needed to get the correct text. For example to get the alternate view of a husband in an FAMS Editing template, the expression could be @contents.HUSB.rec while the AppendedExpression would be altview. To convert date to user-defined date, the appended expression should be view instead of user.Format string - sometimes you want the text from GEDCOM data, but want some additional text along with it. The solution is to define a format string using "%@" as a place holder for the expression text. For example, the format string "Husband's name is %@" would result in something like "Husband's name is John Smith". Alternatively, the placeholder can be "%!" and if the expression text has multiple lines, the text will be compacted to a single line with commas between each line. One use to display multiline addresses on a single line.Localize option - when option is true (or yes), the text from the expression will be localized using the text form the expression as the key into the current language strings. By providing translations for expected expression results, a browser style can translate those labels along with all standard labels in the browser style.This cell will display a text editing field for editing data in the current GEDCOM tag. It is only suitable for editing a single line of text. If the current tag has more then one line, the cell will automatically be converted into a EditField cell.
In templates for PLAC structures in Individual and Family records, you should use an EditValue cell and it will automatically be converted to a place editing field. These fields automatically fill in place names as typed and have a drop down menu to select from a list of current places. Because the place editing field is a different type of Cocoa object, some properties cannot be set as for EditValue cells (most importantly, you have fewer options for cell height).
EditValue cells inherit properties from GenericCells and TextCells and have the following additional properties:
Autoreload option - Options are yes or no. If yes, reload entire window when the structure is edited. The default of this property is no. It should only be yes if the contents of this cell affects some other cell's display in the window. For example, editing the file name of a multimedia record affects whether or not the multimedia object can be displayed in a separate multimedia cell. Set this property to yes to handle such situations.ScriptLink path - Links the extension (or script) at path to this field and it can be run by control clicking on the field and selecting the extension (or script) name from the popup menu. You can add multiple extensions (or scripts) to the same field and they will all appear in the menu. The path should be the extension (or script) name without its file extension (note that the path name of extensions normally does not match the text that appears in the "Extensions" menu and you want the file name and not the menu text). If the extensions (or scripts) in the system or user library are organized into folders, the path should include any folder names within the library, otherwise it will just be the name without its file extension. If the extension (or script) name without the extension is not unique, the extensions and scripts will be located in the following order: Extensions (extensions gplug, Internal Scripts (extension gcscpt), AppleScript (extensions applescript or scpt), or Python script (extension py).ScriptType type - Select the type of extension (or script) which can be system, user, or format. System and user will look for the extension (or script) in the system or user library folders. If the type is user and it is not found in the user library, it will additionally look in the system library. Format will look for the script only in the current browser style (browser can contain only scripts and not extensions). The scripts to run should be saved as subroutines in the browser style. AppleScripts can have any name. The names for Internal Scripts or Python scripts must end in .gcscpt or .py, respectively. Although subroutine names cannot have spaces, you can use underscores in the name and they will be replaced by spaces whenever the script name is displayed to the user. The default type is system. When adding multiple ScriptLinks, each ScriptType refers to the previous ScriptLink.ScriptMessage message - The message can be any string and it is sent to the script defined by the most recent ScriptLink command. The script can retieve this message with the scriptMessage property of the application (use gcapp.scriptMessage in internal scripts). To pass multiple messages, use multiple words, lines, or text items in the string and then retrieve those parts in the script using standard scripting methods.This cell will display a single-line editing field for editing data in the current GEDCOM structure and it is only appropriate for NAME tags in individual records. It automatically handles the GEDCOM format for names, which involves removing and restoring slashes used to indicate surnames.
EditName cells inherit properties from GenericCells, TextCells, and EditValue. They do not define any additional properties.
This cell will display a text editing field for editing data in the current GEDCOM structure and is only appropriate for DATE tags. It automatically handles the GEDCOM format for dates.
EditDate cells inherit properties from GenericCells, TextCells, and EditValue. They do not define any additional properties.
This cell will display a text editing field for editing path name of a multimedia object (the _FILE tag in OBJE records). Its only function is to notify GEDItCOM II when a path name has changed because it keeps track of objects while a file is opened. If the path name is edited in a generic EditValue cell, the multimedia image might get out of synch with the editing.
EditFile cells inherit properties from GenericCells, TextCells, and EditValue. They do not define any additional properties.
This cell is for editing URL addresses for web sites. It will display as a link to the site and the link can be clicked to visit the site in your default browser. But, if you hold the option key down while clicking, the field will turn into an editing field that can be used to edit the URL address.
EditURL cells inherit properties from GenericCells, TextCells, and EditValue. They do not define any additional properties.
This cell is the base cell for multi-line, text-based cells that contain a vertical scroll bar if needed to display all the text. It inherits properties from GenericCells and has the following additional properties:
Alignment type - text alignment for the cell with options left, right, center, and justify.Border type - to set the border around the field with options line, bezel, grove, or none. The default is bezel. (yes is same as line and no is same as none)CellBackground color - set cell background color to a named color in the browser style, to specific colors, or to parent to set to background color of the parent cell (e.g., a group box or the main window).LineHeight number - the height of lines for text in the field as a multiplier. Use 1.0 for single spacing, 2.0, for double spaced lines, or any other multiplier for other spacing.MinHeight number - the minimum height allowed when using SizeToFit command on this cell. A scrolling field cell needs at least 44 pixels to properly display a scroll bar.MaxHeight number - the maximum height allowed when using SizeToFit command on this cell.This cell is for static text that displays on multiple lines (and has a scroll bar if needed). The optional parameter #1 sets the text for the cell. The text can alternatively be set and appended by using the text property.
StaticField cells inherit properties from GenericCells and TextFieldCells and have the following additional properties:
This cell defines a cell that displays text from the GEDCOM file. The required argument #1 must be a GEDCOM expression. The cell will display data of the last structure referenced by the expression. This data should be GEDCOM data that typically requires multiple lines (such as an address or notes). For single-line text from a GEDCOM expression, use an Expression cell instead. Furthermore, if the referenced data contains html text (as denoted by data enclosed in <div> elements), and ExpressionField cell will format that data for display as html text. Since ExpressionField cells display text only, the html content will be displayed, but cannot be edited. The only cell that allows editing and display of html content is the EditPane cell.
Analogous to Expression cells, ExpressionField cells are preferred over StaticField cells when you want the displayed text to update if the user changes the source text.
When #1 points to a _BOX tag in a GEDitCOM II place record, the ExpressionField cell will decode the bounding box and display a map. It will also watch all place record data that might affect the map and redisplay the map whenever needed (e.g., map style, points of interest, the bounding box, etc.).
An ExpressionField cell inherits properties from GenericCells, TextFieldCells, and StaticField Cells. A required extra property is the expression and that must be provide in argument #1 above. If the ExpressionField cell ends up displaying html content, properties not used by the html rendering engine (e.g., font, fontColor, fontSize, alignment, cellBackground, lineHeight), will be ignored.
ExpressionField cells also have the following additional property:
Format string - sometimes you want the text from GEDCOM data, but want some additional text along with it. The solution is to define a format string using "%@" as a place holder for the expression text. For example, the "Default Format" uses this property to display contents of a web site that are found in the file in a custom _URL tag. The URL is converted to text that GEDitCOM II will redirect to the URL's web site by setting the format string to "<div><head><meta HTTP-EQUIV='REFRESH'content='0; url=%@'></head></div>". The "%@" is replaced by the URL in the GEDCOM data.This cell will display a text editing field for editing the current GEDCOM tag using a field with multiple lines of text. If needed, the field will have a scroll bar.
EditField cells inherit properties from GenericCells and TextFieldCells and have the following additional properties:
ScriptLink, ScriptType, and ScriptMessage - these properties function exactly as they do for editing fields.This cell creates a split screen with the pane portion created by this cell allowing free-format text editing in a scrolling window for editing the current GEDCOM tag. Furthermore, by beginning and ending the text with html <div> and </div> elements, respectively, the pane can be used to display any user-entered web content. The optional parameter #1 provides a hint to be placed in the editing field if the current GEDCOM tag has no content (it is ignored if the tag has content). The templates for displaying a record can create only a single EditPane cell. Furthermore, the EditPane cell cannot be contained in a GroupBox.
EditPane cells inherit properties from GenericCells (although changes a few) and has the following additional (or changed) properties:
Alignment type - text alignment for the cell with options left, right, center, and justify.CellBackground color - set cell background color to a named color in the format, to specific colors, or to parent to set to background color of the parent cell (e.g., a group box or the main window).Position top - the split pane created by this cell can be located at the top, bottom, left, or right of the window.Fraction number - specifies the fraction of the window used by the split pane when the window first opens. The user can drag the divider thereafter to change the size of the two panes. height property from GenericCells only affects the height of splits in the top or bottom position. The results are usually not helpful and the fraction property should be used instead.width and tabwidth properties from GenericCells only affect the width of splits in the left or right position. The results are usually not helpful and the fraction property should be used instead.offset, shift, and text properties from GenericCells are ignored.Editable yes (or no) - to allow editing of the text. For html text, it applies to editing the source text. ScriptLink, ScriptType, and ScriptMessage - these properties function exactly as they do for editing fields.help property from GenericCells only applies when the pane is used for text editing and ignored when it is displaying web content. Warning: If you create a vertical split (left or right position) in the middle of a template, all cells created prior to the EditPane might display with the wrong margins in the formatted pane of the window. To avoid this issue you have to either use a fixed width display (see DisplayWidth command) or have the EditPane cell be the first cell created for the window.
This cell is the base cell for all button cells. It inherits properties from GenericCells and has the following additional properties:
Alignment type - text alignment with options left, right, center, or justify; this property should be set after the cell has some text.Border type - to set the border around the button with options rounded, regularsquare, thicksquare, thickersquare, shadowlesssquare, circular, texturedsquare, smallsquare or none. These types are all Apple button types, but some buttons do not respond to all settings. (yes is same as rounded and no is same as none)controlSize - set control size with options regular, small, or mini.CellBackground color - set cell background color to a named color in the browser style, to specific colors, or to parent to set to background color of the parent cell (e.g., a group box or the main window). Only used when the button has no border.image name - set the cell's image to an image in the browser style file (the image name without an extension).objectImage objeID - set the cell's image to a thumbnail image or to an icon for the multimedia object linked to the record with ID objeID. The result of this property will be:
#imageType$ read-only variable to see which type of image or icon was set. This command is preferred of imageFile property when working with images in multimedia records. See this same property in Multimedia cells for more details when used to display a multimedia object.objectFull objeID - this property is identical to objectImage except it will try to return the full-scale image for the multimedia object instead of a thumbnail. It will, however, return the thumbnail image if the file is not found but a thumbnail is available. This property should be used if the cell size is large and the quality of a thumbnail image might be poor. You can check the #thumbnailSize$ read-only variable to determine the size of thumbnails. Cells more than two to three times that size should probably use objectFull instead of objectImage, but note that objectFull will be slower (especially when many large multimedia files are displayed in a single window).imageFile path - set the cell's image to an image in a multimedia file located at the provided path. See this same property in Multimedia cells for more details when used to display a multimedia object. For files linked to multimedia records, you should use objectImage or objectFull instead because they allow support of thumbnails while imageFile does not; imageFile is best reserved for displaying images in files not linked to any multimedia record.imageWidth value - sets the image width and scales its height to keep constant image proportions.imageHeight value - sets the image height and scales its width to keep constant image proportions.imagePosition type - position of the image relative to the text with options noimage, imageonly, left, right, below, above, or overlaps. The default is overlaps, but image positioning is only needed if a cell has both text and an image.target type - for buttons linked to a record (not including StructuresLink cells) this property defines where to open the record with options parent (the same browser window), child (a child window closes when the parent closes or changes its record), new, parentifnew, childifnew, newifnew, or none (to not open in a window). The default setting is parent. The "ifnew" options mean to open in that type of window if a new record was just created and attached to this record (see CreateLinkButton cells).This cell is for a button to link to another record. The optional parameter #1 sets the text for the cell. The text can alternatively be set or appended by using the text property.
LinkButton cells inherit properties from GenericCells and ButtonCells and have the following additional properties:
TextExpression expression - take text from the GEDCOM expression instead of any set text. A TextExpression command must have only one parameter and be the last property in a set command. The cell will observe the structure referenced by the expression and update the cell whenever that structure changes. If the expression ends with a record ID and you want to observe that record, you must add another tag to actually point to the record (e.g., @HUSB.rec for husband's record from a family record). Such a record expression will have the record ID of the record. To display something different, see the AppendedExpression property.AppendedExpression type - without the "@" sign. Evaluate initial TextExpression with type appended to get the final text. This property is sometimes needed to get correct text. For example to get the alternate view of a husband in an FAMS Editing template, the expression could be @contents.HUSB.rec while the AppendedExpression would be altview. To convert date to user-defined date, the appended expression should be view instead of user.Format string - sometimes you want the text from GEDCOM data, but want some additional text along with it. The solution is to define a format string using "%@" as a place holder for the expression text. For example, the format string "Husband's name is %@" would result in something like "Husband's name is John Smith". Alternatively, the placeholder can be "%!" and if the expression text has multiple lines, the text will be compacted to a single line with commas between each line. One use to display multiline addresses on a single line.RecordLink id - record ID of the record to open when the button is clicked.PaneID section - when linking to a record, this property selects which section of the record to display. It is only relevant when using multipane displays. To open a new section of the current record, set the RecordLink to the id of the current record.MenuLink item - text of the menu item (not including "..." if in the item) to perform when the button is clicked. For menu items in submenus, add the submenu name at the beginning such as "Attach Husband" for the "Husband..." command in the "Attach" submenu. The names are not localized and thus must have the English version.Autoreload option - Options are yes or no. If yes, observe structure referenced by this cell's TextExpression property and reload window when the structure changes. Since TextExpression will update text without reloading a window, the Autoreload option is only needed to update some other feature of the window. A common use is when the button has an image or icon that depends on the observed structure. Because of this common use with images, setting Autoreload to yes will stop displaying text from the TextExpression property. If you still want text in the cell, follow the Autoreload setting with additional Text settings.ScriptLink, ScriptType, and ScriptMessage - these properties function exactly as they do for editing fields except the script is run by clicking the button rather then selecting it from a popup menu. Furthermore, only one script can be added, because it is the one that is run by clicking on the button.Depending on how it is used, this cell can create GEDCOM links between records or create any subordinate GEDCOM tag. The optional parameter #1 sets the text for the cell. The text can alternatively be set or appended by using the text property.
First, if this cell is used in a template for any of the following standard GEDCOM tags that link between records: NOTE, SOUR, OBJE, ASSO, REPO, FAMC, ALIA, SUBM, ANCI or DESI, or if it is used in a template for custom GEDCOM tags understood as links by GEDitCOM II: _INDI, _FAM, or _LOG, the user can click the button to create a new link. The user will be given the appropriate options for each link type (e.g., to select a SOUR record from a list of current SOUR records or to create a new SOUR record) and then the requested link will be created. This cell can only be used for non-existing data (it is a data saving cell). The browser style is responsible for insuring such tags are allowed at the cell's location.
Second, if the CreateLinkButton cell is used in any other template (usually a non-GEDCOM tag editing template), the cell can include optionalTag commands. Those commands will add optional tags to this cell. If the user clicks the button, they can select from the list of optional tags and a new GEDCOM line with that tag will be created.
The links or optional tags will be created at the level of the location of the template containing the cell. In other words, if the Show command that calls the template is in a main record editing, template, the link or tag will be at the main record level. If the Show command is within another tag editing template, the link or tag will be created subordinate that tag.
CreateLinkButton cells inherit properties from GenericCells, ButtonCells, and LinkButton Cells and have the following additional properties.
target type - same function as explained in ButtonCells, but the default setting is changed to none.This cell is used to display multimedia. If the multimedia can be displayed in GEDitCOM II, it will appear in the cell. The optional parameter #1 sets the text for the cell. The text can alternatively be set or appended to using the text property.
Multimedia cells inherit properties from GenericCells, ButtonCells, and LinkButton Cells. The additional or modified properties are:
URL - URL for a web site. Clicking the button will open the web site in the default browser.objectImage objeID, objectFull objeID and imageFile filePath - these property are inherited from ButtonCells, but when using GEDitCOM II, clicking a Multimedia cell has the additional function to open a multimedia file in a helper application:
filePath with imageFile is a full path, the file will be opened. If it is a relative path, GEDitCOM II will look in all the current multimedia library folders. The user's home directory can be specified with '~' in the filePath.objectImage or objectFull, is a thumbnail of the object, however, this cell will not link to the file. You can check the #imageType$ read-only variable to see if the cell has only a "thumbnail".mmFormat form - set the multimedia format to help in choosing a helper application (e.g., jpeg, mov, etc.). This settings is not needed for URL link buttons. If it is not provided, the file's extension will be assumed as the format.target "none" - setting this property to "none" blocks the option to open the multimedia object in another application when clicked. It is the only target setting that has an effect on a Multimedia cell.
This cell will create a link to a child window that can display some subset of the data for the current window when clicked. The child window will be formatted for display using the "#1 Record Editing" template. The optional parameter #2 sets a parameter that will be passed to the template and can be read with a @contents GEDCOM expression in that template.
StructuresLink cells inherit properties from GenericCells and ButtonCells. They have no additional properties, but for them to be useful, you must link them to GEDCOM data using LinkAll commands.
This cell has a check box for editing a property with one of two possible values. The optional parameter #1 sets the text for the cell. The text can alternatively be set or appended by using the text property.
CheckBoxEdit cells inherit properties from GenericCells and ButtonCells and have the following additional properties:
OnValue value - the value assigned to the GEDCOM data when the check box is checked. The default value is "Y".OffValue value - the value assigned to the GEDCOM data when the check box is not checked. The default value is an empty string.This cell displays a popup menu for the user to select one of several settings for GEDCOM data. It inherits properties from GenericCells and has the following additional properties:
Border type - cell border with options rounded, regularsquare, shadowlesssquare, texturedsquare, or none. The default is rounded. (yes is same as rounded and no is same as none)controlSize - set control size with options regular, small, or mini.height - changes vertical space for the cell but does not change the height of the pop-up menu control (which is determined by controlSize).Autoreload option - Options are yes or no. If yes, reload entire window when the selected item changes. The default of this property is no. It should only be yes if the selected item affects some other cell's display in the window. Set this property to yes to handle such situations.Group boxes contain any number of cells in an optionally bordered box. You start a group box with the cell GroupBox command and then create cells in the box. When the box in done, use and EndGroup command.
When in a group box, the left and right margins are relative to the box edges rather than the window edges. The top and bottom margins will use the current line separation (#lineSkip). Group boxes cannot be nested.
GroupBoxes inherit properties from GenericCells and have the following additional properties:
Border type - box border with options bezel, line, or none. The default is bezel. (yes is same as bezel and no is same as none)BorderColor color - set color of the border to a named color in the browser style (or to specific colors). Only when using a line border.BorderWidth number - line width for the border in pixels. Only when using a line border.CellBackground color - set cell background color to a named color in the browser style, to specific colors, or to parent to set to background color of the parent cell (e.g., a group box or the main window). Only used if border is no, line, or noneTitlePosition type - position of the title with options above, top, bottom, or none where top and bottom are in the box for a bezel border, but top is above the box for all others.Palette cells are used for adding simple graphics to the window. They inherit properties from GenericCells, most importantly the properties to set the size of the cell. Once the cell is created, you use a series of commands (not properties) to draw things in the palette. The drawing coordinates are the pixels in the cell with the top-left corner being (0,0), x increasing to the right, y increasing moving down, and the bottom right corner being (width, height) of the cell. All drawing will be clipped to the boundaries of the cell.
The drawing commands are listed below. Line drawing commands use the current color and line width (set with PalDrawColor and PalLineWidth) commands. The fill commands use the current color:
PalMoveTo x,y - move to (x,y) location in the palette cell.PalMove h,v - move relative distance from current location by the horizontal and vertical distances.PalLineTo x,y - draw line from current position to (x,y).PalLine h,v - draw a line from the current position by the relative horizontal and vertical distances.PalLineWidth n - change linewidth to the new size (in pixels).PalDrawColor color - change line color to the new named color in the browser style (or to specific colors).PalFrameRect top,left,width,height - frame rectangle with given top-left corner and specified width and height.PalFillRect top,left,width,height - frame rectangle with given top-left corner and specified width and height.PalFrameOval top,left,width,height - frame rectangle with given top-left corner and specified width and height.PalFillOval top,left,width,height - frame rectangle with given top-left corner and specified width and height.PaneBar cells create a row of buttons whose only function is to provide links to other panes when writing browser styles that use display records in multiple panes. After the cell is created, use the AddPane command to add each button to the row of buttons. Other properties that can be set are listed below.
PaneBars inherit properties from GenericCells and have the following additional (or changed) properties:
selected paneID - set which pane is currently being displayed, which will highlight that button as the selected (or pushed) button.Border type - button row border style with options rounded, texturedrounded, roundrect, texturedsquare, capsule, smallsquare. The default is rounded. (yes, no, and none are all the same as rounded, i.e., the cell always has a border).width and height - changes the space occupied by entire cell, but not the height or width of the border around the segments.fontColor color - this property for GenericCells does not change the font color in PaneBar cells.help string - sets help string for the entire row of buttons and not for individual segments of the cell.text string - does nothing. Set text of the buttons using the AddPane command instead.