home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-20 | 47.2 KB | 1,733 lines |
- // -----
- // VDL150.txt
- // Copyright 1996 Claris
- // -----
-
-
-
- //Object Editor
- /************************** 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:"
- #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."
-
-
- #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 "&Reset Size"
- #define kLit11 "Alt &Label:"
- #define kLit12 "&Border:"
- #define kLit13 "&Image Map..."
- #define kLit14 "&Alignment:"
-
- #define kLit15 "Top"
- #define kLit16 "Middle"
- #define kLit17 "Bottom"
- #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 Button"
- #define kLit24 "Server-Side Image Map"
- #define kLit25 "Button &Name:"
- #define kLit26 "Button &Value:"
- #define kLit27 "Checked"
- #define kLit28 "&Checked"
- #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"
- #define kLit36 "Allow &Multiple Selections"
- #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 "&Row Span:"
- #define kLit42 "Header Cell"
- #define kLit43 "&Header Cell"
- #define kLit44 "&Col Span:"
- #define kLit45 "&Extra HTML:"
- #define kLit46 "&Add Row"
- #define kLit47 "&Remove Row"
- #define kLit48 "A&dd Col"
- #define kLit49 "Re&move Col"
- #define kLit50 "&Spacing:"
- #define kLit51 "&Padding:"
- #define kLit52 "&Code:"
- #define kLit53 "Code &Base:"
-
- #define kLit55 "HS&pace:"
- #define kLit56 "&VSpace:"
- #define kLit57 "&Content:"
- #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 "&Scrollbars:"
- #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 an object (such"\
- " as an image, table, horizontal rule, or form entry)"\
- " selected in the front document or library window."
- #define kLit74 "&Browse Files..."
- #define kLit75 "Center"
-
- #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"
- #define kLit86 "(unspecified)"
- // #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 "Plugin Page:"
- // #define kLit96 "Play rate:"
- #else
- #define kLit94 "&Auto-play"
- #define kLit95 "Plugin &Page:"
- // #define kLit96 "Play &rate:"
- #endif
-
- #define kLit97 "Basic"
- #define kLit98 "Advanced"
- #define kLit99 "Both"
-
- #define kLit100 "Col &Width:"
- #define kLit101 "Row &Height:"
-
- #define kLit102 "Transparency and Interlace:"
- #define kLit103 "&Set..."
-
- //Localized Fonts
-
- #if Platform_Mac
- #define kSmallBold Font = {Geneva, 10, {Bold}}
- #define kSmallDisplay Font = {Geneva, 9, {plain}}
-
- #define kPlainFont Font = {Geneva, 10, {Plain}}
- #define kStaticFont Font = {Geneva, 10, {Bold}}
- #define kEditFont Font = {Geneva, 10, {Plain}}
- #define kPopupFont Font = {Geneva, 10, {Plain}}
- #define kPopupLabelFont LabelFont = {Geneva, 10, {Bold}}
- #define kButtonFont Font = {Geneva, 10, {Plain}}
- #define kStdLabelFont LabelFont = {Geneva, 10, {Bold}}
-
- #else
- #define kSmallBold Font = SystemFont
- #define kSmallDisplay Font = SystemFont
-
- #define kPlainFont Font = SystemFont
- #define kStaticFont Font = SystemFont
- #define kEditFont Font = SystemFont
- #define kPopupFont Font = SystemFont
- #define kPopupLabelFont LabelFont = SystemFont
- #define kButtonFont Font = SystemFont
- #define kStdLabelFont 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
- #define LITE_VERSION 1
- #else
- #define kShowDebugPopup 0
- #endif
-
- #if Platform_Mac
- /******* GENERAL *********/
-
- //The width of a standard label. Used to align most of the palette's edit text labels.
- #define LblWidthVal 81
-
- //The width of some standard-placed edit fields, fields which are small (large fields
- //take their size from the palette width). An example: the "Height" and "Width" edit
- //text in the "Rule" case.
- #define EditWidthVal 44
-
- //Overall width of the palette itself.
- #define kObjectEditorBaseWidth 305
-
- //Height of the top pane of the editor
- #define kUpperPaneHeight 64
-
- //Width of the "Checked" checkbox in a few of the panes
- #define kCheckedCheckBoxWidth 250
-
- //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 170
-
- /******** 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 58
- #define kRemoveRowButtonWidth 80
-
-
- /*********** 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
-
-
- /*********** 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
-
- #define kFrameDirectionPopupWidth 160
- #define kFrameDirectionLabelWidth LblWidthVal + 4
-
- #else
- //WINDOWS
-
- /******* GENERAL *********/
- //The width of a standard label. Used to align most of the palette's edit text labels
- #define LblWidthVal 100
-
- //The width of some standard-placed edit fields
- #define EditWidthVal 45
-
- //Overall width of the palette itself.
- #define kObjectEditorBaseWidth 390
-
- //Height of the top pane of the editor
- #define kUpperPaneHeight 64
-
- //Width of the "Checked" checkbox in a few of the panes
- #define kCheckedCheckBoxWidth 250
-
- //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 175
-
- /******* 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
-
- /*********** 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
-
- /*********** 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.
- #define kQTLoopPopupLabelWidth 103
-
- //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
-
- #endif
-
-
- //Width of the margin to the left of the comment in the 'anchor' pane.
- #define kAnchorCommentWidth 47
-
-
- /************************** 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 ***************************************************/
-
- #if Platform_Mac
- #define palBack BackColor = {57015, 57015, 57015}
- #else
- #define palBack BackColor = Dialog
- #endif
-
- #define StdLblWidth RightLWid LblWidthVal
- #define StdEditWidth Width = (LblWidthVal+EditWidthVal)
-
-
- #define BackWhite BackColor = {65535, 65535, 65535}
-
- #define EH EnabledHelpString =
- #define UseParWidth Width = UseParent
- #define RightLWid LabelAlignment = Right, LabelWidth =
-
- #define AllowQFlags BackWhite, DropOnReturn, DropOnEnter, kEditFont, kStdLabelFont
- #define SmartPasteFlags AllowQFlags, NoSmartQuotes
- #define StdFlags SmartPasteFlags, NoSmartEdits
-
-
- #define HSpace(x) Spacer(Width = x, Height = 0)
- #define VSpace(x) Spacer(Width = 0, Height = x)
-
- #define StdHSpace HSpace(6)
- #define StdVSpace VSpace(6)
-
-
- /*************************************************************************/
- /********************************* Anchor ********************************/
- /*************************************************************************/
-
- Define(AnchorTop)
- VList(UseParWidth, palBack)
- {
- EditText(obj.name, Label = kLit1, StdLblWidth, UseParWidth, StdFlags);
- Margin(kAnchorCommentWidth,5,0,0)
- #if Platform_Mac
- StaticText( kLit2,
- Width = UseParent, kPlainFont);
- #else
- StaticText( kLit3,
- Width = UseParent, kPlainFont);
- #endif
- }
-
- Define(AnchorBot)
- VSpace(0);
-
-
- /*************************************************************************/
- /********************************** Rule *********************************/
- /*************************************************************************/
-
- Define(RuleTop)
- VList(UseParWidth, palBack)
- {
- EditText( obj.size, FilterProc = "RuleHeight", Label = kLit5,
- StdEditWidth, StdLblWidth, StdFlags );
- StdVSpace;
- HList()
- {
- EditText( obj.width, FilterProc = "RuleWidth", Label = kLit7,
- StdLblWidth, StdEditWidth, StdFlags );
- StdHSpace;
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
- } // HList
-
- StdVSpace;
- HList()
- {
- IntegerPopup(kLit14, LblWidthVal + 4, obj.hAlign, kPopupFont, kPopupLabelFont)
- {
- IntItem(kLit18, 0);
- IntItem(kLit75, 1);
- IntItem(kLit19, 2);
- };
- Spacer(Height = 0, Width = 10);
- #if Platform_Mac
- WidowCheckBox(kLit76, obj.shade, Width = kShadeCheckBoxWidth, Height = 18, kSmallBold);
- #else
- CheckBox(kLit76, obj.shade, Width = kShadeCheckBoxWidth, Height = 18, kSmallBold);
- #endif
- }
- }
-
- Define(RuleBot)
- VSpace(0);
-
-
- /*************************************************************************/
- /********************************* Image *********************************/
- /*************************************************************************/
-
- Define(ImageWidth)
- HList( palBack)
- {
- Tag(ImageWidth)
- EditText( obj.width, FilterProc = "ImageWidthFilter",
- Prefilter="ImageWidthPrefilter",
- Label = kLit7, StdLblWidth, StdEditWidth, StdFlags );
-
- StdHSpace;
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- }
-
- Define(ImageHeight)
- HList(palBack)
- {
- Tag(ImageHeight)
- EditText( obj.height, FilterProc = "ImageHeightFilter",
- Prefilter="ImageHeightPrefilter",
- Label = kLit5, StdLblWidth, StdEditWidth, StdFlags );
-
- StdHSpace;
- IntegerPopup("", 0, obj.hUnit, kPopupFont, Action = ToggleHUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
- }
-
- Define(ImageTop)
- VList(UseParWidth, palBack)
- {
- Switch (obj.pMode)
- {
- case 0:
- case 2:
- EditText( obj.alt, Label = kLit11, StdLblWidth, UseParWidth,
- SmartPasteFlags );
-
- case 1:
- EditText(obj.name, Label = kLit1, StdLblWidth, UseParWidth, StdFlags);
-
- default:
- VSpace(0);
- }
- StdVSpace;
-
- HList(UseParWidth)
- {
- EditText( obj.border,
- FilterProc = "ImageBorderFilter", Prefilter="ImageBorderPrefilter",
- Label = kLit12, StdLblWidth, StdEditWidth, StdFlags );
- Margin(5,2,0,0)
- StaticText(kLit8, kStaticFont);
-
- Margin(0,1,0,0)
- IntegerPopup(kLit14, kImageAlignPopupLWidth, obj.vAlign, kPopupFont, kPopupLabelFont, Width = kImageAlignPopupWidth)
- {
- IntItem(kLit15, 0);
- IntItem(kLit16, 1);
- IntItem(kLit17, 2);
- IntItem(kLit18, 3);
- IntItem(kLit19, 4);
- };
- }
-
- StdVSpace;
- HList(Width = UseParent)
- {
- Margin(0,2,0,0)
- StaticText(kLit79, kStaticFont, Alignment = Right, Width = kImageDataLabelWidth);
- StdHSpace;
- PushButton(kLit77, 3413, "None", kButtonFont); // ccEditClientMap
- StdHSpace;
- PushButton(kLit78, 3414, "None", kButtonFont); // ccClearClientMap
- }
- StdVSpace;
- HList(Width = UseParent)
- {
- Margin(0,2,0,0)
- StaticText(kLit102, kStaticFont, Alignment = Right, Width = kImageDataLabelWidth);
- StdHSpace;
- PushButton(kLit103, 3415, "None", kButtonFont); // ccEditImageData
- }
-
- // Display a warning for use of Left or Right alignment.
- Switch (obj.vAlign)
- {
- case 3:
- case 4:
- Margin(10, 5, 4, 0, UseParWidth)
- StaticText( kLit20,
- kSmallDisplay, UseParWidth );
-
- default:
- VSpace(0);
- }
-
- } // Image
-
-
- Define(ImageBot)
- VList(palBack, UseParWidth)
- {
- HList(UseParWidth)
- {
- VList()
- {
- Call(ImageWidth);
- StdVSpace;
- Call(ImageHeight);
- }
-
- Margin(16, 10, 0, 0)
- PushButton(kLit10, 3420, "None", kButtonFont); // ccResetImageSize
- }
- StdVSpace;
-
- #if !LITE_VERSION
- IntegerPopup(kLit21, LblWidthVal + 4, obj.pMode, Width = kImageBehaviorPopupWidth, kPopupFont, kPopupLabelFont)
- {
- IntItem(kLit22, 0);
- IntItem(kLit23, 1);
- IntItem(kLit24, 2);
-
- };
-
- StdVSpace;
- HList(Width = UseParent)
- {
- Margin(0,2,0,0)
- StaticText(kLit80, kStaticFont, Alignment = Right, Width = kImageDataLabelWidth);
- StdHSpace;
- PushButton(kLit77, 3411, "None", kButtonFont); // ccEditServerMap
- }
- StdVSpace;
- #endif
- }
-
-
- /*************************************************************************/
- /************************ Check Box & Radio Button ***********************/
- /*************************************************************************/
-
- Define(CheckBoxAndRadioButtonTop)
- VList(UseParWidth, palBack)
- {
- EditText(obj.name, Label = kLit25, UseParWidth, StdLblWidth, StdFlags);
- StdVSpace;
- EditText(obj.value, Label = kLit26, UseParWidth, StdLblWidth, StdFlags);
- Margin(LblWidthVal+5, 5, 0, 3)
- #if Platform_Mac
- WidowCheckBox(kLit27, obj.checked, Width = kCheckedCheckBoxWidth, Height = 18, kSmallBold);
- #else
- CheckBox(kLit28, obj.checked, Width = kCheckedCheckBoxWidth, Height = 18, kSmallBold);
- #endif
- }
-
- Define(CheckBoxAndRadioButtonBot)
- VSpace(0);
-
-
- /*************************************************************************/
- /******************************* Multiline *******************************/
- /*************************************************************************/
-
- Define(MultilineTop)
- VList(UseParWidth, palBack)
- {
- EditText(obj.name, Label = kLit1, UseParWidth, StdLblWidth, StdFlags);
- StdVSpace;
- EditText( obj.rows, FilterProc = "TextAreaRows",
- Label = kLit29, StdEditWidth, StdLblWidth, StdFlags );
- StdVSpace;
- EditText( obj.columns, FilterProc = "TextAreaColumns",
- Label = kLit30, StdEditWidth, StdLblWidth, StdFlags );
- }
-
-
- Define(MultilineBot)
- VSpace(0);
-
-
- /*************************************************************************/
- /******************************** EditText *******************************/
- /*************************************************************************/
-
- Define(TextFieldTop)
- VList(UseParWidth, palBack)
- {
- EditText(obj.name, Label = kLit1, UseParWidth, StdLblWidth, StdFlags);
- StdVSpace;
- EditText( obj.size, FilterProc = "TextFieldSize", Label = kLit31,
- StdEditWidth, StdLblWidth, StdFlags );
- StdVSpace;
- EditText( obj.maxLength, FilterProc = "TextFieldMaxLength",
- Prefilter = "TextFieldPrefilter",
- Label = kLit32, StdEditWidth, StdLblWidth, StdFlags );
- } // TextFieldTop
-
- Define(TextFieldBot)
- VSpace(0);
-
-
- /*************************************************************************/
- /********************************* Popup *********************************/
- /*************************************************************************/
-
- Define(PopupTop)
- VList(UseParWidth, palBack)
- {
- EditText( obj.name, Label = kLit1, UseParWidth, StdLblWidth ,
- StdFlags );
- StdVSpace;
- HList()
- {
- EditText( obj.visCount, FilterProc = "MenuVisCount",
- Label = kLit33, StdLblWidth,
- StdEditWidth, StdFlags );
- HSpace(10);
-
- #if Platform_Mac
- PushButton(kLit34, 3410, "None", Width = kEditItemsButtonWidth, kButtonFont); // ccEditPopup
- #else
- PushButton(kLit34, 3410, "None", Width = 100, kButtonFont); // ccEditPopup
- #endif
- }
-
- Margin(LblWidthVal+5, 5, 0, 3)
- #if Platform_Mac
- WidowCheckBox( kLit35, obj.allowMult,
- kSmallBold, Width = kAllowMultipleSelectionsWidth, Height = 16 );
- #else
- CheckBox( kLit36, obj.allowMult,
- kSmallBold, Width = kAllowMultipleSelectionsWidth, Height = 16 );
- #endif
- }
-
- Define(PopupBot)
- VSpace(0);
-
-
- /*************************************************************************/
- /******************************** Buttons ********************************/
- /*************************************************************************/
-
- Define(SubmitButtonTop)
- VList(UseParWidth, palBack)
- {
- EditText(obj.name, Label = kLit37, UseParWidth, StdLblWidth, StdFlags);
- }
-
- Define(SubmitButtonBot)
- VSpace(0);
-
- Define(ResetButtonTop)
- Margin(10,18,10,5, palBack)
- StaticText( kLit38,
- UseParWidth, Alignment = Center, kPlainFont );
-
- Define(ResetButtonBot)
- VSpace(0);
-
-
- /*************************************************************************/
- /********************************* Table *********************************/
- /*************************************************************************/
-
- #if Platform_Mac
- #define RightEditParams RightLWid kTableRightLabelWidth, Width = kTableRightEditWidth
- #else
- #define RightEditParams RightLWid kTableRightLabelWidth, Width = kTableRightEditWidth
- #endif
-
- Define(TableCell)
- VList(palBack, UseParWidth)
- {
- StdVSpace;
- HList(Width = UseParent)
- {
- VList(Width = kTableCellLeftPadding)
- {
- VSpace(6);
- Spacer(Height = 1, UseParWidth, BackColor = {25000, 25000, 25000});
- // Spacer(Height = 1, UseParWidth, BackWhite);
- }
-
- StdHSpace;
- StaticText(kLit39, kStaticFont);
- StdHSpace;
-
- VList(Width = UseParent)
- {
- VSpace(6);
- Spacer(Height = 1, UseParWidth, BackColor = {25000, 25000, 25000});
- // Spacer(Height = 1, UseParWidth, BackWhite);
- }
- }
-
- StdVSpace;
- HList(UseParWidth)
- {
- EditText( widthObj.size, FilterProc = "ColWidth",
- Prefilter = "CellSizePrefilter", Label = kLit100,
- StdLblWidth, StdEditWidth, StdFlags );
- StdHSpace;
- IntegerPopup("", 0, widthObj.units, kPopupFont, Action = ToggleColWUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- HSpace(UseParent);
- EditText( cell.colSpan, FilterProc = "TableColSpanFilter",
- Label = kLit44, RightEditParams, StdFlags );
- }
-
- StdVSpace;
-
- HList(UseParWidth)
- {
- EditText( heightObj.size, FilterProc = "RowHeight",
- Prefilter = "CellSizePrefilter", Label = kLit101,
- StdLblWidth, StdEditWidth, StdFlags );
- StdHSpace;
- IntegerPopup("", 0, heightObj.units, kPopupFont, Action = ToggleRowHUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- HSpace(UseParent);
- EditText( cell.rowSpan, FilterProc = "TableRowSpanFilter",
- Label = kLit41, RightEditParams, StdFlags );
- }
-
- StdVSpace;
-
- HList(UseParWidth)
- {
- IntegerPopup( kLit14,
- kTableCellAlignmentPopupLabelWidth,
- cell.vAlign,
- Width = kTableCellAlignmentPopupWidth,
- kPopupFont, kPopupLabelFont)
- {
- IntItem(kLit15, 0);
- IntItem(kLit16, 1);
- IntItem(kLit17, 2);
- IntItem(kLit40, 3);
- };
-
- HSpace(UseParent);
-
- #if Platform_Mac
- WidowCheckBox(kLit42, cell.type, Height = 18, kSmallBold, Width = kHeaderCellCheckBoxWidth);
- #else
- CheckBox(kLit43, cell.type, Width = kHeaderCellCheckBoxWidth);
- #endif
- }
-
- StdVSpace;
-
- #if !LITE_VERSION
- EditText( cell.extraParams, Label = kLit45, StdLblWidth, UseParWidth,
- StdFlags );
- StdVSpace;
- #endif
- } // TableCell
-
-
- Define(TableTop)
- VList(UseParWidth, palBack)
- {
- EditText( obj.border, FilterProc = "TableBorder",
- Prefilter="TableBorderPrefilter",
- Label = kLit12, StdLblWidth, StdEditWidth, StdFlags );
- StdVSpace;
- HList(UseParWidth)
- {
- EditText( obj.rows, FilterProc = "TableRowCountFilter",
- Label = kLit29, StdLblWidth, StdEditWidth, StdFlags );
- Spacer(Width = UseParent, Height = 0);
- #if Platform_Mac
- PushButton(kLit46, 3400, "None", Width = kAddRowButtonWidth, kButtonFont); // ccAddTableRow
- #else
- PushButton(kLit46, 3400, "None", Width = kAddRowButtonWidth, kButtonFont); // ccAddTableRow
- #endif
- StdHSpace;
- #if Platform_Mac
- PushButton(kLit47, 3402, "None", Width = kRemoveRowButtonWidth, kButtonFont); // ccDelTableRow
- #else
- PushButton(kLit47, 3402, "None", Width = kRemoveRowButtonWidth, kButtonFont); // ccDelTableRow
- #endif
- }
- StdVSpace;
-
- HList(UseParWidth)
- {
- EditText( obj.columns, FilterProc = "TableColCountFilter",
- Label = kLit30, StdLblWidth, StdEditWidth, StdFlags );
- Spacer(Width = UseParent, Height = 0);
- #if Platform_Mac
- PushButton(kLit48, 3401, "None", Width = kAddRowButtonWidth, kButtonFont); // ccAddTableCol
- #else
- PushButton(kLit48, 3401, "None", Width = kAddRowButtonWidth, kButtonFont); // ccAddTableCol
- #endif
- StdHSpace;
- #if Platform_Mac
- PushButton(kLit49, 3403, "None", Width = kRemoveRowButtonWidth, kButtonFont); // ccDelTableCol
- #else
- PushButton(kLit49, 3403, "None", Width = kRemoveRowButtonWidth, kButtonFont); // ccDelTableCol
- #endif
- }
-
- } // TableTop
-
-
- Define(TableBot)
- VList(UseParWidth, palBack)
- {
- HList(UseParWidth)
- {
- EditText( obj.width, FilterProc = "TableWidth",
- Prefilter="TableWidthPrefilter",
- Label = kLit7, StdLblWidth, StdEditWidth, StdFlags );
- Margin(5,0,0,0)
- GenericView("TableModeViewProc", Attribute = obj.wUnit);
- Spacer(UseParWidth);
- EditText( obj.cellSpacing,
- FilterProc = "CellSpacing",
- Label = kLit50,
-
- #if Platform_Mac
- RightEditParams,
- #else
- StdLblWidth, StdEditWidth,
- #endif
-
- StdFlags );
- }
- VSpace(5);
-
- HList(UseParWidth)
- {
- EditText( obj.height, FilterProc = "TableHeight",
- Prefilter="TableHeightPrefilter",
- Label = kLit5, StdLblWidth, StdEditWidth, StdFlags );
- Margin(5,0,0,0)
- GenericView("TableModeViewProc", Attribute = obj.hUnit);
- Spacer(UseParWidth);
- EditText( obj.cellPadding,
- FilterProc = "CellPadding",
- Label = kLit51,
-
- #if Platform_Mac
- RightEditParams,
- #else
- StdLblWidth, StdEditWidth,
- #endif
-
- StdFlags );
- }
-
- #if !LITE_VERSION
- VSpace(5);
- EditText(obj.extraParams, Label = kLit45, StdLblWidth, UseParWidth, StdFlags);
- #endif
-
- Switch (cellPresent)
- {
- case 0:
- VSpace(2);
-
- default:
- Call(TableCell);
-
- } //Switch
- } // TableBot
-
-
- /*************************************************************************/
- /********************************* Applet ********************************/
- /*************************************************************************/
-
- Define(AppletTop)
- VList(UseParWidth, palBack)
- {
- EditText(obj.code, Label = kLit52, StdLblWidth, UseParWidth, StdFlags);
- StdVSpace;
- EditText(obj.codebase, Label = kLit53, StdLblWidth, UseParWidth, StdFlags);
- StdVSpace;
- EditText( obj.alt, Label = kLit11, StdLblWidth, UseParWidth,
- SmartPasteFlags ); // AllowQFlags
- StdVSpace;
- IntegerPopup(kLit14, LblWidthVal + 4, obj.vAlign, Width = kAppletAlignmentPopupWidth , kPopupFont)
- {
- 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.
- 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);
- }
-
- } // AppletTop
-
- Define(AppletBot)
- VList(UseParWidth, palBack)
- {
- HList(UseParWidth, palBack)
- {
- EditText( obj.width, FilterProc = "AppletWidth",
- Label = kLit7, StdLblWidth, StdEditWidth, StdFlags );
-
- StdHSpace;
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- #if Platform_Mac
- EditText( obj.hSpace, FilterProc = "AppletHSpace",
- Label = kLit55, RightLWid kAppletSpaceLabelWidth, Width = kAppletSpaceEditWidth, StdFlags );
- #endif
- } // AppletWidth
-
- StdVSpace;
- HList(UseParWidth, palBack)
- {
- EditText( obj.height, FilterProc = "AppletHeight",
- Label = kLit5, StdLblWidth, StdEditWidth, StdFlags );
-
- StdHSpace;
- IntegerPopup("", 0, obj.hUnit, kPopupFont, Action = ToggleHUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- #if Platform_Mac
- EditText( obj.vSpace, FilterProc = "AppletVSpace",
- Label = kLit56, RightLWid kAppletSpaceLabelWidth, Width = kAppletSpaceEditWidth, StdFlags );
- #endif
- } // AppletHeight
-
- #if Platform_Win
- StdVSpace;
- EditText( obj.hSpace, FilterProc = "AppletHSpace", Label = kLit55,
- StdLblWidth, UseParWidth, StdFlags );
- StdVSpace;
- EditText( obj.vSpace, FilterProc = "AppletVSpace", Label = kLit56,
- StdLblWidth, UseParWidth, StdFlags );
- #endif
-
- StdVSpace;
- EditText(obj.name, Label = kLit1, StdLblWidth, UseParWidth, StdFlags);
- StdVSpace;
- EditText( obj.content, Label = kLit57, StdLblWidth, UseParWidth,
- StdFlags ); // AllowQFlags
- StdVSpace;
- } // AppletBot
-
-
- /*************************************************************************/
- /********************************* QTMovie *******************************/
- /*************************************************************************/
-
- Define(QTMovieTop)
- VList(UseParWidth, palBack)
- {
- HList(UseParWidth, palBack)
- {
- Tag(ImageWidth)
- EditText( obj.width, FilterProc = "QTMovieWidth",
- Label = kLit7, StdLblWidth, StdEditWidth, StdFlags );
-
- StdHSpace;
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- HSpace(6);
- PushButton(kLit10, 3420, "None", kButtonFont); // ccResetImageSize
- } // QTMovieWidth
-
- StdVSpace;
- HList(UseParWidth, palBack)
- {
- Tag(ImageHeight)
- EditText( obj.height, FilterProc = "QTMovieHeight",
- Label = kLit5, StdLblWidth, StdEditWidth, StdFlags );
-
- StdHSpace;
- IntegerPopup("", 0, obj.hUnit, kPopupFont, Action = ToggleHUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- } // QTMovieHeight
-
- StdVSpace;
- HList()
- {
- IntegerPopup(kLit90, kQTLoopPopupLabelWidth, obj.loop, Width = kQTLoopPopupWidth, kPopupFont, kPopupLabelFont)
- {
- IntItem(kLit91, 0);
- IntItem(kLit92, 1);
- IntItem(kLit93, 2);
- };
-
- StdHSpace;
-
- #if Platform_Mac
- WidowCheckBox( kLit94, obj.autoPlay, Width = kAutoPlayCheckBoxWidth,
- Height = 17, kSmallBold );
- #else
- CheckBox( kLit94, obj.autoPlay, Width = kAutoPlayCheckBoxWidth,
- Height = 18, kSmallBold );
- #endif
- }
-
- } // QTMovieTop
-
-
- Define(QTMovieBot)
- VList(UseParWidth, palBack)
- {
- #ifdef DISABLED
- IntegerPopup(kLit81, kQTLoopPopupLabelWidth, obj.quality, Width = kQTQualityPopupWidth, kPopupFont,kPopupLabelFont)
- {
- IntItem(kLit87, 1);
- IntItem(kLit88, 0);
- IntItem(kLit89, 2);
- };
- StdVSpace;
- #endif // DISABLED
-
- HList(UseParWidth)
- {
- IntegerPopup( kLit82, kQTLoopPopupLabelWidth, obj.controller,
- Width = kQTControllerPopupWidth, kPopupFont, kPopupLabelFont,
- Action = SetController )
- {
- 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 );
- StdVSpace;
- } // QTMovieBot
-
-
- /*************************************************************************/
- /********************************** Embed ********************************/
- /*************************************************************************/
-
- Define(EmbedTop)
- VList(UseParWidth, palBack)
- {
- HList(UseParWidth, palBack)
- {
- EditText( obj.width, FilterProc = "AppletWidth",
- Label = kLit7, StdLblWidth, StdEditWidth, StdFlags );
-
- StdHSpace;
- IntegerPopup("", 0, obj.wUnit, kPopupFont, Action = ToggleWUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- } // EmbedWidth
-
- StdVSpace;
- HList(UseParWidth, palBack)
- {
- EditText( obj.height, FilterProc = "AppletHeight",
- Label = kLit5, StdLblWidth, StdEditWidth, StdFlags );
-
- StdHSpace;
- IntegerPopup("", 0, obj.hUnit, kPopupFont, Action = ToggleHUnit)
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- };
-
- } // EmbedHeight
-
- } // EmbedTop
-
-
- Define(EmbedBot)
- VList(UseParWidth, palBack)
- {
- EditText( obj.pluginsPage, Label = kLit95, StdLblWidth,
- UseParWidth, StdFlags );
- StdVSpace;
- } // EmbedBot
-
-
- /*************************************************************************/
- /************************** Hidden Form Entries **************************/
- /*************************************************************************/
-
- Define(HiddenTop)
- VList(UseParWidth, palBack)
- {
- EditText(obj.name, Label = kLit58, UseParWidth, StdLblWidth, StdFlags);
- StdVSpace;
- EditText(obj.value, Label = kLit59, UseParWidth, StdLblWidth, StdFlags);
- } // HiddenTop
-
- Define(HiddenBot)
- VSpace(0);
-
-
- /*************************************************************************/
- /********************************* Frame *********************************/
- /*************************************************************************/
-
- Define(FrameTop)
- VList(UseParWidth, palBack)
- {
- Switch(isFrameRoot)
- {
- case 0:
- VList()
- {
- HList()
- {
- EditText( obj.size, FilterProc = "FrameSize",
- Label = kLit31, StdLblWidth, StdEditWidth-5, StdFlags );
- StdHSpace;
- IntegerPopup( "", 0, obj.sizeMode, kPopupFont, Action = SetFrameUnit )
- {
- IntItem(kLit8, 0);
- IntItem(kLit9, 1);
- IntItem(kLit60, 2);
- };
-
- } //HList
-
- StdVSpace;
- }
-
- default:
- VSpace(0);
-
- } // Switch(isFrameRoot)
-
- Switch(obj.feType, UseParWidth)
- {
- case 2:
- VList(UseParWidth)
- {
- HList(UseParWidth)
- {
- EditText( obj.src, FilterProc = "FrameSrcFilter",
- Prefilter = "FrameSrcPrefilter",
- Label = kLit61, StdLblWidth, UseParWidth, StdFlags );
- Spacer(Width = 10, Height = 0);
- GenericView("LinkShortcut");
- }
-
- Margin(LblWidthVal + 5, 5, 0, 0)
- PushButton(kLit74, 3015, "None", kButtonFont); // ccEditLink
- }
-
- default:
- VList(UseParWidth)
- {
- IntegerPopup( kLit62,
- kFrameDirectionLabelWidth,
- obj.feType,
- Width = kFrameDirectionPopupWidth, kPopupLabelFont, kPopupFont)
- {
- IntItem(kLit63, 1);
- IntItem(kLit64, 0);
- };
- }
-
- } // Switch(obj.feType)
-
- } // FrameTop
-
-
- Define(FrameBot)
- Switch(obj.feType)
- {
- case 2:
- VList(UseParWidth, palBack)
- {
- EditText(obj.name,
- Label = kLit1, UseParWidth, StdLblWidth,
- StdFlags );
- StdVSpace;
- HList(UseParWidth)
- {
- IntegerPopup( kLit65,
- kFrameDirectionLabelWidth,
- obj.scrollMode,
- Width = kFrameDirectionPopupWidth, kPopupLabelFont, kPopupFont)
- {
- IntItem(kLit66, 1);
- IntItem(kLit67, 0);
- IntItem(kLit68, 2);
- };
-
- HSpace(UseParent);
-
- #if Platform_Mac
- EditText(obj.marginWidth, FilterProc = "MarginWidth",
- Label = kLit69, StdEditWidth, StdLblWidth+10,
- StdFlags );
- #endif
-
- }
- #if Platform_Win
- StdVSpace;
- EditText(obj.marginWidth, FilterProc = "MarginWidth",
- Label = kLit69, StdEditWidth, StdLblWidth,
- StdFlags );
- StdVSpace;
- EditText(obj.marginHeight, FilterProc = "MarginHeight",
- Label = kLit70, StdEditWidth, StdLblWidth,
- StdFlags );
- #endif
-
- StdVSpace;
- HList(UseParWidth)
- {
- HSpace(LblWidthVal+5);
-
- #if Platform_Mac
- WidowCheckBox( kLit72, obj.noResize, Width = kFixedSizeCheckBoxWidth,
- Height = 17, kSmallBold );
- #else
- CheckBox( kLit72, obj.noResize, Width = kFixedSizeCheckBoxWidth,
- Height = 18, kSmallBold );
- #endif
- HSpace(UseParent);
-
- #if Platform_Mac
- EditText(obj.marginHeight, FilterProc = "MarginHeight",
- Label = kLit70, StdEditWidth, StdLblWidth+10,
- StdFlags );
- #endif
- }
- StdVSpace;
- }
-
- default:
- VSpace(0);
-
- } // Switch(obj.feType)
-
-
- /*************************************************************************/
- /********************************** Main *********************************/
- /*************************************************************************/
-
- Define(Flipdown)
- VList(UseParWidth,palBack)
- {
- 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, palBack)
- {
- VSpace(1);
- Switch(objType) // Lower switch
- {
- case 0: Call(AnchorBot);
- case 1: Call(RuleBot);
- case 2: Call(ImageBot);
- case 15: Call(TableBot);
- case 16: Call(AppletBot);
- case 17: Call(HiddenBot);
- case 21: Call(QTMovieBot);
- case 22: Call(EmbedBot);
-
- #if !LITE_VERSION
- case 3:
- case 4: Call(CheckBoxAndRadioButtonBot);
- case 5: Call(MultilineBot);
- case 6:
- case 7: Call(TextFieldBot);
- case 8: Call(PopupBot);
- case 9: Call(SubmitButtonBot);
- case 10: Call(ResetButtonBot);
- case 18: Call(FrameBot);
- #endif
-
- default: VSpace(0);
- } // Lower switch
-
- Switch(objType)
- {
- #if !LITE_VERSION
- case 0: case 1: case 2: case 3: case 4: case 5:
- case 6: case 7: case 8: case 9: case 10:
- case 16: case 17: case 18:
- case 21: case 22:
- VList(UseParWidth)
- {
- EditText( obj.extraParams, Label = kLit45,
- StdLblWidth, UseParWidth, StdFlags );
- VSpace(3);
- }
- #endif
-
- case 31:
- default:
- VSpace(0);
- }
- } //LowerSwitch
-
- Define(UpperSwitch)
- HList(UseParWidth, palBack)
- {
- VSpace(kUpperPaneHeight);
- Switch(objType) // Upper switch
- {
- case 0: Call(AnchorTop);
- case 1: Call(RuleTop);
- case 2: Call(ImageTop);
- case 15: Call(TableTop);
- case 16: Call(AppletTop);
- case 17: Call(HiddenTop);
- case 21: Call(QTMovieTop);
- case 22: Call(EmbedTop);
-
- #if !LITE_VERSION
- case 3:
- case 4: Call(CheckBoxAndRadioButtonTop);
- case 5: Call(MultilineTop);
- case 6:
- case 7: Call(TextFieldTop);
- case 8: Call(PopupTop);
- case 9: Call(SubmitButtonTop);
- case 10: Call(ResetButtonTop);
- case 18: Call(FrameTop);
- #endif
-
- // case 19: // hoBreak
- default:
- Margin(5,18,5,5)
- StaticText( kLit73,
- UseParWidth, Alignment = Center, kPlainFont );
-
- } // Upper switch
- } //UpperSwitch
-
- Define(TabSwitch)
- Margin(10, 10, 10, 10, palBack)
- Switch(tabMode)
- {
- case 1: //"advanced"
- VList()
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(LowerSwitch);
- }
-
- case 2: //"All"
- VList()
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(UpperSwitch);
- Spacer(Height = 5, Width = UseParent);
-
- Call(LowerSwitch);
- }
-
- default: //"Basic"
- VList()
- {
- Spacer(Height = 0, Width = kObjectEditorBaseWidth, HScale);
- Call(UpperSwitch);
- }
- } //TabMode
-
- #if kShowDebugPopup
- VList()
- {
- #endif
- Margin(4,7,7,2, palBack)
- VList()
- {
- #if Platform_Mac
- Spacer(Height = 0, Width = kObjectEditorBaseWidth);
-
- Call(UpperSwitch);
-
- Switch(objType) // Lower switch
- {
- #if !LITE_VERSION
- case 0:
- case 1:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- case 10:
- case 17:
- case 18:
- #endif
-
- case 2:
- case 15:
- case 16:
- case 21:
- case 22:
- Call(Flipdown);
-
- case 31:
- default: VSpace(19);
- } // Lower switch
-
- Switch(moreOEChoices, UseParWidth)
- {
- case 0:
- VSpace(0);
-
- case 1:
- Call(LowerSwitch);
-
- } // Switch(moreOEChoices)
- #else //if Platform_Win
-
- //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 0:
- case 1:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- case 10:
- case 17:
- case 18:
- // case 19:
- TabControl(tabMode, NoUndo)
- {
- Tab(kLit97, 0);
- Tab(kLit98, 1);
- Tab(kLit99, 2);
-
- Subview:
- Call(TabSwitch);
- };
-
- case 2:
- case 15:
- case 16:
- case 21:
- case 22:
- TabControl(tabMode, NoUndo)
- {
- Tab(kLit97, 0);
- Tab(kLit98, 1);
- Tab(kLit99, 2);
-
- Subview:
- Call(TabSwitch);
- };
-
- default:
- Margin(5,18,5,5)
- StaticText( kLit73,
- Width = kObjectEditorBaseWidth - 40,
- Alignment = Center, kPlainFont );
-
- } // Base Tab switch
- #endif //Platform_Win
-
-
- } // 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("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
-
-