home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-12-10 | 83.7 KB | 2,649 lines |
- // -----
- // VDL150.txt
- // Copyright 1996 Claris
- // -----
- // Object Editor
- #include "ObjEPref.txt"
-
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- //This section contains all localizable string constants for this VDL program. Be sure to
- //include the backslash character at the end of each line of a multi-line string, except for the last line.
- //You may also flatten multiline constants into a single line, if you prefer
- // NEWLY GENERATED STRING MACROS
- #define kLit1 "&Name:"
- #if Platform_Mac
- #define kLit2 "Reminder: when using an anchor name in a URL,"\
- " add a '#' (e.g. ╥#part2╙ or"\
- " ╥mypage#part2╙ for an anchor named part2),"\
- " but do not enter the '#' here."
- #else
- #define kLit2 "Reminder: when using an anchor name in a URL,"\
- " add a '#' (e.g. \"#part2\" or"\
- " \"mypage#part2\" for an anchor named part2),"\
- " but do not enter the '#' here."
- #endif
-
-
- #define kLit3 "Reminder: when using an anchor name in a URL,"\
- " add a '#' (e.g. \"#part2\" or"\
- " \"mypage#part2\" for an anchor named part2),"\
- " but do not enter the '#' here."
-
- #define kLit5 "&Height:"
- #define kLit7 "&Width:"
- #define kLit8 "Pixels"
- #define kLit9 "Percent"
- #define kLit10 "&Original Size"
- #define kLit11 "Alt &Label:"
- #define kLit12 "&Border:"
- #define kLit13 "&Image Map..."
- #define kLit14 "&Alignment:"
- #define kLit15 "Top"
- #define kLit16 "Middle"
- //LARGE FONT CHANGE
- #if Platform_Mac || Dialog_Pixels==100
- #define kLit17 "Bottom"
- #else
- #define kLit17 "Bottom "
- #endif
- #define kLit18 "Left"
- #define kLit19 "Right"
- #define kLit20 "Left and Right alignment are not displayed in Claris"\
- " Home Page, but will appear in browsers which support this option."
- #define kLit21 "&Behavior:"
- #define kLit22 "&Picture"
- #define kLit23 "Form Submit &Button"
- #define kLit24 "Image &Map"
- #define kLit25 "&Name:"
- #define kLit26 "&Value:"
- #define kLit27 "&Checked"
- #define kLit28 "&Wrap:"
- #define kLit29 "&Rows:"
- #define kLit30 "&Columns:"
- #define kLit31 "&Size:"
- #define kLit32 "&Max Length:"
- #define kLit33 "&Items Visible:"
- #define kLit34 "E&dit Items..."
- #define kLit35 "Allow &Multiple Selections"
- //UNUSED kLit36
- #define kLit37 "Action Name:"
- #define kLit38 "Use this window to set parameters for an object"\
- " selected in the front document or library window."\
- " (Reset buttons have no settable parameters.)"
-
- #define kLit39 "Cell Settings"
- #define kLit40 "Baseline"
- #define kLit41 "Sp&an:"
- #define kLit42 "Hea&der Cell"
- #define kLit43 "&Line Wrap"
- #define kLit44 "Spa&n:"
- #define kLit45 "&Extra HTML:"
- #define kLit46 "&Add Row"
- #define kLit47 "Rem&ove Row"
- #define kLit48 "A&dd Column"
- #define kLit49 "Re&move Column"
- #define kLit50 "Spac&ing:"
- #define kLit51 "&Padding:"
- #define kLit52 "&Name:"
- #define kLit53 "L&ocation:"
-
- #define kLit55 "HS&pace:"
- #define kLit56 "&VSpace:"
- #define kLit57 "&Alternate HTML:"
- #define kLit58 "Entry &Name:"
- #define kLit59 "Entry &Value:"
- #define kLit60 "Stars"
- #define kLit61 "&URL:"
- #define kLit62 "&Direction:"
- #define kLit63 "Vertical"
- #define kLit64 "Horizontal"
- #define kLit65 "S&crollbars:"
- #define kLit66 "Always"
- #define kLit67 "Never"
- #define kLit68 "Auto"
- #define kLit69 "Margin &Width:"
- #define kLit70 "Margin &Height:"
- #define kLit72 "&Fixed Size"
- #define kLit73 "Use this window to set parameters for a selected object."
- #define kLit74 "&Browse..."
- //LARGE FONT CHANGE
- #if Platform_Mac || Dialog_Pixels==100
- #define kLit75 "Center"
- #else
- #define kLit75 "Center "
- #endif
- #define kLit76 "&Shade"
- #define kLit77 "&Edit..."
- #define kLit78 "&Clear"
- #define kLit79 "Client-Side Image Map:"
- #define kLit80 "Server-Side Image Map:"
- #if Platform_Mac
- // #define kLit81 "Quality:"
- #define kLit82 "Controller:"
- #else
- // #define kLit81 "&Quality:"
- #define kLit82 "&Controller:"
- #endif
- #define kLit83 "Yes"
- #define kLit84 "No"
- // #define kLit85 "Badge"
- //LARGE FONT CHANGE
- #if Platform_Mac || Dialog_Pixels==100
- #define kLit86 "(unspecified)"
- #else
- #define kLit86 "(unspecified) "
- #endif
- // #define kLit87 "Draft"
- // #define kLit88 "High"
- // #define kLit89 ""
- #if Platform_Mac
- #define kLit90 "Loop:"
- #else
- #define kLit90 "&Loop:"
- #endif
- #define kLit91 "No"
- #define kLit92 "Yes"
- #define kLit93 "Auto-Reverse"
- #if Platform_Mac
- #define kLit94 "Auto-play"
- #define kLit95 "Plug-in Page:"
- // #define kLit96 "Play rate:"
- #else
- #define kLit94 "&Auto-play"
- #define kLit95 "Plug-in &Page:"
- // #define kLit96 "Play &rate:"
- #endif
- #define kLit97 "Basic"
- #define kLit98 "Advanced"
- #define kLit99 "Both"
- #define kLit100 "&Width:"
- #define kLit101 "&Height:"
- #define kLit102 "Transparency and Interlacing:"
- #define kLit103 "&Set..."
- #define kLit104 "Table"
- #define kLit105 "Cells"
- #define kLit106 "Advanced"
- #define kLit107 "Alignment"
- //#define kLit108 "Horizontal:"
- #define kLit109 "&Cell Color:" //Hotkey must match underscored character in this string
- #define hotKey109 HotKey = "C"
- #define kLit110 "Caption:"
- #define kLit111 "&Width:"
- #define kLit112 "&Height:"
- #if Platform_Mac
- #define kLit113 "Border:"
- #else
- #define kLit113 "B&order:"
- #endif
- #define kLit114 "Page Displayed in Frame"
- #define kLit115 "Frame &Name:"
- #define kLit116 "Frame &Width:"
- #define kLit117 "Frame &Height:"
- #define kLit118 "Content"
- #define kLit119 "Appearance"
- #define kLit120 "Extended"
- #define kLit121 "Cell Image:"
- #define kLit122 "&Table Color:" // Hotkey must match underscored character in this string
- #define hotKey122 HotKey = "T"
- #define kLit123 "Table Image:"
- // Caption types
- #define kLit124 "None"
- #define kLit125 "Above Table"
- #define kLit126 "Below Table"
- //@ykh 032497 new applet editor
- #define kLit130 "Parameters"
- #define kLit131 "&Instance Name"
- #define kLit132 "Add"
- #define kLit133 "Restore All"
- #define kLit134 "Remo&ve"
- #define kLit135 "Ed&it Page"
- #define kLit136 "H&orizontal Align:"
- #define kLit137 "V&ertical Align:"
- #define kLit138 "Behavior"
- #define kLit139 "Remove"
- #define kLit140 "Name"
- #define kLit141 "Parameters"
- #define kLit142 "Appearance"
- #define kLit143 "Extended"
- #define kLit150 "Show &Border"
- #define kLit151 "Assi&gn File..."
- #define kLit152 "B&order Size:"
- #define kLit153 "&Row Color:" //Hotkey must match underscored character in this string
- #define hotKey153 HotKey = "R"
- #define kLit155 "P&ath:"
- // For TextArea Wrap types popup
- #define kLit156 "Virtual"
- //LARGE FONT CHANGE
- #if Platform_Mac || Dialog_Pixels==100
- #define kLit157 "Physical"
- #else
- #define kLit157 "Physical "
- #endif
- #define kLit158 "Off"
- //For Line Break text
- #define kLit159 "Sorry, there are no settable appearance parameters for line breaks. Click on the tab labeled \"Extended\" to enter extra parameters."
- // For FileMaker support in tables
- #define kLit160 "FileMaker"
- #define kLit161 "Start repeating at row:"
- #define kLit162 "End repeating at row:"
- #define kLit163 "Use as FileMaker results table"
- // For PrefColorControl
- #define kLitOther "Other..." // when selected by user, brings up system color picker
- #define kLitDefault "Default" // when selected by user, the default color is chosen
- #define kLitHelpColorE "Help text for color control"
- #define kLitHelpColorD "Help text for color control (disabled)"
- #define kHelpTitle "Help"
- #define kLit200 "Help Text Will Go Here..."
- //Image object editor, Appearance tab
- #define kLit201 "Where the image file is stored."
- #define kLit202 "Locates another image file."
- #define kLit203 "Text that appears in place of the image if a browser does not support images or if your viewer has turned image loading off."
- #define kLit204 "Specifies the width of the image."
- #define kLit205 "Specifies the image width as a percentage or a fixed amount."
- #define kLit206 "Restores a resized image back to its original size."
- #define kLit207 "Specifies the height of the image."
- #define kLit208 "Specifies the image height as a percentage or a fixed amount."
- #define kLit209 "The thickness of the border around the image. A setting of 0 makes the border invisible."
- #define kLit210 "Specifies how the image is aligned with text in a line or on the page."
- #define kLit211 "Specifies whether to add interlacing or transparency to a GIF image."
- #define kLit212 "Specifies the name of the button."
- //Image object editor, Behavior tab
- #define kLit251 "Image functions as a picture."
- #define kLit252 "Image functions as a submit button in a form. Set the name of the button in the Appearance tab."
- #define kLit253 "Image functions as a client-side image map."
- #define kLit254 "Adds hotspot links to the client-side image map."
- #define kLit255 "Removes the hotspot links in the client-side image map."
- //Table object editor, Table tab
- #define kLit301 "Specifies the number of rows in the table."
- #define kLit302 " Adds a row directly below the selected cell."
- #define kLit303 "Removes the selected row and its contents."
- #define kLit304 "Specifies the number of columns in the table."
- #define kLit305 "Adds a column directly to the right of the selected cell."
- #define kLit306 "Removes the selected column and its contents."
- #define kLit307 "Specifies the width of the table."
- #define kLit308 "Specifies the table width as a percentage, a fixed amount, or automatic fit."
- #define kLit309 "Specifies the amount of space between cells."
- #define kLit310 "Specifies the height of the table."
- #define kLit311 "Specifies the table height as a percentage, a fixed amount, or automatic fit."
- #define kLit312 "Specifies the amount of space around the data in cells."
- #define kLit313 "Specifies the thickness of the table borders. A setting of 0 makes the borders invisible."
- #define kLit314 "Specifies the background color of the table. "
- #define kLit315 "Selects a background image for the table."
- #define kLit316 "A sample of the currently selected background image."
- #define kLit317 "Removes the background image for the table."
- //Table object editor, Cells tab
- #define kLit351 "Specifies the width of all cells in the column."
- #define kLit352 "Specifies the column width as a percentage, a fixed amount, or automatic fit."
- #define kLit353 "Specifies how many columns a cell spans."
- #define kLit354 "Specifies the height of all cells in the row."
- #define kLit355 "Specifies the row height as a percentage, a fixed amount, or automatic fit."
- #define kLit356 "Specifies how many rows a cell spans."
- #define kLit357 "Specifies how elements are horizontally aligned within the cells."
- #define kLit358 "If checked, text wraps in a cell."
- #define kLit359 "Specifies how elements are vertically aligned with the cells."
- #define kLit360 "If checked, makes the selected cell a table header cell. Cell text appears in bold face type."
- #define kLit361 "Specifies the background color for the cell."
- #define kLit362 "Specifies a background image for the cell."
- #define kLit363 "A sample of the currently selected background image. "
- #define kLit364 "Removes the background image for the cell."
- #define kLit365 "Specifies the background color for the row."
- // FileMaker support in tables
- #define kLit366 "Specifies the first row of the table that will be repeated when displaying records that result from a search."
- #define kLit367 "Specifies the last row of the table that will be repeated when displaying records that result from a search."
- #define kLit368 "Sets up this table to be used for displaying records that are the result of a FileMaker database search."
- //Applet object editor, Content tab
- #define kLit501 "The name of the applet."
- #define kLit502 "Where the applet is stored."
- #define kLit503 "Locates another applet."
- #define kLit504 "Text that appears in place of the applet if a browser does not support applets."
- #define kLit505 "Specifies how the applet is aligned with text on the page."
- #define kLit506 "Specifies the width of the applet."
- #define kLit507 "Specifies the amount of horizontal space around the applet."
- #define kLit508 "Specifies the height of the applet."
- #define kLit509 "Specifies the amount of vertical space around the applet."
- //Applet object editor, Parameters tab
- #define kLit551 "The name of the parameter."
- #define kLit552 "The value assigned to the parameter. To edit the value, click in the Value column."
- #define kLit553 "Adds a new parameter. A name and value must be entered before another parameter can be added."
- #define kLit554 "Removes the selected parameter."
- #define kLit555 "Restores names of any deleted default parameters."
- //Applet object editor, Extended tab
- #define kLit571 "Specify an alternate HTML tag."
- #define kLit572 "Specify an applet instance name."
- //Plugin object editor, Parameters tab
- #define kLit601 "Where the plug-in is stored."
- #define kLit602 "Locates another plug-in."
- #define kLit603 "Specifies the width of the plug-in."
- #define kLit604 "Specifies the plug-in width as a percentage or a fixed amount."
- #define kLit605 "Specifies the height of the plug-in."
- #define kLit606 "Specifies the plug-in height as a percentage or a fixed amount."
- #define kLit607 "The URL for the Web page where the actual plug-in is available for downloading."
- //QuickTime Movie object editor, Parameters tab
- #define kLit701 "Where the movie is stored."
- #define kLit702 "Locates another movie."
- #define kLit703 "Specifies the width of the movie."
- #define kLit704 "Specifies the movie width as a percentage or a fixed amount.."
- #define kLit705 "Restores the size of the movie to its original dimensions."
- #define kLit706 "Specifies the height of the movie."
- #define kLit707 "Specifies the movie height as a percentage or a fixed amount."
- #define kLit708 "Specifies how the movie plays."
- #define kLit709 "If checked, the movie automatically plays when the Web page is first opened."
- #define kLit710 "Specifies whether or not the movie controller is displayed and how it is controlled."
- #define kLit711 "The URL for the Web page where QuickTime software is available for downloading."
- //Check Box, Parameters tab
- //Also used for Radio Buttons
- #define kLit801 "Specifies the name assigned to the item."
- #define kLit802 "Specifies the value for the item."
- #define kLit803 "If checked, the item on the Web page is selected by default."
- //Hidden Form Entry, Parameters tab
- #define kLit901 "Specifies the name, such as recipient, assigned to the hidden entry. The requirements of the CGI script may determine the name."
- #define kLit902 "Specifies the value, such as an email address, for the hidden entry."
- //Password Field, Parameters tab
- //see text field
- //Pop-up Menu, Appearance tab
- #define kLit1101 "Specifies the name assigned to the pop-up menu or scrolling list."
- #define kLit1102 "Specifies the number of items visible in the pop-up menu or scrolling list. "
- #define kLit1103 "Adds and removes items in the pop-up menu or scrolling list."
- #define kLit1104 "If checked, multiple items can be selected in a scrolling list."
- //Radio Button, Parameters tab
- //see CheckBox
- //Reset Button, Parameters tab
- //no options in this tab, so no messages
- //Submit Button, Parameters tab
- #define kLit1301 "Specifies the name assigned to the button. 'Submit' is the default name."
- //Text Area, Appearance tab
- #define kLit1401 "Specifies the name assigned to the text area."
- #define kLit1402 "Specifies the number of rows in the text area."
- #define kLit1403 "Specifies the number of columns in the text area."
- #define kLit1404 "Specifies the type of wrap in the text area."
- //Text Field, Appearance tab
- //Also used for Password
- #define kLit1501 "Specifies the name assigned to the field."
- #define kLit1502 "Specifies the width of the field."
- #define kLit1503 "Specifies the maximum number of characters that can be entered in the field."
- //Anchor object editor, Name tab
- #define kLit1601 "Specifies the name assigned to the anchor."
- //Horizontal Rule, Appearance tab
- #define kLit1701 "Specifies the thickness of the horizontal rule."
- #define kLit1702 "Specifies the length of the horizontal rule."
- #define kLit1703 "Specifies the horizontal rule width as a percentage or a fixed amount."
- #define kLit1704 "Specifies how the horizontal rule is aligned on the page."
- #define kLit1705 "If checked, the horizontal rule has a three-dimensional appearance. If not checked, the horizontal rule is solid."
- //Frame object editor, Content tab
- #define kLit2101 "Specifies the URL of the Web page in the frame."
- #define kLit2102 "Selects an open file or a recent URL."
- #define kLit2103 "Assigns a file to the frame."
- #define kLit2104 "Opens the file displayed in the frame in Edit Page mode."
- #define kLit2105 "Specifies the name assigned to the frame."
- //Frame object editor, Appearance tab
- #define kLit2151 "Specifies the size of the frame."
- #define kLit2152 "Specifies the frame size as a percentage, a fixed amount, or uses all of the remaining space. "
- #define kLit2153 "If checked, the frame cannot be resized in the browser."
- #define kLit2154 "Specifies the number of pixels the Web page displayed in the frame is indented from the sides of the frame."
- #define kLit2155 "Specifies the number of pixels the Web page displayed in the frame is indented from the top and bottom of the frame."
- #define kLit2156 "Specifies whether or not the scrollbars are displayed."
- #define kLit2157 "If checked, the border of the frame is visible."
- //Frame List object editor, Appearance tab
- #define kLit2201 "Specifies the orientation of the frames within a frame."
- #define kLit2202 "If checked, the border of the frame is visible."
- #define kLit2203 "Specifies the width of the border."
- // For input type=button
- #define kLit2300 "Button value:"
- #define kLit2301 "Specifies the name assigned to the button. 'Button' is the default name."
- #define kLit2302 "Specifies the value assigned to the button. 'Button' is the default value."
- // Put additional help strings here.
- //#define kHelpTitle "Help"
- //Note: the file name will probably not change, but the name of the "Help" folder
- //probably will. Note that the translated name MUST be 8 chars or less.
- #define kHelpURL "Help/Prefs.htm"
- //Localized Fonts
- #if Platform_Mac
- #define kHelpFont Font = {Geneva, 10, {Plain}}
- #define kExtentionFont Font = EditFont
- #define kStaticTextFont Font = {Geneva, 10, {Plain}}
- #define kTabLabelFont Font = {Geneva, 10, {Plain}}
- #define kControlFont Font = {Geneva, 10, {Plain}}
- #define kLabelPlainFont LabelFont = {Geneva, 10, {Bold}}
- #else
- #if Dialog_Pixels == 100
- #define kHelpFont Font = {"MS Sans Serif", 8, {Plain}}
- #define kExtentionFont Font = {"MS Sans Serif", 8, {Plain}}
- #else
- #define kHelpFont Font = {"MS Sans Serif", 6, {Plain}}
- #define kExtentionFont Font = {"MS Sans Serif", 6, {Plain}}
- #endif
- #define kStaticTextFont Font = SystemFont
- #define kTabLabelFont Font = SystemFont
- #define kControlFont Font = SystemFont
- #define kLabelPlainFont LabelFont = SystemFont
- #endif
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- //This section contains integer constants that are used to format this VDL program.
- //These are localizable - they only need to be changed if the localized strings
- //are sufficiently longer than the US strings. Localize the strings first, then the constants.
- //This can be used to get a popup menu at the bottom of the test window,
- //that will allow you to switch between panes of the editor.
- //CAUTION: It MUST be set to 0 before shipping. DO NOT FORGET TO DO THIS!
- #ifdef TryMe
- #define kShowDebugPopup 1
- #else
- #define kShowDebugPopup 0
- #endif
- #if Platform_Mac
- /********** HORIZONTAL RULES PANE ***********/
-
- //Width of the "SHADE" checkbox in the rule pane
- #define kShadeCheckBoxWidth 250
-
- /********** IMAGES PANE ***********/
-
- //This is the width of the 'behavior' popup itself
- #define kImageBehaviorPopupWidth 225
- //This is the width of the 'alignment' popup in the images pane...
- #define kImageAlignPopupWidth 138
- ///...this is the width of the label of that popup, also used for the label of the
- //'behavior' popup
- #define kImageAlignPopupLWidth 78
- //This is the width of the static text "Client-Side Image Map" and
- //"Server-Side Image Map"
- #define kImageDataLabelWidth 182 //170 @ykh 071497
-
- /******** POPUP PANE ***********/
- //Width of the "Edit Items" button
- #define kEditItemsButtonWidth 78
-
- //Width of the check box for allow multiple selections
- #define kAllowMultipleSelectionsWidth 280
-
- /******* TABLES PANE **********/
- //These two regulate the width of the edit texts that appear
- //along the right edge of the middle and bottom pane, so that
- //they will be aligned. Label width is the width of just the label
- //part, and edit width is the width of the overall label-and-edit field.
- #define kTableRightLabelWidth 60
- #define kTableRightEditWidth 100
-
- //Width of the "Alignment" popup menu in the Cell sub-pane of the tables pane.
- //(Check the "Cell" checkbox in the debug controls to see this.
- #define kTableCellAlignmentPopupWidth 154
-
- //The width of the label for this popup
- #define kTableCellAlignmentPopupLabelWidth LblWidthVal + 4
- //Width of the "Header Cell" check box in the Table/Cell subpane
- //If you change this, you may need to change kObjectEditorBaseWidth as well
- #define kHeaderCellCheckBoxWidth 100
-
- //Some padding in the TableCell pane
- #define kTableCellLeftPadding 107
-
- //Sizes of the Add Row and Remove Row Buttons. Also used for the Column Buttons
- #define kAddRowButtonWidth 80
- #define kRemoveRowButtonWidth 100
-
- //Height of the help view at the bottom of the window
- #define kHelpViewHeight 30
-
- //width of cell alignment popups
- #define kAlignmentPopups 180
-
- /*********** APPLET PANE ***********/
- //Width of the "Alignment" popup in the upper sub-pane of the Applet pane
- #define kAppletAlignmentPopupWidth 150
- //Width of the label and whole edit text field for HSpace and VSpace in the Applet pane
- //Not applicable on windows - the labels are laid out with the standard label width.
- #define kAppletSpaceLabelWidth 55
- #define kAppletSpaceEditWidth 104
- #define kAppletParamButtonWidth 80
-
-
- /*********** QTMOVIE PANE ***********/
- //Width of the "Loop" popup in the upper sub-pane of the QuickTime movie pane
- #define kQTLoopPopupWidth 180
-
- //Width of the label of the "Loop" popup in the upper sub-pane of the
- //QuickTime movie pane.
- #define kQTLoopPopupLabelWidth LblWidthVal + 4
- //Width of the "Controller" popup in the lower sub-pane of the QuickTime movie pane
- #define kQTControllerPopupWidth -1
-
- //Width of the "Quality" popup in the lower sub-pane of the QuickTime movie pane
- // #define kQTQualityPopupWidth 136
-
- //Width of the "Auto-play" check box
- #define kAutoPlayCheckBoxWidth 80
-
- /********* FRAMES PANE ***********/
- //Width of the "Fixed Width" check box
- #define kFixedSizeCheckBoxWidth 80
- //Height of page displayed in frame box
- #define kPageInFrame 70
-
- #if Platform_Mac
- #define kFrameDirectionPopupWidth 170
- #else
- #define kFrameDirectionPopupWidth 160
- #endif
- #define kFrameDirectionLabelWidth LblWidthVal + 4
-
- /********* Image PANE ***********/
- #define kBehaviorGroupRBWidth 130
-
- /********* Image/Plug-in/QT Movie PANE ***********/
- #define kFilePathEditWidth 160
- #else
- //WINDOWS
-
- /********** HORIZONTAL RULES PANE ***********/
-
- //Width of the "SHADE" checkbox in the rule pane
- #define kShadeCheckBoxWidth 200
- /******** POPUP PANE ***********/
- //Width of the "Edit Items" button
- #define kEditItemsButtonWidth 100
-
- //Width of the check box for allow multiple selections
- #define kAllowMultipleSelectionsWidth 280
- /******* IMAGES PANE *********/
- //This is the width of the 'alignment' popup in the images pane...
- #define kImageAlignPopupWidth 175
- ///...this is the width of the label of that popup, also used for the label of the
- //'behavior' popup
- #define kImageAlignPopupLWidth 103
-
- //This is the width of the 'behavior' popup itself
- #define kImageBehaviorPopupWidth 230
-
- //This is the width of the static text "Client-Side Image Map" and
- //"Server-Side Image Map"
- #define kImageDataLabelWidth 190 //175 @ykh 071497
- /******* TABLES PANE *********/
- //These two regulate the width of the edit texts that appear
- //along the right edge of the middle and bottom pane, so that
- //they will be aligned. Label width is the width of just the label
- //part, and edit width is the width of the overall label-and-edit field.
- #define kTableRightLabelWidth 70
- #define kTableRightEditWidth 100
-
- //Width of the "Alignment" popup menu in the Cell sub-pane of the tables pane.
- //(Check the "Cell" checkbox in the debug controls to see this.
- #define kTableCellAlignmentPopupWidth 178
-
- //The width of the label for this popup
- #define kTableCellAlignmentPopupLabelWidth 103
-
- //Width of the "Header Cell" check box in the Table/Cell subpane
- //If you change this, you may need to change kObjectEditorBaseWidth as well
- #define kHeaderCellCheckBoxWidth 100
- //Some padding in the TableCell pane
- #define kTableCellLeftPadding 107
-
- //Sizes of the Add Row and Remove Row Buttons. Also used for the Column Buttons
- #define kAddRowButtonWidth 70
- #define kRemoveRowButtonWidth 96
- //Height of the help view at the bottom of the window
- #define kHelpViewHeight 30
-
- //width of cell alignment popups
- #if Dialog_Pixels==100
- #define kAlignmentPopups 180
- #else
- #define kAlignmentPopups 205
- #endif
-
- /*********** APPLET PANE ***********/
- //Width of the "Alignment" popup in the upper sub-pane of the Applet pane
- #define kAppletAlignmentPopupWidth 175
- //Width of the label of the "Alignment" popup in the upper sub-pane of the
- //Applet pane.
- #define kAppletAlignPopupLabelWidth 103
- #define kAppletParamButtonWidth 80
- #define kAppletSpaceLabelWidth 55
- #define kAppletSpaceEditWidth 104
- /*********** QTMOVIE PANE ***********/
- //Width of the "Loop" popup in the upper sub-pane of the QuickTime movie pane
- #define kQTLoopPopupWidth 225
-
- //Width of the "Controller" popup in the lower sub-pane of the QuickTime movie pane
- #define kQTControllerPopupWidth -1
-
- //Width of the "Quality" popup in the lower sub-pane of the QuickTime movie pane
- // #define kQTQualityPopupWidth 200
- //Width of the label of the "Loop" popup in the upper sub-pane of the
- //QuickTime movie pane.
- //LARGE FONT CHANGE
- #if Platform_Mac || Dialog_Pixels==100
- #define kQTLoopPopupLabelWidth 103
- #else
- #define kQTLoopPopupLabelWidth 80
- #endif
-
- //Width of the "Auto-play" check box
- #define kAutoPlayCheckBoxWidth 80
-
- /*********** FRAMES PANE ***********/
- //Width of the "Direction" popup in the Frames pane, and the width of it's label.
- #define kFrameDirectionPopupWidth 230
- #define kFrameDirectionLabelWidth 103
- //Width of the "Fixed Width" check box
- #define kFixedSizeCheckBoxWidth 100
- //Height of page displayed in frame box
- #define kPageInFrame 80
-
- /********* Image PANE ***********/
- #define kBehaviorGroupRBWidth 180
-
- /********* Image/Plug-in/QT Movie PANE ***********/
- #define kFilePathEditWidth 210
- #endif
- //Width of the margin to the left of the comment in the 'anchor' pane.
- #define kAnchorCommentWidth 47
- // FRAME Appearance tab label widths
- #define kFrameTabHeight 130
- #define kFrameTabWidth 300
- #define kFrameAppearanceLabelWidth 90
- #define kFrameAppearanceEditWidth 130
- // TABLE tab info
- #define kTableTabHeight 250
- #if Platform_Mac
- #define kImageTabHeight 170
- #define kQTMovieTabHeight 160
- #define kAppletTabHeight 190 //@ykh 072997
- #else
- #define kImageTabHeight 170
- #define kQTMovieTabHeight 196
- #define kAppletTabHeight 210 //@ykh 072997
- #endif
- #define kOtherTabHeight 110
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- //No further localizable data past this point
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
- #define hoAnchor 0
- #define hoRule 1
- #define hoImage 2
- #define hoCheckbox 3
- #define hoRadioButton 4
- #define hoTextArea 5
- #define hoEntryField 6
- #define hoPasswordField 7
- #define hoSelectionField 8
- #define hoSubmitButton 9
- #define hoResetButton 10
- #define hoButton 11
- #define hoLink 12
- #define hoPage 13
- #define hoText 14
- #define hoNone2 15
- #define hoTable 16
- #define hoApplet 17
- #define hoHidden 18
- #define hoFrame 19
- #define hoBreak 20
- #define hoQTMovie 21
- #define hoEmbed 22
- #define feHList 0
- #define feVList 1
- #define feLeaf 2
- ///////////////////////////////////////////////////////////////////////////
- // Line Break
- Define (BreakTop)
- VList (stdBackColor) {
- Spacer (Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Margin (5, 5, 5, 10)
- StaticText (kLit159, UseParWidth, Alignment = Center, kPlainFont);
- }
- Define (BreakBot)
- VSpace (0);
- /*************************************************************************/
- /********************************* Anchor ********************************/
- /*************************************************************************/
- Define(AnchorTop)
- VList(UseParWidth, stdBackColor)
- {
- EditText(obj.name, FilterProc = "AnchorNameFilter", Label = kLit1, StdLblWidth, UseParWidth, StdFlags);
- Margin(kAnchorCommentWidth,5,0,0)
- #if Platform_Mac
- StaticText( kLit2,
- Width = UseParent, kPlainFont, EH kLit1601);
- #else
- StaticText( kLit3,
- Width = UseParent, kPlainFont, EH kLit1601);
- #endif
- }
- Define(AnchorBot)
- VSpace(0);
- /*************************************************************************/
- /********************************** Rule *********************************/
- /*************************************************************************/
- Define(RuleTop)
- VList(UseParWidth, stdBackColor)
- {
- EditText( obj.size, FilterProc = "RuleHeight", Label = kLit5,
- StdEditWidth, StdLblWidth, StdFlags, EH kLit1701 );
- StdVSpace;
- HList()
- {
- EditText( obj.width, FilterProc = "RuleWidth", Label = kLit7,
- StdLblWidth, StdEditWidth, StdFlags, EH kLit1702 );
- StdHSpace;
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit, EH kLit1703)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
- } // HList
-
- StdVSpace;
- HList()
- {
- #if Platform_Mac || Dialog_Pixels==100
- IntegerPopup(kLit14, LblWidthVal+4, obj.hAlign, kPopupFont, kPopupLabelFont, EH kLit1704)
- #else
- IntegerPopup(kLit14, LblWidthVal-20, obj.hAlign, kPopupFont, kPopupLabelFont, EH kLit1704)
- #endif
- {
- IntItem(kLit18, 0);
- IntItem(kLit75, 1);
- IntItem(kLit19, 2);
- };
- Spacer(Height = 0, Width = 10);
- WidowCheckBox(kLit76, obj.shade, Width = kShadeCheckBoxWidth, Height = 18, kSmallBold, EH kLit1705);
- }
- }
- Define(RuleBot)
- VSpace(0);
- /*************************************************************************/
- /********************************* Image *********************************/
- /*************************************************************************/
- //@ykh 070997
- Define(ImageWidth)
- HList( stdBackColor)
- {
- Tag(ImageWidth)
- EditText( obj.width, FilterProc = "ImageWidthFilter",
- Prefilter="ImageWidthPrefilter",
- Label = kLit7, StdLblWidth, StdEditWidth, StdFlags, EH kLit204);
-
- StdHSpace;
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit, EH kLit205)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- }
- Define(ImageHeight)
- HList(stdBackColor)
- {
- Tag(ImageHeight)
- EditText( obj.height, FilterProc = "ImageHeightFilter",
- Prefilter="ImageHeightPrefilter",
- Label = kLit5, StdLblWidth, StdEditWidth, StdFlags, EH kLit207);
-
- StdHSpace;
- IntegerPopup("", 0, obj.hUnit, kPopupFont, Action = ToggleHUnit, EH kLit208)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
- }
- //@ykh 070997
- Define(BehaviorGroupBox)
- Margin(15,5,5,5,stdBackColor) //@ykh 071497
- VList()
- {
- #if !LITE_VERSION
- WidowRadioButton(kLit22, obj.pMode, 0, Height = 20, Width = kBehaviorGroupRBWidth, kStaticTextFont, EH kLit251);
- WidowRadioButton(kLit23, obj.pMode, 1, Height = 20, Width = kBehaviorGroupRBWidth, kStaticTextFont, EH kLit252);
-
- HList(UseParent)
- {
- WidowRadioButton(kLit24, obj.pMode, 2, Height = 20, Width = kBehaviorGroupRBWidth, kStaticTextFont, EH kLit253);
- StdHSpace;
- PushButton(kLit77, 3413, "None", kButtonFont, EH kLit254); // ccEditClientMap
- StdHSpace;
- PushButton(kLit78, 3414, "None", kButtonFont, EH kLit255); // ccClearClientMap
- }
- #else
- WidowRadioButton(kLit22, obj.pMode, 0, Height = 20, Width = kBehaviorGroupRBWidth, kStaticTextFont, EH kLit251);
- WidowRadioButton(kLit23, obj.pMode, 1, Height = 20, Width = kBehaviorGroupRBWidth, kStaticTextFont, EH kLit252);
-
- HList(UseParent)
- {
- WidowRadioButton(kLit24, ccDisabledCommandCode, 2, Height = 20, Width = kBehaviorGroupRBWidth, kStaticTextFont, EH kLit253);
- StdHSpace;
- PushButton(kLit77, ccDisabledCommandCode, "None", kButtonFont, EH kLit254);
- StdHSpace;
- PushButton(kLit78, ccDisabledCommandCode, "None", kButtonFont, EH kLit255);
- }
- #endif
- }//VList
- Define(ImageTop) //Appearance tab
- VList(UseParWidth, stdBackColor)
- {
- //@ykh 080797 begin added
- HList(UseParWidth, stdBackColor)
- {
- EditText(obj.src, FilterProc = "ImageLocationFilter", Label = kLit53, StdLblWidth, Width = (LblWidthVal+kFilePathEditWidth), StdFlags, EH kLit201);
- HSpace(5);
- PushButton( kLit74, 4000, "SelectAImage", kButtonFont, EH kLit202);
- }
- StdVSpace;
- //@ykh 080797 end
- //Alt Label (if picture/image map) or Name (if form button)
- Switch (obj.pMode)
- {
- case 0:
- case 2:
- EditText( obj.alt, Label = kLit11, StdLblWidth, UseParWidth,
- SmartPasteFlags , EH kLit203);
-
- case 1:
- EditText(obj.name, Label = kLit1, StdLblWidth, UseParWidth, StdFlags, EH kLit212);
-
- default:
- VSpace(0);
- }
- StdVSpace;
-
- //Width and height
- HList(UseParWidth)
- {
- VList()
- {
- Call(ImageWidth);
- StdVSpace;
- Call(ImageHeight);
- }
-
- Margin(16, 10, 0, 0)
- PushButton(kLit10, 3420, "None", kButtonFont, EH kLit206); // ccResetImageSize
- }
- StdVSpace;
-
- //Border
- HList(UseParWidth)
- {
- EditText( obj.border,
- FilterProc = "ImageBorderFilter", Prefilter="ImageBorderPrefilter",
- Label = kLit12, StdLblWidth, StdEditWidth, StdFlags, EH kLit209 );
- Margin(5,2,0,0)
- //StdHSpace;
- StaticText(kLit8, kStaticFont);
- }
- StdVSpace;
-
- //Alignment
- HList(UseParWidth) //071497
- {
- Margin(7,0,0,0)
- //$$$$MR Removed the width to allow the control to be big enough to display "Bottom"
- // Fixes bug 5398
- //LARGE FONT CHANGE
- #if Platform_Mac || Dialog_Pixels==100
- IntegerPopup(kLit14, kImageAlignPopupLWidth, obj.vAlign, kPopupFont, kPopupLabelFont, EH kLit210)
- #else
- IntegerPopup(kLit14, kImageAlignPopupLWidth-28, obj.vAlign, kPopupFont, kPopupLabelFont, EH kLit210)
- #endif
- {
- IntItem(kLit15, 0);
- IntItem(kLit16, 1);
- IntItem(kLit17, 2);
- IntItem(kLit18, 3);
- IntItem(kLit19, 4);
- };
- }
-
- StdVSpace;
- //Tanasparency and interlacing
- HList(Width = UseParent)
- {
- Margin(0,2,0,0)
- StaticText(kLit102, kStaticFont, Alignment = Right, Width = kImageDataLabelWidth, EH kLit211);
- StdHSpace;
- PushButton(kLit103, 3415, "None", Width = 36, kButtonFont, EH kLit211); // ccEditImageData
- }
- } //Appearance tab
-
- Define(ImageBot) //Behavior tab
- VList(stdBackColor, UseParWidth)
- {
- VSpace(20);
- Label(kLit138, Single, kStaticFont, Width = UseParent)
- Call(BehaviorGroupBox); //@ykh 070997 Display behavior radio buttons
- StdVSpace;
- } //Behavior tab
-
- Define(ImageAdvanced) //Extended tab
- VList(UseParWidth, stdBackColor)
- {
- StdVSpace;
- VSpace(58);
- Call(ExtraParams);
- //EditText( obj.extraParams, Label = kLit45, RightLWid (LblWidthVal),
- // UseParWidth, StdFlags );
- StdVSpace;
- } // Extended tab
- /*************************************************************************/
- /************************ Check Box & Radio Button ***********************/
- /*************************************************************************/
- Define(CheckBoxAndRadioButtonTop)
- VList(UseParWidth, stdBackColor)
- {
- EditText(obj.name, Label = kLit25, UseParWidth, StdLblWidth, StdFlags, EH kLit801);
- StdVSpace;
- EditText(obj.value, Label = kLit26, UseParWidth, StdLblWidth, StdFlags, EH kLit802);
- Margin(LblWidthVal+5, 5, 0, 3)
- WidowCheckBox(kLit27, obj.checked, Width = kCheckedCheckBoxWidth, Height = 18, kSmallBold, EH kLit803);
- }
- Define(CheckBoxAndRadioButtonBot)
- VSpace(0);
- /*************************************************************************/
- /******************************* Multiline *******************************/
- /*************************************************************************/
- Define(MultilineTop)
- VList(UseParWidth, stdBackColor)
- {
- EditText(obj.name, Label = kLit1, UseParWidth, StdLblWidth, StdFlags, EH kLit1401);
- StdVSpace;
- EditText( obj.rows, FilterProc = "TextAreaRows",
- Label = kLit29, StdEditWidth, StdLblWidth, StdFlags, EH kLit1402 );
- StdVSpace;
- EditText( obj.columns, FilterProc = "TextAreaColumns",
- Label = kLit30, StdEditWidth, StdLblWidth, StdFlags, EH kLit1403 );
- StdVSpace;
-
- //added by DavidM on 10/2/97 adds wrap popup to text area object editor
- //LARGE FONT CHANGE
- #if Platform_Mac || Dialog_Pixels==100
- IntegerPopup(kLit28, LblWidthVal, obj.wrap,kControlFont,kLabelPlainFont, EH kLit1404)
- #else
- IntegerPopup(kLit28, LblWidthVal-20, obj.wrap,kControlFont,kLabelPlainFont, EH kLit1404)
- #endif
- {
- IntItem(kLit156, 0);
- IntItem(kLit157, 1);
- IntItem(kLit158, 2);
- };
-
- }
- Define(MultilineBot)
- VSpace(0);
- /*************************************************************************/
- /******************************** EditText *******************************/
- /*************************************************************************/
- Define(TextFieldTop)
- VList(UseParWidth, stdBackColor)
- {
- EditText(obj.name, Label = kLit1, UseParWidth, StdLblWidth, StdFlags, EH kLit1501);
- StdVSpace;
- EditText( obj.size, FilterProc = "TextFieldSize", Label = kLit31,
- StdEditWidth, StdLblWidth, StdFlags, EH kLit1502 );
- StdVSpace;
- EditText( obj.maxLength, FilterProc = "TextFieldMaxLength",
- Prefilter = "TextFieldPrefilter",
- Label = kLit32, StdEditWidth, StdLblWidth, StdFlags, EH kLit1503 );
- } // TextFieldTop
- Define(TextFieldBot)
- VSpace(0);
- /*************************************************************************/
- /********************************* Popup *********************************/
- /*************************************************************************/
- Define(PopupTop)
- VList(UseParWidth, stdBackColor)
- {
- EditText( obj.name, Label = kLit1, UseParWidth, StdLblWidth ,
- StdFlags, EH kLit1101 );
- StdVSpace;
- HList()
- {
- EditText( obj.visCount, FilterProc = "MenuVisCount",
- Label = kLit33, StdLblWidth,
- StdEditWidth, StdFlags, EH kLit1102 );
- HSpace(10);
-
- #if Platform_Mac
- PushButton(kLit34, 3410, "None", Width = kEditItemsButtonWidth, kButtonFont, EH kLit1103); // ccEditPopup
- #else
- PushButton(kLit34, 3410, "None", Width = 100, kButtonFont, EH kLit1103); // ccEditPopup
- #endif
- }
-
- Margin(LblWidthVal+5, 5, 0, 3)
- WidowCheckBox( kLit35, obj.allowMult,
- kSmallBold, Width = kAllowMultipleSelectionsWidth, Height = 16, EH kLit1104 );
- }
- Define(PopupBot)
- VSpace(0);
- /*************************************************************************/
- /******************************** Buttons ********************************/
- /*************************************************************************/
- Define(SubmitButtonTop)
- VList(UseParWidth, stdBackColor)
- {
- EditText(obj.name, Label = kLit37, UseParWidth, StdLblWidth, StdFlags, EH kLit1301);
- }
- Define(SubmitButtonBot)
- VSpace(0);
- Define(ResetButtonTop)
- Margin(10,18,10,5, stdBackColor)
- StaticText( kLit38, UseParWidth, Alignment = Center, kPlainFont );
- Define(ResetButtonBot)
- VSpace(0);
- Define (ButtonButtonTop)
- VList (UseParWidth, stdBackColor) {
- EditText (obj.value, Label = kLit37, UseParWidth, StdLblWidth, StdFlags,
- EH kLit2301);
- EditText (obj.name, Label = kLit2300, UseParWidth, StdLblWidth, StdFlags,
- EH kLit2302);
- }
- Define (ButtonButtonBot)
- VSpace (0);
- /*************************************************************************/
- /********************************* Table *********************************/
- /*************************************************************************/
- #if Platform_Mac
- #define RightEditParams RightLWid kTableRightLabelWidth, Width = kTableRightEditWidth
- #else
- #define RightEditParams RightLWid kTableRightLabelWidth, Width = kTableRightEditWidth
- #endif
- Define(TableTop) // Table Tab
- VList(UseParWidth, stdBackColor)
- {
- // RowCount - Add/Remove Row
- HList(UseParWidth)
- {
- EditText( obj.rows, FilterProc = "TableRowCountFilter",
- Label = kLit29, RightLWid 60, Width = 105, StdFlags,
- EH kLit301 );
-
- Spacer(Width = 10, Height = 0);
-
- PushButton(kLit46, 3400, "None", Width = kAddRowButtonWidth, kButtonFont, EH kLit302); // ccAddTableRow
- StdHSpace;
- PushButton(kLit47, 3402, "None", Width = kRemoveRowButtonWidth, kButtonFont, EH kLit303); // ccDelTableRow
- }
-
- StdVSpace;
-
- // ColumnCount - Add/Remove Col
- HList(UseParWidth)
- {
- EditText( obj.columns, FilterProc = "TableColCountFilter",
- Label = kLit30, RightLWid 60, Width = 105, StdFlags,
- EH kLit304 );
-
- Spacer(Width = 10, Height = 0);
- PushButton(kLit48, 3401, "None", Width = kAddRowButtonWidth, kButtonFont, EH kLit305); // ccAddTableCol
- StdHSpace;
- PushButton(kLit49, 3403, "None", Width = kRemoveRowButtonWidth, kButtonFont, EH kLit306); // ccDelTableCol
- }
-
- VSpace(10);
-
- // Table width
- HList(UseParWidth)
- {
- EditText( obj.width, FilterProc = "TableWidth",
- Prefilter="TableWidthPrefilter",
- Label = kLit111, RightLWid 60, Width = 105, StdFlags,
- EH kLit307 );
- Margin(10,0,0,0)
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = SetWUnit, EH kLit308)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- IntItem(kLit68, 2);
- };
- //GenericView("TableModeViewProc", Attribute = obj.wUnit, EH kLit200);
- Spacer(Width = 20, Height = 0);
- EditText( obj.cellSpacing,
- FilterProc = "CellSpacing",
- Label = kLit50,
- RightLWid 50, Width = 95,
- StdFlags,
- EH kLit309 );
- }
-
- VSpace(5);
- // Table height
- HList(UseParWidth)
- {
- EditText( obj.height, FilterProc = "TableHeight",
- Prefilter="TableHeightPrefilter",
- Label = kLit112, RightLWid 60, Width = 105, StdFlags,
- EH kLit310 );
- Margin(10,0,0,0)
- IntegerPopup("", 0, obj.hUnit, kPopupFont, Action = SetHUnit, EH kLit311)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- IntItem(kLit68, 2);
- };
- //GenericView("TableModeViewProc", Attribute = obj.hUnit, EH kLit200);
- Spacer(Width = 20, Height = 0);
- EditText( obj.cellPadding,
- FilterProc = "CellPadding",
- Label = kLit51,
- RightLWid 50, Width = 95,
- StdFlags,
- EH kLit312 );
- }
-
- VSpace(10);
-
- // Table border and caption
- HList(UseParWidth)
- {
- EditText( obj.border, FilterProc = "TableBorder",
- Prefilter="TableBorderPrefilter",
- Label = kLit12, RightLWid 60, Width = 105, StdFlags,
- EH kLit313 );
- StdHSpace;
- //StaticText( kLit110, Width = 60, Alignment = Right, EH kLit200);
- //StdHSpace;
- //IntegerPopup("", 0, obj.caption, kPopupFont, Action = ToggleCaptionUnit, EH kLit200)
- //{
- // IntItem(kLit124, 0);
- // IntItem(kLit125, 1);
- // IntItem(kLit126, 2);
- //};
- }
- VSpace(10);
-
- // Table Color and Table Image
- HList(UseParWidth,stdBackColor)
- {
- VList()
- {
- Spacer(Width = 0, Height = 12);
- HList()
- {
- // Table Color
- StaticText( kLit122, Width = 80, kStaticFont, Alignment = Right, EH kLit314);
- Spacer(Width = 4, Height = 0);
- GenericView("PrefColorControl",
- Red = obj.backColorR, Green = obj.backColorG, Blue = obj.backColorB,
- Label = kLit41, Width = 21, Height = 15, hotKey122,
- ExtraString = kLitOther,
- DefaultString = kLitDefault,
- EnabledHelpString = kLit314,
- DisabledHelpString = kLit314 );
-
- //HSpace(10);
-
- // Table Image
- StaticText( kLit123, Width = 90, kStaticFont, Alignment = Right, EH kLit316);
- Spacer(Width = 4, Height = 0);
- }
- }
-
- //Spacer(Width = 5, Height = 0);
- HList()
- {
- VList()
- {
- PushButton( kLit103, 3404, "None", Width = 50, kButtonFont, EH kLit315 );
- StdVSpace;
- PushButton( kLit134, 3405, "None", Width = 50, kButtonFont, EH kLit317 );
- }
- StdHSpace;
- Margin(2,2,2,2, Single, Width=40, Height = 40)
- GenericView( "TableBackPict", EH kLit316 );
- }
- }
- StdVSpace;
- Call(ExtraParams);
- //EditText( obj.extraParams, Label = kLit45,
- // StdLblWidth, UseParWidth, StdFlags);
- } // TableTop
-
- #define CellLabelWidth LabelAlignment = Right, LabelWidth = 90
- #define CellEditWidth Width = 90 + 44
- Define(TableBot) // Cell Tab
- VList(UseParWidth, stdBackColor)
- {
- // Column Width
- Label( "Column", Single, Height = 40, kStaticFont, UseParWidth)
- VList(UseParWidth)
- {
- HList(UseParWidth)
- {
- Spacer(Width = 20);
- EditText( widthObj.size, FilterProc = "ColWidth",
- Prefilter = "CellSizePrefilter", Label = kLit100,
- StdLabelWidth, Width = 90, StdFlags, kPlainLabelFont,
- EH kLit351);
- StdHSpace;
- IntegerPopup("", 0, widthObj.units, kPopupFont, Action = SetColWUnit, EH kLit352)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- IntItem(kLit68, 2);
- };
-
- Switch(multiSelect)
- {
- case 0:
- HList(UseParWidth)
- {
- // Column span
- Spacer(Width = 20);
- EditText( cell.colSpan, FilterProc = "TableColSpanFilter",
- Label = kLit44, StdLabelWidth, Width = 90, StdFlags, kPlainLabelFont,
- EH kLit353);
- }
-
- default:
- HSpace(0);
- }
- }
- }
-
- StdVSpace;
-
- // Row Height
- Label( "Row", Single, Height = 40, kStaticFont, UseParWidth)
- VList(UseParWidth)
- {
- HList(UseParWidth)
- {
- Spacer(Width = 20);
- EditText( heightObj.size, FilterProc = "RowHeight",
- Prefilter = "CellSizePrefilter", Label = kLit101,
- StdLabelWidth, Width = 90, StdFlags, kPlainLabelFont,
- EH kLit354);
- StdHSpace;
- IntegerPopup("", 0, heightObj.units, kPopupFont, Action = SetRowHUnit, EH kLit355)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- IntItem(kLit68, 2);
- };
-
- Switch(multiSelect)
- {
- case 0:
- HList(UseParWidth)
- {
- // Row span
- Spacer(Width = 20);
- EditText( cell.rowSpan, FilterProc = "TableRowSpanFilter",
- Label = kLit41, StdLabelWidth, Width = 90, StdFlags, kPlainLabelFont,
- EH kLit356);
- }
-
- default:
- HSpace(0);
- }
- }
- }
-
- StdVSpace;
-
- // Alignment - Horizontal/Vertical
- VList(UseParWidth)
- {
- HList()
- {
- StdVSpace;
- IntegerPopup( kLit136, 110, cell.hAlign, Width = kAlignmentPopups,
- kPopupFont, kPopupLabelFont, EH kLit357)
- {
- IntItem(kLit18, 0);
- IntItem(kLit75, 1);
- IntItem(kLit19, 2);
- };
-
- Spacer(Width = 20);
- WidowCheckBox(kLit43, cell.linewrap, Height = 18, kSmallBold, Width = kHeaderCellCheckBoxWidth, EH kLit358);
- //Spacer(Width = 0);
- }
-
- StdVSpace;
-
- HList()
- {
- IntegerPopup( kLit137, 110, cell.vAlign, Width = kAlignmentPopups,
- kPopupFont, kPopupLabelFont, EH kLit359)
- {
- IntItem(kLit15, 0);
- IntItem(kLit16, 1);
- IntItem(kLit17, 2);
- IntItem(kLit40, 3);
- };
- Spacer(Width = 20);
- WidowCheckBox(kLit42, cell.type, Height = 18, kSmallBold, Width = kHeaderCellCheckBoxWidth, EH kLit360);
- }
- }
-
-
- VSpace(10);
- // Cell Color and Cell Image
- HList(UseParWidth,stdBackColor)
- {
- VList()
- {
- //VSpace(2);
- HList()
- {
- // Cell Color
- StaticText( kLit109, Width = 80, kStaticFont, Alignment = Right,EH kLit361);
- Spacer(Width = 4, Height = 0);
- GenericView("PrefColorControl",
- Red = cell.backColorR, Green = cell.backColorG, Blue = cell.backColorB,
- Label = kLit41, Width = 21, Height = 15, hotKey109,
- ExtraString = kLitOther,
- DefaultString = kLitDefault,
- EnabledHelpString = kLit361,
- DisabledHelpString = kLit361 );
- }
-
- VSpace(10);
-
- HList()
- {
- // CellRow Color
- StaticText( kLit153, Width = 80, kStaticFont, Alignment = Right,EH kLit365);
- Spacer(Width = 4, Height = 0);
- GenericView("PrefColorControl",
- Red = colorObj.backColorR, Green = colorObj.backColorG, Blue = colorObj.backColorB,
- Label = kLit41, Width = 21, Height = 15, hotKey153,
- ExtraString = kLitOther,
- DefaultString = kLitDefault,
- EnabledHelpString = kLit365,
- DisabledHelpString = kLit365 );
- }
- }
-
- VList()
- {
- Spacer(Width = 0, Height = 12);
- HList()
- {
- // Cell Image
- StaticText( kLit121, Width = 90, kStaticFont, Alignment = Right, EH kLit363);
- Spacer(Width = 4, Height = 0);
- }
- }
-
- //Spacer(Width = 5, Height = 0);
- HList()
- {
- VList()
- {
- PushButton( kLit103, 3406, "None", Width = 50, kButtonFont, EH kLit362 );
- StdVSpace;
- PushButton( kLit134, 3407, "None", Width = 50, kButtonFont, EH kLit364 );
- }
- StdHSpace;
- Margin(2,2,2,2, Single, Width=40, Height = 40)
- GenericView( "CellBackPict", EH kLit363 );
- }
- }
- StdVSpace;
- //Call(ExtraParams);
- Margin(0,5,0,5)
- StaticText(kExtraHTML, kStaticFont, Alignment = Left, UseParWidth );
- EditText( cell.extraParams, StdLblWidth, UseParWidth, StdFlags, kExtraHTMLHotKey, EH kExtraHTMLHelp );
- //EditText( cell.extraParams, Label = kLit45,
- // StdLblWidth, UseParWidth, StdFlags, EH kLit200 );
- } // TableBot
- Define(TableAdvanced) // Advanced tab
- VList(UseParWidth, stdBackColor)
- {
- VSpace(10);
-
- VList(UseParWidth)
- {
- HList()
- {
- HSpace(30);
-
- WidowCheckBox(kLit163, obj.fileMakerPresent, Height = 18, kSmallBold, Width = 200, EH kLit368);
- }
-
- StdVSpace;
- StdVSpace;
-
- HList()
- {
- HSpace(30);
-
- EditText( obj.recordBeginRow,
- FilterProc = "RecordBeginRow",
- Prefilter = "RecordPrefilter",
- LabelAlignment = Right,
- Label = kLit161, LabelWidth = 140,
- Width = 220, StdFlags, EH kLit366);
- }
-
- StdVSpace;
- HList()
- {
- HSpace(30);
- EditText( obj.recordEndRow,
- FilterProc = "RecordEndRow",
- Prefilter = "RecordPrefilter",
- LabelAlignment = Right,
- Label = kLit162, LabelWidth = 140,
- Width = 220, StdFlags, EH kLit367);
- }
- StdVSpace;
- StdVSpace;
- }
- } // TableCell
- /*************************************************************************/
- /********************************* Applet ********************************/
- /*************************************************************************/
- Define(AppletTop) //Basic tab
- VList(UseParWidth, stdBackColor)
- {
- EditText(obj.code, FilterProc = "AppletCodenameFilter", Label = kLit52, StdLblWidth, UseParWidth, StdFlags, EH kLit501);
- StdVSpace;
- EditText(obj.codebase, FilterProc = "AppletCodebaseFilter", Label = kLit53, StdLblWidth, UseParWidth, StdFlags, EH kLit502);
- StdVSpace;
- HList(UseParWidth, stdBackColor)
- {
- HSpace(LblWidthVal + 6);
- PushButton( kLit74, 5010, "SelectApplet", kButtonFont, EH kLit503); //5010==ccSelectApplet
- }
- StdVSpace;
- EditText( obj.alt, Label = kLit11, StdLblWidth, UseParWidth,
- SmartPasteFlags, EH kLit504 ); // AllowQFlags
- StdVSpace;
- //LARGE FONT CHANGE
- #if Platform_Mac || Dialog_Pixels==100
- IntegerPopup(kLit14, LblWidthVal + 4, obj.vAlign, Width = kAppletAlignmentPopupWidth , kPopupFont, kPopupLabelFont, EH kLit505)
- #else
- IntegerPopup(kLit14, LblWidthVal - 20, obj.vAlign, Width = kAppletAlignmentPopupWidth , kPopupFont, kPopupLabelFont, EH kLit505)
- #endif
- {
- IntItem(kLit15, 0);
- IntItem(kLit16, 1);
- IntItem(kLit17, 2);
- IntItem(kLit18, 3);
- IntItem(kLit19, 4);
- };
-
- // Display a warning for use of Left or Right alignment.
- #ifdef OBSOLETE // Left and right alignment are now supported.
- Switch (obj.vAlign)
- {
- case 3:
- case 4:
- Margin(10, 6, 4, 0, UseParWidth)
- StaticText( kLit20,
- #if Platform_Mac
- Font = {Geneva, 9, {plain}}, UseParWidth );
- #else
- Font = SystemFont, UseParWidth );
- #endif
-
- default:
- VSpace(0);
- }
- #endif // OBSOLETE
-
- //@ykh 032497 begin new applet editor
- StdVSpace;
- HList(UseParWidth, stdBackColor)
- {
- EditText( obj.width, FilterProc = "AppletWidth",
- Label = kLit7, StdLblWidth, StdEditWidth, StdFlags, EH kLit506 );
-
- HSpace(3);
- //@ykh 072997 replaced
- //IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit)
- // {
- // IntItem(kLit8, 0);
- // IntItem(kLit9, 1);
- // };
- //with
- VList(UseParWidth, stdBackColor)
- {
- VSpace(2);
- StaticText(kLit8, kStaticFont);
- }
-
- //@ykh In chp2.0, mac and wnd are different. Why?
- //#if Platform_Mac
- EditText( obj.hSpace, FilterProc = "AppletHSpace",
- Label = kLit55, RightLWid kAppletSpaceLabelWidth, Width = kAppletSpaceEditWidth, StdFlags, EH kLit507 );
- //#endif
- } // AppletWidth
-
- StdVSpace;
- HList(UseParWidth, stdBackColor)
- {
- EditText( obj.height, FilterProc = "AppletHeight",
- Label = kLit5, StdLblWidth, StdEditWidth, StdFlags, EH kLit508 );
-
- HSpace(3);
- //@ykh 072997 replaced
- //IntegerPopup("", 0, obj.hUnit, kPopupFont, Action = ToggleHUnit)
- // {
- // IntItem(kLit8, 0);
- // IntItem(kLit9, 1);
- // };
- //with
- VList(UseParWidth, stdBackColor)
- {
- VSpace(2);
- StaticText(kLit8, kStaticFont);
- }
-
- //@ykh In chp2.0, mac and wnd are different. Why?
- //#if Platform_Mac
- EditText( obj.vSpace, FilterProc = "AppletVSpace",
- Label = kLit56, RightLWid kAppletSpaceLabelWidth, Width = kAppletSpaceEditWidth, StdFlags, EH kLit509 );
- //#endif
- } // AppletHeight
- //@ykh 022797 end new applet editor
-
- } // AppletTop
- Define(AppletAdvanced) //Extended tab
- VList(UseParWidth, stdBackColor)
- {
- StdVSpace;
- VSpace(42);
- Call(ExtraParams);
- //EditText( obj.extraParams, Label = kLit45, RightLWid (LblWidthVal+18),
- // UseParWidth, StdFlags );
- StdVSpace;
- EditText( obj.name, Label = kLit131, RightLWid (LblWidthVal+18),
- UseParWidth, StdFlags, EH kLit572 );
- StdVSpace;
- EditText( obj.content, Label = kLit57, RightLWid (LblWidthVal+18),
- UseParWidth, StdFlags, EH kLit571 ); // AllowQFlags
- StdVSpace;
- } // Extended tab
- //@ykh 022797 begin new applet editor
- Define(AppletBot) //Parameters tab
- VList(UseParWidth, stdBackColor)
- {
- StdVSpace;
- ColumnHeaderList ( MinColWidth = 50,
-
- ColLabel0 = "Name",
- ColWidth0 = AppletNameWidth,
- DefaultWidth0 = 90,
-
- ColLabel1 = "Value",
- ColWidth1 = AppletValueWidth,
- DefaultWidth1 = 144,
-
- BackColor = {55000, 55000, 55000} ,
- kStaticTextFont,
- Width = UseParent
- );
- VList(UseParWidth, Height = 112, VScroll, BackColor = White) //height was 172
- {
-
- GenericView("AppletParamEditor",
- // AppletParamEditorViewStyle,
- // RootCanFold,
- CanEdit,
- CanInsertEntry,
- CanDeleteEntry,
- CanEditCol0,
- CanEditCol1,
- // SelDomain = "AppletParamListViewDomain",
- // BackColor = {45000, 45000, 45000},
- BackColor = White,
- kStaticTextFont );
- }//VList
- StdVSpace;
- StdVSpace;
-
- HList(UseParWidth, stdBackColor)
- {
- #if Platform_Mac
- //HSpace(24);
- PushButton(kLit132, 5011, "None", Width = kAppletParamButtonWidth, kButtonFont, EH kLit553); // ccAddAppletParam
- HSpace(18);
- PushButton(kLit139, 5012, "None", Width = kAppletParamButtonWidth, kButtonFont, EH kLit554); // ccRemoveAppletParam
- HSpace(18);
- PushButton(kLit133, 5013, "None", Width = kAppletParamButtonWidth, kButtonFont, EH kLit555); // ccRestoreAllAppletParams
- #else
- //HSpace(72);
- PushButton(kLit132, 5011, "None", Width = kAppletParamButtonWidth, kButtonFont, EH kLit553); // ccAddAppletParam
- HSpace(30);
- PushButton(kLit139, 5012, "None", Width = kAppletParamButtonWidth, kButtonFont, EH kLit554); // ccRemoveAppletParam
- #endif
- }
- StdVSpace;
- } // AppletBot
- //@ykh 032497 end new applet editor
- /*************************************************************************/
- /********************************* QTMovie *******************************/
- /*************************************************************************/
- Define(QTMovieTop)
- VList(UseParWidth, stdBackColor)
- {
- //@ykh 080797 begin added
- HList(UseParWidth, stdBackColor)
- {
- EditText(obj.src, FilterProc = "QTMovieLocationFilter", Label = kLit53, StdLblWidth, Width = (LblWidthVal+kFilePathEditWidth), StdFlags, EH kLit701 );
- HSpace(5);
- PushButton( kLit74, 4000, "SelectQTMovie", kButtonFont, EH kLit702);
- }
- StdVSpace;
- //@ykh 080797 end
- HList(UseParWidth, stdBackColor)
- {
- Tag(ImageWidth)
- EditText( obj.width, FilterProc = "QTMovieWidth",
- Label = kLit7, StdLblWidth, StdEditWidth, StdFlags, EH kLit703 );
-
- StdHSpace;
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit, EH kLit704)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- HSpace(6);
- PushButton(kLit10, 3420, "None", kButtonFont, EH kLit705); // ccResetImageSize
- } // QTMovieWidth
-
- StdVSpace;
- HList(UseParWidth, stdBackColor)
- {
- Tag(ImageHeight)
- EditText( obj.height, FilterProc = "QTMovieHeight",
- Label = kLit5, StdLblWidth, StdEditWidth, StdFlags, EH kLit706 );
-
- StdHSpace;
- IntegerPopup("", 0, obj.hUnit, kPopupFont, Action = ToggleHUnit, EH kLit707)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- } // QTMovieHeight
-
- StdVSpace;
- HList()
- {
- IntegerPopup(kLit90, kQTLoopPopupLabelWidth, obj.loop, Width = kQTLoopPopupWidth, kPopupFont, kPopupLabelFont, EH kLit708)
- {
- IntItem(kLit91, 0);
- IntItem(kLit92, 1);
- IntItem(kLit93, 2);
- };
-
- StdHSpace;
-
- WidowCheckBox( kLit94, obj.autoPlay, Width = kAutoPlayCheckBoxWidth,
- Height = 18, kSmallBold, EH kLit709 );
- }
-
- #ifdef DISABLED
- IntegerPopup(kLit81, kQTLoopPopupLabelWidth, obj.quality, Width = kQTQualityPopupWidth, kPopupFont,kPopupLabelFont, EH kLit710)
- {
- IntItem(kLit87, 1);
- IntItem(kLit88, 0);
- IntItem(kLit89, 2);
- };
- StdVSpace;
- #endif // DISABLED
-
- StdVSpace;
- HList(UseParWidth)
- {
- IntegerPopup( kLit82, kQTLoopPopupLabelWidth, obj.controller,
- Width = kQTControllerPopupWidth, kPopupFont, kPopupLabelFont,
- Action = SetController , EH kLit710)
- {
- IntItem(kLit83, 1);
- IntItem(kLit84, 0);
- // IntItem(kLit85, 2);
- IntItem(kLit86, 3);
- };
-
- #ifdef DISABLED
- Spacer(UseParWidth, Height=0);
-
- EditText( obj.playRate, FilterProc = "PlayRateFilter",
- Prefilter="PlayRatePrefilter",
- Label = kLit96, StdLblWidth, StdEditWidth, StdFlags );
- #endif // DISABLED
- }
-
- StdVSpace;
- EditText( obj.pluginsPage, Label = kLit95, StdLblWidth,
- UseParWidth, StdFlags, EH kLit711 );
- } // QTMovieTop
- Define(QTMovieBot)
- VList(UseParWidth, stdBackColor)
- {
- } // QTMovieBot
- /*************************************************************************/
- /********************************** Embed ********************************/
- /*************************************************************************/
- Define(EmbedTop)
- VList(UseParWidth, stdBackColor)
- {
- //@ykh 080797 begin added
- HList(UseParWidth, stdBackColor)
- {
- EditText(obj.src, FilterProc = "PluginLocationFilter", Label = kLit53, StdLblWidth, Width = (LblWidthVal+kFilePathEditWidth), StdFlags, EH kLit601);
- HSpace(5);
- PushButton( kLit74, 4000, "SelectPlugin", kButtonFont, EH kLit602);
- }
- StdVSpace;
- //@ykh 080797 end
- HList(UseParWidth, stdBackColor)
- {
- EditText( obj.width, FilterProc = "AppletWidth",
- Label = kLit7, StdLblWidth, StdEditWidth, StdFlags, EH kLit603 );
-
- StdHSpace;
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit, EH kLit604)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- } // EmbedWidth
-
- StdVSpace;
- HList(UseParWidth, stdBackColor)
- {
- EditText( obj.height, FilterProc = "AppletHeight",
- Label = kLit5, StdLblWidth, StdEditWidth, StdFlags, EH kLit605 );
-
- StdHSpace;
- IntegerPopup("", 0, obj.hUnit, kPopupFont, Action = ToggleHUnit, EH kLit606)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- } // EmbedHeight
-
- StdVSpace;
- EditText( obj.pluginsPage, Label = kLit95, StdLblWidth,
- UseParWidth, StdFlags, EH kLit607 );
- } // EmbedTop
- Define(EmbedBot)
- VList(UseParWidth, stdBackColor)
- {
- } // EmbedBot
- /*************************************************************************/
- /************************** Hidden Form Entries **************************/
- /*************************************************************************/
- Define(HiddenTop)
- VList(UseParWidth, stdBackColor)
- {
- EditText(obj.name, Label = kLit58, UseParWidth, StdLblWidth, StdFlags, EH kLit901);
- StdVSpace;
- EditText(obj.value, Label = kLit59, UseParWidth, StdLblWidth, StdFlags, EH kLit902);
- } // HiddenTop
- Define(HiddenBot)
- VSpace(0);
- /*************************************************************************/
- /********************************* Frame *********************************/
- /*************************************************************************/
- Define(FrameTop) // frame content tab
- VList(UseParWidth, stdBackColor)
- {
- Label( kLit114, Single, Height = kPageInFrame, kStaticFont, UseParWidth)
- VList(UseParWidth)
- {
- HList(UseParWidth)
- {
- StdHSpace;
- StdHSpace;
- VList(UseParWidth)
- {
- //VSpace(10);
- StdVSpace;
- HList(UseParWidth)
- {
- EditText( obj.src, FilterProc = "FrameSrcFilter",
- LabelAlignment = Right,
- Label = kLit155,
- Prefilter = "FrameSrcPrefilter",
- Width = 250, /*UseParWidth,*/ StdFlags, EH kLit2101);
- Spacer(Width = 10, Height = 0);
- GenericView("LinkShortcut");
- }
- Margin(0, 0, 0, 0)
- StdVSpace;
- HList(UseParWidth)
- {
- PushButton(kLit151, 3015, "None", kButtonFont, EH kLit2103); // ccEditFileLink
- Spacer(Width = 10, Height = 0);
- PushButton(kLit135, 5019, "None", kButtonFont, EH kLit2104); // ccEditDocument
- }
- }
- }
- }
-
- Spacer(Height = 15, Width = 0);
- EditText(obj.name,
- Label = kLit115, UseParWidth, /*StdLblWidth,*/
- StdFlags, EH kLit2105 );
- }
- Define(FrameBot) // frame appearance tab
- VList(UseParWidth, stdBackColor)
- {
- HList(UseParWidth)
- {
- Switch( isFrameRoot )
- {
- case 0:
- VList()
- {
- HList()
- {
- EditText(obj.size, FilterProc = "FrameSize",
- LabelAlignment = Right,
- Label = kLit31, Width = kFrameAppearanceEditWidth, LabelWidth = kFrameAppearanceLabelWidth,
- StdFlags, EH kLit2151 );
-
- StdHSpace;
-
- IntegerPopup("", 0, obj.sizeMode, kPopupFont, Action = SetFrameUnit, EH kLit2152)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- IntItem(kLit60, 2);
- };
- }
- StdVSpace;
- }
- default:
- VSpace(0);
- }
- StdHSpace;
-
- Switch( obj.feType )
- {
- case feLeaf:
- VList()
- {
- WidowCheckBox( kLit72, obj.noResize, Width = kFixedSizeCheckBoxWidth, Alignment = Left,
- Height = 18, kSmallBold, EH kLit2153 );
- }
-
- default:
- HSpace(0);
- }
- }
-
- Switch( obj.feType, UseParWidth )
- {
- case feLeaf:
- VList(UseParWidth)
- {
- StdVSpace;
-
- EditText(obj.marginWidth, FilterProc = "MarginWidth",
- Prefilter = "MarginWidthPrefilter", LabelAlignment = Right,
- Label = kLit69, Width = kFrameAppearanceEditWidth, LabelWidth = kFrameAppearanceLabelWidth,
- StdFlags, EH kLit2154 );
-
- StdVSpace;
-
- EditText(obj.marginHeight, FilterProc = "MarginHeight",
- Prefilter = "MarginHeightPrefilter", LabelAlignment = Right,
- Label = kLit70, Width = kFrameAppearanceEditWidth, LabelWidth = kFrameAppearanceLabelWidth,
- StdFlags, EH kLit2155 );
-
- StdVSpace;
- StdVSpace;
-
- HList()
- {
- IntegerPopup( kLit65,
- kFrameAppearanceLabelWidth + 4,
- obj.scrollMode,
- Width = kFrameDirectionPopupWidth, kPopupLabelFont, kPopupFont, EH kLit2156)
- {
- IntItem(kLit66, 1);
- IntItem(kLit67, 0);
- IntItem(kLit68, 2);
- };
- HSpace(20);
- WidowCheckBox(kLit150, obj.frameBorder, Height = 18, kSmallBold, Width = kFrameAppearanceLabelWidth, EH kLit2157);
- }
- }
-
- default:
- VList(UseParWidth)
- {
- IntegerPopup( kLit62,
- kFrameDirectionLabelWidth,
- obj.feType,
- Width = kFrameDirectionPopupWidth, kPopupLabelFont, kPopupFont, EH kLit2201)
- {
- IntItem(kLit63, 1);
- IntItem(kLit64, 0);
- };
- StdVSpace;
- HList()
- {
- HSpace(20);
- WidowCheckBox(kLit150, obj.frameBorder, Height = 18, kSmallBold, Width = kFrameAppearanceLabelWidth, EH kLit2202);
- Switch( isFrameRoot )
- {
- case 1:
- HList()
- { // borderSize
- EditText(obj.borderSize, FilterProc = "BorderSize",
- Prefilter="BorderSizePrefilter",
- LabelAlignment = Right, Label = kLit152,
- Width = kFrameAppearanceEditWidth,
- LabelWidth = kFrameAppearanceLabelWidth,
- StdFlags, EH kLit2203 );
- StdHSpace;
- }
-
- default:
- HSpace(20);
- }
- }
- }
- }
- }
- Define(FrameExtended) // frame extended tab
- VList(UseParWidth, stdBackColor)
- {
- VSpace(30);
- Call(ExtraParams);
- //EditText( obj.extraParams, Label = kLit45,
- // UseParWidth, StdFlags );
- }
- /*************************************************************************/
- /********************************** Main *********************************/
- /*************************************************************************/
- // ========================================
- // SetTabWidth
- // ========================================
- // This function sets the tab width for your object editor.
- // Add an entry for your objType and specify the height
- // of your tabs
- Define(SetTabWidth)
- Switch(objType)
- {
- case hoAnchor:
- case hoRule:
- case hoBreak:
- case hoImage:
- case hoCheckbox:
- case hoRadioButton:
- case hoTextArea:
- case hoEntryField:
- case hoPasswordField:
- case hoSelectionField:
- case hoSubmitButton:
- case hoResetButton:
- case hoButton:
- case hoTable:
- case hoApplet:
- case hoHidden:
- case hoFrame:
- case hoQTMovie:
- case hoEmbed:
- default:
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- }
- // ========================================
- // SetTabHeight
- // ========================================
- // This function sets the tab height for your object editor.
- // Add an entry for your objType and specify the height
- // of your tabs
- Define(SetTabHeight)
- Switch(objType)
- {
- case hoAnchor:
- case hoRule:
- case hoCheckbox:
- case hoRadioButton:
- case hoTextArea:
- case hoEntryField:
- case hoPasswordField:
- case hoSelectionField:
- case hoSubmitButton:
- case hoResetButton:
- case hoButton:
- case hoHidden:
- case hoEmbed:
- Spacer(Height = kOtherTabHeight, Width = 0, VScale );
-
- case hoQTMovie:
- Spacer(Height = kQTMovieTabHeight, Width = 0, VScale );
- case hoFrame:
- Spacer(Height = kFrameTabHeight, Width = 0, VScale);
-
- case hoTable:
- Spacer(Height = kTableTabHeight, Width = 0, VScale );
- case hoApplet:
- Spacer(Height = kAppletTabHeight, Width = 0, VScale );
- case hoImage:
- Spacer(Height = kImageTabHeight, Width = 0, VScale );
-
- default:
- Spacer(Height = kOtherTabHeight, Width = 0, VScale );
- }
- // ========================================
- // HelpArea
- // ========================================
- // This function draws the help area at the bottom of each object editor.
- Define(HelpArea)
- Switch(objType)
- {
- // Add the object type for any object editor that uses the
- // new tab arrangment with the help area at the bottom.
- // This will ensure that all object editors look and
- // behave the same. - Russ
- case hoLink:
- case hoPage:
- case hoText:
- case hoNone2: // 14
- VSpace(0);
-
- case hoAnchor:
- case hoRule:
- case hoBreak:
- case hoImage:
- case hoCheckbox:
- case hoRadioButton:
- case hoTextArea:
- case hoEntryField:
- case hoPasswordField:
- case hoSelectionField:
- case hoSubmitButton:
- case hoResetButton:
- case hoButton:
- case hoTable:
- case hoApplet:
- case hoHidden:
- case hoFrame:
- case hoQTMovie:
- case hoEmbed:
- default:
- Margin(10, 0, 10, 0, stdBackColor)
- VList(UseParWidth)
- {
- // The seperator line above the help area
- VList(UseParWidth)
- {
- Spacer(Height = 1, UseParWidth, BackColor = {25000, 25000, 25000});
- Spacer(Height = 1, UseParWidth, BackWhite);
- }
-
- VSpace(10);
- // The help button and text area
- HList(Width = UseParent)
- {
- //#if Platform_Mac
- //PictPushButton(4000, "ContextHelpProc", HelpFile = kHelpURL)
- //{
- // Enabled(Draw, 'cicn',14055 );
- // Disabled(Draw, 'cicn',14057 );
- // Tracking(Draw, 'cicn',14056 );
- //};
- //#else
- //PushButton(kHelpTitle, 4000, "ContextHelpProc", HelpFile = kHelpURL);
- //#endif
-
- //StdHSpace;
- #if Platform_Mac
- HelpView(Width = UseParent, Height = kHelpViewHeight, kHelpFont);
- #else
- //Margin(2,2,2,2, Single)
- HelpView(Width = UseParent, Height = kHelpViewHeight, kHelpFont);
- //Spacer(Height = 10, Width = 0, VScale);
- #endif
- } //HList
- }
- }
- Define(Flipdown)
- VList(UseParWidth,stdBackColor)
- {
- VSpace(4);
- HList(UseParWidth)
- {
- PictCheckBox(moreOEChoices)
- {
- On(Draw, 'cicn', 1204);
- Off(Draw, 'cicn',1203);
- DisabledOn(Draw, 'cicn', 1204);
- DisabledOff(Draw, 'cicn', 1203);
- TrackingOn(Draw, 'cicn', 1206);
- TrackingOff(Draw, 'cicn', 1205);
- };
-
- #if Platform_Win
- HSpace(4);
- #else
- HSpace(1);
- #endif
-
- VList(UseParWidth)
- {
- VSpace(5);
- Spacer(Height = 1, UseParWidth, BackColor = {25000, 25000, 25000});
- // Spacer(Height = 1, UseParWidth, BackWhite);
- VSpace(9);
- }
- }
- }
- Define(LowerSwitch)
- VList(UseParWidth, stdBackColor)
- {
- VSpace(1);
- Switch(objType) // Lower switch
- {
- case hoAnchor: Call(AnchorBot);
- case hoRule: Call(RuleBot);
- case hoBreak: Call (BreakBot);
- case hoImage: Call(ImageBot);
- case hoTable: Call(TableBot);
- case hoApplet: Call(AppletBot);
- case hoHidden: Call(HiddenBot);
- case hoQTMovie: Call(QTMovieBot);
- case hoEmbed: Call(EmbedBot);
-
- #if !LITE_VERSION
- case hoCheckbox:
- case hoRadioButton: Call(CheckBoxAndRadioButtonBot);
- case hoTextArea: Call(MultilineBot);
- case hoEntryField:
- case hoPasswordField: Call(TextFieldBot);
- case hoSelectionField: Call(PopupBot);
- case hoSubmitButton: Call(SubmitButtonBot);
- case hoResetButton: Call(ResetButtonBot);
- case hoButton: Call (ButtonButtonBot);
- case hoFrame: Call(FrameBot);
- #endif //!LITE_VERSION
-
- case hoLink:
- case hoPage:
- case hoText:
- case hoNone2: // 14
- VSpace(0);
-
- default:
- GenericView("ObjEditorLowerPane");
- } // Lower switch
-
- Switch(objType)
- {
- #if !LITE_VERSION
- case hoAnchor:
- case hoRule:
- case hoBreak:
- case hoCheckbox:
- case hoRadioButton:
- case hoTextArea:
- case hoEntryField:
- case hoPasswordField:
- case hoSelectionField:
- case hoSubmitButton:
- case hoResetButton:
- case hoButton:
- case hoHidden:
- case hoQTMovie:
- case hoEmbed:
- // "Extra HTML" field
- VList(UseParWidth)
- {
- Call(ExtraParams);
- //EditText( obj.extraParams, Label = kLit45,
- // StdLblWidth, UseParWidth, StdFlags );
- VSpace(3);
- }
- #endif //!LITE_VERSION
-
- case hoLink:
- case hoPage:
- case hoText:
- case hoNone2: // 14
- case hoTable:
- // No "Extra HTML" field for these object types (for hoTable,
- // it is incorporated into the TableBot view; the other cases
- // are either unused, or don't have an Extra HTML field.
- VSpace(0);
-
- default:
- // We assume that if a dynamically defined object type wants
- // an "Extra HTML" field, it will express it in its lower
- // view.
- VSpace(0);
- }
- } //LowerSwitch
- Define(UpperSwitch)
- HList(UseParWidth, stdBackColor)
- {
- VSpace(kUpperPaneHeight);
- Switch(objType) // Upper switch
- {
- case hoAnchor: Call(AnchorTop);
- case hoRule: Call(RuleTop);
- case hoBreak: Call (BreakTop);
- case hoImage: Call(ImageTop);
- case hoTable: Call(TableTop);
- case hoApplet: Call(AppletTop);
- case hoHidden: Call(HiddenTop);
- case hoQTMovie: Call(QTMovieTop);
- case hoEmbed: Call(EmbedTop);
-
- #if !LITE_VERSION
- case hoCheckbox:
- case hoRadioButton: Call(CheckBoxAndRadioButtonTop);
- case hoTextArea: Call(MultilineTop);
- case hoEntryField:
- case hoPasswordField: Call(TextFieldTop);
- case hoSelectionField: Call(PopupTop);
- case hoSubmitButton: Call(SubmitButtonTop);
- case hoResetButton: Call(ResetButtonTop);
- case hoButton: Call (ButtonButtonTop);
- case hoFrame: Call(FrameTop);
- #endif
-
- case hoLink:
- case hoPage:
- case hoText:
- case hoNone2: // 14
- Margin(5,5,5,5)
- StaticText( kLit73, UseParWidth, Alignment = Center, kPlainFont );
-
- default:
- GenericView("ObjEditorUpperPane");
- } // Upper switch
- } //UpperSwitch
-
- Define(FullSwitchBody)
- VList(stdBackColor)
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(UpperSwitch);
- Spacer(Height = 5, Width = UseParent);
- Call(LowerSwitch);
- Spacer(Height = 5, Width = UseParent);
- Call(HelpArea);
- }
- Define(AdvancedSwitchBody)
- Switch(objType)
- {
- case hoImage:
- VList(stdBackColor)
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(ImageAdvanced);
- }
-
- case hoTable:
- VList(stdBackColor)
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(TableAdvanced);
- }
-
- case hoApplet:
- VList(stdBackColor)
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(AppletAdvanced);
- }
-
- case hoFrame:
- VList(stdBackColor)
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(FrameExtended);
- }
-
- default:
- VSpace(0);
- }
- Define(TabSwitch)
- VList(stdBackColor)
- {
- // This function sets the width for each of your tabs
- Call(SetTabWidth);
- HList(stdBackColor)
- {
- Margin(10, 10, 10, 10, stdBackColor)
- Switch(tabMode)
- {
- default: //"Basic" 1st tab
- VList()
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(UpperSwitch);
- }
- case 1: //"advanced" 2nd tab
- VList()
- {
- Switch(objType)
- {
- case hoTable: // 2nd tab could be cells or filemaker
- VList()
- {
- Switch(cellPresent)
- {
- case 0: // No cell present so 2nd tab must be filemaker tab
- VList()
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(AdvancedSwitchBody);
- }
-
- default: // There is a cell present so 2nd tab must be cells tab
- VList()
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(LowerSwitch);
- }
- }
- }
-
- default:
- VList()
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(LowerSwitch);
- }
- }
- }
-
- case 2: //"Both" 3rd tab
- VList()
- {
- Switch(objType)
- {
- case hoTable:
- case hoApplet: // applet
- case hoFrame: // frame
- case hoImage: // image
- Call(AdvancedSwitchBody); // for tags which don't have a "both" tab
-
- default:
- Call(FullSwitchBody);
- }
- }
- } //TabMode
- // This function sets the height for each of your tabs
- Call(SetTabHeight);
- }
- // This function inserts the help area at the bottom of your
- // object editor
- Call(HelpArea);
- }
- #if kShowDebugPopup
- VList()
- {
- #endif
- Margin(4,7,7,2, stdBackColor)
- VList()
- {
- #if !WANT_TABS
- Spacer(Height = 0, Width = kObjectEditorBaseWidth);
-
- Call(UpperSwitch);
-
- Switch(objType) // Lower switch
- {
- #if !LITE_VERSION
- case hoAnchor:
- case hoRule:
- case hoBreak:
- case hoCheckbox:
- case hoRadioButton:
- case hoTextArea:
- case hoEntryField:
- case hoPasswordField:
- case hoSelectionField:
- case hoSubmitButton:
- case hoResetButton:
- case hoButton:
- case hoHidden:
- case hoFrame:
- #endif
- case hoImage:
- case hoTable:
- case hoApplet:
- case hoQTMovie:
- case hoEmbed:
- Call(Flipdown);
-
- case hoLink:
- case hoPage:
- case hoText:
- case hoNone2:
- case 31:
- VSpace(19);
-
- default:
- Call(Flipdown);
- } // Lower switch
-
- Switch(moreOEChoices, UseParWidth)
- {
- case 0:
- VSpace(0);
-
- case 1:
- Call(LowerSwitch);
-
- } // Switch(moreOEChoices)
- #else //if WANT_TABS
-
- //This switch is here so that the 'default text' doesn't appear in
- //a tab control, but appears at the root of the palette, which
- //looks better.
- Switch(objType) // Upper switch
- {
- case hoAnchor:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- Tab(kLit140, 0); // Name
- Tab(kLit143, 1); // Extended
-
- Subview:
- Call(TabSwitch);
- };
-
- case hoCheckbox:
- case hoRadioButton:
- case hoPasswordField:
- case hoSubmitButton:
- case hoResetButton:
- case hoButton:
- case hoHidden:
- case hoQTMovie:
- case hoEmbed:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- Tab(kLit141, 0); // Parameters
- Tab(kLit143, 1); // Extended
-
- Subview:
- Call(TabSwitch);
- };
-
- case hoRule:
- case hoBreak:
- case hoSelectionField:
- case hoTextArea:
- case hoEntryField:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- Tab(kLit142, 0); // Appearance
- Tab(kLit143, 1); // Extended
-
- Subview:
- Call(TabSwitch);
- };
-
- case hoTable: // Table
- VList()
- {
- Switch(cellPresent)
- {
- case 0:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- Tab(kLit104, 0);
- Tab(kLit160, 2);
-
- Subview:
- Call(TabSwitch);
- };
-
- default:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- Tab(kLit104, 0);
- Tab(kLit105, 1);
- Tab(kLit160, 2);
-
- Subview:
- Call(TabSwitch);
- };
- }
- }
-
- case hoApplet:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- Tab(kLit118, 0);
- Tab(kLit130, 1);
- Tab(kLit120, 2);
-
- Subview:
- Call(TabSwitch);
- };
- case hoImage:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- Tab(kLit119, 0);
- Tab(kLit138, 1);
- Tab(kLit120, 2);
-
- Subview:
- Call(TabSwitch);
- };
- case hoFrame:
- VList()
- {
- Switch( obj.feType )
- {
- case feLeaf:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- Tab(kLit118, 0);
- Tab(kLit119, 1);
- Tab(kLit120, 2);
-
- Subview:
- Call(TabSwitch);
- };
-
- default:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- //Tab(kLit118, 0);
- Tab(kLit119, 1);
- Tab(kLit120, 2);
-
- Subview:
- Call(TabSwitch);
- };
- }
- }
-
- case hoNone2:
- VList(stdBackColor)
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Margin(5,5,5,10)
- StaticText( kLit73, UseParWidth, Alignment = Center, kPlainFont );
- }
-
- default:
- VList()
- {
- Switch(showExtended)
- {
- case 1:
- TabControl(tabMode, NoUndo,kTabLabelFont)
- {
- Tab(kLit141, 0); // Parameters
- Tab(kLit143, 1); // Extended
-
- Subview:
- Call(TabSwitch);
- };
-
- default:
- Call(FullSwitchBody);
- }
- }
- //Margin(5,18,5,5)
- // StaticText( kLit73,
- // Width = kObjectEditorBaseWidth - 40,
- // Alignment = Center, kPlainFont );
-
- } // Base Tab switch
- #endif //WANT_TABS
-
- } // Main V list
-
- #if kShowDebugPopup
-
- // This is just used during testing.
- Spacer(Height = 10);
- StaticText("Debugging Menu:");
- Spacer(Height = 10);
- IntegerPopup("Type:", 50, objType, Width = 150, NoCombo, kPopupFont)
- {
- IntItem("Anchor", 0);
- IntItem("Rule",1);
- IntItem("Image",2);
- IntItem("Checkbox", 3);
- IntItem("Radio Button", 4);
- IntItem("Text Area", 5);
- IntItem("Entry Field", 6);
- IntItem("Password Field",7);
- IntItem("Selection Field", 8);
- IntItem("Submit Button", 9);
- IntItem("Reset Button", 10);
- IntItem("Table",15);
- IntItem("Applet",16);
- IntItem("Hidden",17);
- IntItem("Frame",18);
- IntItem("Line Break", 19);
- IntItem("None", 20);
- IntItem("QTMovie", 21);
- IntItem("Embed", 22);
- };
- CheckBox("Cell", cellPresent);
- IntegerPopup("Frame Type:", 150, obj.feType, Width = 250, NoCombo, kPopupFont)
- {
- IntItem("0", 0);
- IntItem("1", 1);
- IntItem("2", 2);
- };
- CheckBox("Is Frame Root", isFrameRoot);
- } //Vlist
- #endif
-
-