home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL153.txt
- // Copyright 1996 Claris
- // -----
-
- // Doc Options
-
-
- #include "StdVPref.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
-
- #define kLit1 " &Document Title:" /*Important: keep the leading space. It's needed to prevent artifact from drawing.*/
- #define kLit2 "Title stored in the HTML file. Most browsers"\
- " will display this in the window title."
-
- #define kLit3 "&Script URL:"
-
- // #define kLit4 "The CGI script to be executed when the user presses"\
- // " a submit button for a form in this document."
- //
- // #define kLit5 "The \"method\" to use when transmitting form"\
- // " data to the HTTP server."
-
- #define kLit6 "GET"
- #define kLit7 "POST"
- #define kLit8 " &Base Document URL:" /*Important: keep the leading space. It's needed to prevent artifact from drawing.*/
- #define kLit9 "Specifies a base URL from which relative links in"\
- " this file will be resolved. If empty, relative links"\
- " are resolved from the location of the file."
-
- #define kLit10 " Default &Target Frame:" /*Important: keep the leading space. It's needed to prevent artifact from drawing.*/
- #define kLit11 "If not empty, specifies a default frame in which"\
- " all links from this document will be displayed. Only used"\
- " in conjunction with HTML Frames."
-
- #define kLit12 "&Prefix Comment:"
- #define kLit13 "A comment string which will appear at the beginning of the HTML file."
- #define kLit14 "<HTM&L> Tag Attributes:"
- #define kLit15 "Extra attributes to be placed in the <HTML> tag, i.e. <HTML xxx>."
- #define kLit16 "<HE&AD> Tag Attributes:"
- #define kLit17 "Extra attributes to be placed in the <HEAD> tag, i.e. <HEAD xxx>."
- #define kLit18 "Text in HEAD &Section:"
- #define kLit19 "Extra HTML code to be placed within the HEAD section, i.e. <HEAD> xxx </HEAD>."
- #define kLit20 "<&BODY> Tag Attributes:"
- #define kLit21 "Extra attributes to be placed in the <BODY> tag, i.e. <BODY xxx>."
- #define kLit22 "&Text:" //HotKey must match underscore on this string
- #define hotKey22 HotKey = "T"
- #define kLit23 "Color for normal text."
- #define kLit24 "&Normal Link:" //HotKey must match underscore on this string
- #define hotKey24 HotKey = "N"
- #define kLit25 "Color for linked text."
- #define kLit26 "&Active Link:" //HotKey must match underscore on this string
- #define hotKey26 HotKey = "A"
- #define kLit27 "Color for a link being clicked on."
- #define kLit28 "Background"
- #define kLit29 "Color of the page background (only used"\
- " if no background image is specified, or"\
- " if the browser user has disabled image loading)."
-
- #define kLit30 "&Visited Link:" //HotKey must match underscore on this string
- #define hotKey30 HotKey = "V"
- #define kLit31 "Color for linked text when the link has been visited."
- #define kLit32 "Image:"
- #define kLit33 " &Set... "
- #define kLit34 "Choose an image file to use as the background"\
- " for this document."
-
- #define kLit35 "&None"
- #define kLit36 "Remove any background image for this document."
- #define kLit37 "The currently selected background image file."
- #define kLit38 "A sample of the currently selected background image."
-
- #define kLit39 "Controls which category of document options is displayed."
-
- #define kLit40 "Parameters"
- #define kLit41 "Appearance"
- #define kLit42 "Extended"
- #define kLit43 "Use &Defaults"
- #define kLit44 "Remove any background image, and restore all"\
- " color settings to their default values."
-
- #define kLit45 "Document &Encoding:"
- #define kLit46 "The character encoding scheme for this document."
- #define kLit47 "Western (Latin1)"
-
- #define kLit48 "Document &Encoding:"
- #define kLit49 "The character encoding scheme for this document."
- #define kLit50 "Japanese (JIS)"
- #define kLit51 "Japanese (Shift-JIS)"
- #define kLit52 "Japanese (EUC)"
-
- #define kLit53 "Text Color"
- #define kLit54 "Restore &Default Colors"
- #define kLit55 "Resets the text colors back to the default colors."
-
- #define kLit56 "&Color:" //Hotkey must match the underscore on this string
- #define hotKey56 HotKey = "C"
- #define kLit57 "Restore Default &Background"
- #define kLit58 "Resets the background to the default color and no image."
-
- // #define kLit59 "Form Action"
- // #define kLit60 "Method:"
-
- #define kLit61 "Other..."
- #define kLit62 "No Change" //used to mean "don't change the original color", in the color control
- #define kLit63 "&Remove"
- #define kLit64 "Removes the background image."
-
-
- //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/DocOpts.htm"
- #define kHelpTitle "&Help"
-
- //Localized Fonts
- #if Platform_Mac
- #define kHelpFont {Geneva, 10, {Plain}}
- #define kButtonFont {Geneva, 10, {Plain}}
- #define kPlainLabelFont {Geneva, 10, {Plain}}
- #define kBoldLabelFont {Geneva, 10, {Bold}}
- #define kSmallPlainLabelFont {Geneva, 9, {Plain}}
- #define kTabLabelFont {Geneva, 10, {Plain}}
-
- #else
- #if Dialog_Pixels == 100
- #define kHelpFont {"MS Sans Serif", 8, {Plain}}
- #define kSmallPlainLabelFont {"MS Sans Serif", 8, {Plain}}
- #else
- #define kHelpFont {"MS Sans Serif", 6, {Plain}}
- #define kSmallPlainLabelFont {"MS Sans Serif", 6, {Plain}}
- #endif
- #define kButtonFont SystemFont
- #define kPlainLabelFont SystemFont
- #define kBoldLabelFont SystemFont
- #define kTabLabelFont SystemFont
- #endif
-
- #define kEditTextFont Font = EditFont
-
- /************************** 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.
-
- //jeh PrefColorControl uses these values. Width=22 Height=17 works great on Windows.
-
-
- #if Platform_Mac
- //Standard Label width, used for many panes.
- #define StdLabelW 143
-
- //Height of the help view at the bottom of the window
- #define kHelpViewHeight 35
-
- //Height of the main list (each of the three panes has this height)
- #define kMainListHeight 200
-
- //Base value used to compute the width of this dialog
- #define kDialogBaseWidth 332
- #define kColorPickerWidth 22
- #define kColorPickerHeight 15
-
- //Width of all the labels of the color controls in the "Colors and Background" pane.
- #define kColorLabelWidth 70
-
- //Field width in the HTML Extras pane.
- #define kHTMLExtrasFieldW 322
-
- //Label width in the HTML Extras pane.
- #define kHTMLExtrasLabelW 145
-
- #else
- //Standard Label width, used for many panes.
- #define StdLabelW 150
-
- //Height of the help view at the bottom of the window
- #define kHelpViewHeight 65
-
- //Height of the main list (each of the three panes has this height)
- #define kMainListHeight 210
-
- //Base value used to compute the width of this dialog
- #if Dialog_Pixels == 100
- #define kDialogBaseWidth 353
- #else
- #define kDialogBaseWidth 325
- #endif
- #define kColorPickerWidth 22
- #define kColorPickerHeight 17
-
- //Width of all the labels of the color controls in the "Colors and Background" pane.
- #define kColorLabelWidth 70
-
-
- //Label width in the HTML Extras pane.
- #define kHTMLExtrasLabelW 145
-
- //Field width in the HTML Extras pane.
- #define kHTMLExtrasFieldW 322
-
- #endif
-
-
-
- //Width of the "get/post" popup.
- #define kGetPostPopupWidth 64
-
-
-
- //Height of the text warning that background images will not appear
- #define kBackgroundImageTextHeight 40
-
-
- /************************** 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 ***************************************************/
-
-
-
- //--------------------------------------------
- // Displays the Help text
- //--------------------------------------------
- Define(HelpTextDisplay)
- #if Platform_Mac
- Margin(0,0,0,0, TabDialogBack)
- HelpView(Width = UseParent, Height = 40, Font = kHelpFont);
- #else
- //Margin(2,2,2,2, Single) jeh7/97 - removed this border around help, to match spec.
- Margin(0,0,0,0, TabDialogBack)
- HelpView(Width = UseParent, Height = 65, Font = kHelpFont, stdBackColor);
- #endif
-
-
-
-
- //------------------------------------
- // Parameters Panel
- //------------------------------------
-
- Define(Advanced)
- Margin (0,0,0,0,MinSizeX = kDialogBaseWidth )
- VList(Width = UseParent,TabDialogBack)
- {
- #ifdef OBSOLETE // This code should be turned back on if
- // the DOCUMENT_BASED_FORMS flag is ever
- // turned back on. It provides the UI for
- // setting form fields.
- Label(kLit59, Single, TabDialogBack,Width = UseParent)
- Margin(5,5,12,10,TabDialogBack)
- VList(TabDialogBack )
- {
- EditText( formScript,
- Label = kLit3,
- LabelAlignment = Right,
- LabelWidth = StdLabelW,
- LabelWidth = 75,
- BackColor = {65535, 65535, 65535}, kEditTextFont,
- NoSmartQuotes, NoSmartEdits,
- EH kLit4 );
-
- Spacer(Height = 10);
-
- HList()
- {
-
- StaticText(kLit60,Width = 75,Alignment = Right,EH kLit5);
- Spacer(Width = 5);
-
- IntegerPopup( "", 0, method,Width = kGetPostPopupWidth, EH kLit5)
- {
- IntItem(kLit6, 0); // Basic
- IntItem(kLit7, 1); // Advanced
- };
-
- }
-
- } //VList
-
- Spacer(Height = 5);
- #endif // OBSOLETE
-
- StaticText(kLit1,Width = UseParent,Alignment = Left,Font = kBoldLabelFont,EH kLit9);
- Margin(20,2,0,0)
- EditText( title,
- Width = UseParent,
- LabelWidth = 0, /* this allows us to set the hotkey AND have a label above the text line*/
- Label = kLit1,
- BackColor = {65535, 65535, 65535},
- kEditTextFont, NoSmartQuotes,
- EH kLit2 );
-
-
- Spacer(Height = 10);
-
- StaticText(kLit8,Width = UseParent,Alignment = Left,Font = kBoldLabelFont,EH kLit9);
- Margin(20,2,0,0)
- EditText( baseURL,
- Width = UseParent,
- LabelWidth = 0, /*needed to set a hotkey AND have the label appear above the text line*/
- Label = kLit8,
- BackColor = {65535, 65535, 65535},
- kEditTextFont, NoSmartQuotes, NoSmartEdits,
- EH kLit9 );
-
- Spacer(Height = 10);
-
- StaticText(kLit10,Width = UseParent,Alignment = Left,Font = kBoldLabelFont,EH kLit11);
-
- Margin(20,2,0,0)
- EditText( defaultTarget,
- Width = UseParent,
- LabelWidth = 0, /*needed to set a hotkey AND have the label appear above the text line*/
- Label = kLit10,
- BackColor = {65535, 65535, 65535},
- kEditTextFont, NoSmartQuotes, NoSmartEdits,
- EH kLit11 );
-
-
- #ifdef Kanji_Support
- Spacer(Height=10, Width=1);
- Switch(docEncoding, Width = UseParent)
- {
- case 0:
- IntegerPopup( kLit45, StdLabelW+4, docEncoding,
- Alignment = Right,
- EH kLit46 )
- {
- IntItem(kLit47, 0);
- };
-
- case 1:
- case 2:
- case 3:
- IntegerPopup( kLit48, StdLabelW+4, docEncoding, Alignment = Right,
- EH kLit49 )
- {
- IntItem(kLit50, 1);
- IntItem(kLit51, 2);
- IntItem(kLit52, 3);
- };
-
- default:
- Spacer(Height=0, Width=0);
- } // Switch (docEncoding)
- #endif // Kanji_Support
-
-
- Spacer(Height = 36, Width = 0);
- Spacer(Height = 1, Width = UseParent, BackColor = Black);
- Spacer(Height = 1, Width = UseParent, BackColor = White);
-
- Spacer(Height = 5);
- Call (HelpTextDisplay);
-
- }//VList
-
-
- //------------------------------------
- // Extended Panel
- //------------------------------------
-
- Define(HTMLExtras)
- //$$$ VList(Height = UseParent,TabDialogBack)
- Margin (0,0,0,0,MinSizeX = kDialogBaseWidth )
- VList(Width = UseParent,TabDialogBack)
- {
-
- /*$$$$MR the scroll bar is not needed
- #if Platform_Win
- Margin(2,2,2,2, Single, Height = UseParent)
- VList(VScroll, TabDialogBack, Height = UseParent, NoFrame)
- #else
- VList(VScroll, TabDialogBack, Height = UseParent)
- #endif
- */
- Margin(5,5,5,5)
- VList(Width = UseParent)
- {
- EditText( prefixComment,
- Width = UseParent,
- Label = kLit12,
- LabelAlignment = Right,
- LabelWidth = kHTMLExtrasLabelW,
- LabelFont = kBoldLabelFont,
- BackColor = {65535, 65535, 65535},
- kEditTextFont, NoSmartQuotes,
- // MaxTo = HTMLExtrasText,
- EH kLit13 );
-
- Spacer(Height = 5);
- EditText( htmlParams,
- //Width = kHTMLExtrasFieldW,
- Label = kLit14,
- LabelAlignment = Right,
- LabelWidth = kHTMLExtrasLabelW,
- LabelFont = kBoldLabelFont,
- BackColor = {65535, 65535, 65535},
- kEditTextFont, NoSmartQuotes, NoSmartEdits,
- // MaxTo = HTMLExtrasText,
- EH kLit15 );
-
- Spacer(Height = 5);
- EditText( headParams,
- //Width = kHTMLExtrasFieldW,
- Label = kLit16,
- LabelAlignment = Right,
- LabelWidth = kHTMLExtrasLabelW,
- LabelFont = kBoldLabelFont,
- BackColor = {65535, 65535, 65535},
- kEditTextFont, NoSmartQuotes, NoSmartEdits,
- // MaxTo = HTMLExtrasText,
- EH kLit17 );
-
- Spacer(Height = 5);
- EditText( headContents,
- // MaxTo = HTMLExtrasText,
- //Width = kHTMLExtrasFieldW,
- Label = kLit18,
- LabelAlignment = Right,
- LabelWidth = kHTMLExtrasLabelW,
- LabelFont = kBoldLabelFont,
- BackColor = {65535, 65535, 65535},
- kEditTextFont, NoSmartQuotes, NoSmartEdits,
-
- EH kLit19 );
-
- Spacer(Height = 5);
- EditText( bodyParams,
- //Width = kHTMLExtrasFieldW,
- Label = kLit20,
- LabelAlignment = Right,
- LabelWidth = kHTMLExtrasLabelW,
- LabelFont = kBoldLabelFont,
- BackColor = {65535, 65535, 65535},
- kEditTextFont, NoSmartQuotes, NoSmartEdits,
- // MaxTo = HTMLExtrasText,
- EH kLit21 );
- } // HTMLExtras
-
-
- Spacer(Height = 31, Width = 0);
-
- Spacer(Height = 1, Width = UseParent, BackColor = Black);
- Spacer(Height = 1, Width = UseParent, BackColor = White);
- Spacer(Height = 5, Width = 0);
-
-
- Call(HelpTextDisplay);
-
- }//Vlist
-
-
-
-
- //--------------------------------------------
- // Displays the Text Color Settings
- //--------------------------------------------
- Define(TextColors)
-
- Label(kLit53, Single, TabDialogBack,
- Font = kBoldLabelFont,MaxToV = MaxColorGroup)
- Margin(10,5,10,10,TabDialogBack)
- VList()
- {
- HList() //Text Color
- {
- StaticText( kLit22, Width = kColorLabelWidth, Alignment = Right,Font = kPlainLabelFont,EH kLit23);
- Spacer(Width = 4, Height = 0,ScaleH);
- Switch(singleDocSelected)
- {
- case 1: // Single document. Color control won't have a "default" or "No Change" option.
- GenericView("PrefColorControl",Red = textR, Green = textG, Blue = textB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey22,
- ExtraString = kLit61, EnabledHelpString = kLit23, DisabledHelpString = kLit23);
-
- case 0: // Multiple documents selected. Color control has a "No Change" option.
- GenericView("PrefColorControl",Red = textR, Green = textG, Blue = textB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey22,
- ExtraString = kLit61, DefaultString = kLit62, EnabledHelpString = kLit23, DisabledHelpString = kLit23);
- }
- }//HList
-
- Spacer(Width = 0, Height = 5,ScaleV);
-
- HList() //Link Color
- {
- StaticText( kLit24, Width = kColorLabelWidth, Alignment = Right,Font = kPlainLabelFont, EH kLit25);
- Spacer(Width = 4, Height = 0,ScaleH);
- Switch(singleDocSelected)
- {
- case 1:// Single document. Color control won't have a "default" or "No Change" option.
- GenericView("PrefColorControl",Red = linkR, Green = linkG, Blue = linkB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey24,
- ExtraString = kLit61, EnabledHelpString = kLit25, DisabledHelpString = kLit25);
-
- case 0:// Multiple documents selected. Color control has a "No Change" option.
- GenericView("PrefColorControl",Red = linkR, Green = linkG, Blue = linkB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey24,
- ExtraString = kLit61, DefaultString = kLit62 ,EnabledHelpString = kLit25, DisabledHelpString = kLit25);
- }
-
- }//HList
-
- Spacer(Width = 0, Height = 5,ScaleV);
-
- HList() //Visited Link Color
- {
- StaticText( kLit30, Width = kColorLabelWidth, Alignment = Right,Font = kPlainLabelFont,EH kLit31 );
- Spacer(Width = 4,ScaleH);
- Switch(singleDocSelected)
- {
- case 1:// Single document. Color control won't have a "default" or "No Change" option.
- GenericView("PrefColorControl",Red = vLnkR, Green = vLnkG, Blue = vLnkB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey30,
- ExtraString = kLit61, EnabledHelpString = kLit31, DisabledHelpString = kLit31);
-
- case 0:// Multiple documents selected. Color control has a "No Change" option.
- GenericView("PrefColorControl",Red = vLnkR, Green = vLnkG, Blue = vLnkB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey30,
- ExtraString = kLit61, DefaultString = kLit62, EnabledHelpString = kLit31, DisabledHelpString = kLit31);
-
- }
- }//HList
-
- Spacer(Width = 0, Height = 5,ScaleV);
-
- HList() //Active Link Color
- {
- StaticText( kLit26, Width = kColorLabelWidth, Alignment = Right,Font = kPlainLabelFont,EH kLit27);
- Spacer(Width = 4,ScaleV);
- Switch(singleDocSelected)
- {
- case 1:// Single document. Color control won't have a "default" or "No Change" option.
- GenericView("PrefColorControl",Red = aLnkR, Green = aLnkG, Blue = aLnkB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey26,
- ExtraString = kLit61, EnabledHelpString = kLit27, DisabledHelpString = kLit27);
-
- case 0:// Multiple documents selected. Color control has a "No Change" option.
- GenericView("PrefColorControl",Red = aLnkR, Green = aLnkG, Blue = aLnkB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey26,
- ExtraString = kLit61, DefaultString = kLit62, EnabledHelpString = kLit27, DisabledHelpString = kLit27);
-
- }
- }//HList
-
-
- #if Platform_Mac
- Spacer(Height = 20,ScaleV);
-
- #else
-
- Spacer(Height = 24,ScaleV);
- #endif
-
-
- HList() //Use Default Colors
- {
- Spacer(Height = 5,ScaleV);
- PushButton( kLit54, 3106, "ResetColors",Font = kButtonFont,EH kLit55 );
- }//HList
-
- }//VList
-
-
-
-
-
- //--------------------------------------------
- // Displays the Background Settings
- //--------------------------------------------
- Define(BackgroundSettings)
- Label(kLit28, Single,TabDialogBack,
- Font = kBoldLabelFont,Width = UseParent,MaxToV = MaxColorGroup)
-
- #if Platform_Mac
-
- Margin(0,10,0,10,TabDialogBack)
-
- #else
-
- Margin(0,10,10,10,TabDialogBack)
-
- #endif
-
-
- VList()
- {
- HList()
- {
- VList()
- {
- HList() //--- Background Color ---
- {
- StaticText( kLit56, Width = 40, Alignment = Right,Font = kPlainLabelFont,EH kLit29);
- Spacer(Width = 4, Height = 0, ScaleH);
- Switch(singleDocSelected)
- {
- case 1: // Single document. Color control won't have a "default" or "No Change" option.
- GenericView("PrefColorControl",Red = backR, Green = backG, Blue = backB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey56,
- ExtraString = kLit61, EnabledHelpString = kLit29, DisabledHelpString = kLit29);
-
- case 0: // Multiple documents selected. Color control has a "No Change" option.
- GenericView("PrefColorControl",Red = backR, Green = backG, Blue = backB,
- Height = kColorPickerHeight, Width = kColorPickerWidth, hotKey56,
- ExtraString = kLit61, DefaultString = kLit62, EnabledHelpString = kLit29, DisabledHelpString = kLit29);
-
- }
- }//HList
-
- Spacer(Width = 0, Height = 10, ScaleV);
-
- HList() //--- Set Background Image Button ---
- {
-
- StaticText( kLit32, Width = 40, Alignment = Right,Font = kPlainLabelFont, EH kLit34);
- Spacer(Width = 4, Height = 0, ScaleH);
- PushButton( kLit33, 3107, "SetBackPict",Font = kButtonFont,EH kLit34 );
- }//HList
-
- Spacer(Height = 7, ScaleV);
-
- HList() //--- Remove Background Image Button ---
- {
- Spacer(Width = 44, ScaleH);
- PushButton( kLit63, 3107,"RemoveBackPict",Font = kButtonFont,EH kLit64 );
- }//HList
-
- }//VList
-
- Spacer(Width = 15, Height = 0, ScaleH);
-
- VList() //--- Background Image Preview ---
- {
- #if Platform_Mac
- Spacer(Width = 0, Height = 20,ScaleV);
- Margin(4,4,4,4, Single, Width=48, Height = 48,ScaleH,ScaleV)
- #else
- Spacer(Width = 0, Height = 25,ScaleV);
- Margin(4,4,4,4, Single, Width=60, Height = 60,ScaleH,ScaleV)
- #endif
- GenericView( "PreviewBackPict",EH kLit38 );
- }//VList
-
- }//HList
-
- HList() //--- Image Name ---
- {
- #if Platform_Mac
- Spacer(Width = 5,ScaleH);
- StaticText( backgroundPictName,Width = 150, Alignment = Right,Font = kSmallPlainLabelFont);
- #else
- Spacer(Width = 5,ScaleH);
- #if Dialog_Pixels == 100
- StaticText( backgroundPictName,Width = 185, Alignment = Right,Font = kSmallPlainLabelFont);
- #else
- StaticText( backgroundPictName,Width = 160, Alignment = Right,Font = kSmallPlainLabelFont);
- #endif
- #endif
- }//HList
-
- #if Platform_Mac
- Spacer(Width = 0, Height = 20,ScaleV);
- #else
- Spacer(Width = 0, Height = 5,ScaleV);
- #endif
- HList() //--- Use Default Background Button ---
- {
- Spacer(Width = 10, Height = 0,ScaleH);
- PushButton( kLit57, 3106, "ResetBackground",Font = kButtonFont,EH kLit58 );
-
- }//HList
-
- }//VList
-
-
-
- //------------------------------------
- // Appearance Panel
- //------------------------------------
- Define(Basic)
- Margin(0,0,0,0, TabDialogBack,MinSizeX = kDialogBaseWidth)
- VList(Width = UseParent)
- {
- HList(Width = UseParent) //--- Two Group Boxes
- {
- Call(TextColors); //--- Text Color
- Spacer(Width = 10, Height = 0,ScaleH);
- Call(BackgroundSettings); //--- Background
- } // HList
-
- Spacer(Height = 13,ScaleV);
-
-
- // Spacer(Height = 10, Width = 0,ScaleV);
- // Spacer(Height = 1, Width = UseParent, BackColor = Black);
- // Spacer(Height = 1, Width = UseParent, BackColor = White);
-
- // Spacer(Height = 10,ScaleV);
-
- Call(HelpTextDisplay);
-
- }//VList
-
-
-
-
-
-
- #define kMainListWidth kDialogBaseWidth
- //#define kMainListWidth UseParent
-
- Define(MainList)
- Margin(10,15,10,10, TabDialogBack)
- HList()
- {
- Spacer(Width = 0, Height = kMainListHeight, ScaleV);
- VList(Height = UseParent)
- {
- Switch(mode, Height = UseParent)
- {
- case 0:
- default:
- Margin(0,0,0,0)
- Call(Basic);
-
- #if !LITE_VERSION
- case 1:
- Margin(0,0,0,0, Height = UseParent)
- Call(HTMLExtras);
-
- case 2:
- Margin(0,0,0,0)
- Call(Advanced);
-
- #endif //!LITE_VERSION
-
- } //Switch
-
- } //HList
- } //VList
-
-
-
- Margin(10, 8, 10, 8, TabDialogBack)
- VList()
- {
- #if !WANT_TABS
- Layout(AllowOverlap)
- {
- #if !LITE_VERSION
- HList(Left = 10, Top = 0)
- {
- Spacer(Width = 5, Height = 0);
- IntegerPopup( "", 0, mode,
- EH kLit39, NoUndo )
- {
- IntItem(kLit41, 0); // Basic
- IntItem(kLit40, 2); // Advanced
- IntItem(kLit42, 1); // HTML Extras
- };
- Spacer(Width = 5, Height = 0);
- }
- #endif //!LITE_VERSION
-
- Margin(1,1,1,1, BackColor = {0,0,0}, Left = 0, Top = 10)
- Call(MainList);
- } //Layout
- #else //WANT_TABS
- #if !LITE_VERSION
- TabControl(mode, NoUndo,Font = kTabLabelFont)
- {
- Tab(kLit41, 0); // Basic
- Tab(kLit40, 2); // Advanced
- Tab(kLit42, 1); // HTML Extras
-
- Subview:
- Margin(0,0,0,0, MinSizeX = kDialogBaseWidth, MinSizeY = kDialogBaseHeight)
- Call(MainList);
- }; //Layout
- #else
- Call(MainList);
- #endif //!LITE_VERSION
- #endif //!WANT_TABS
-
- #if Platform_Mac
- Spacer(Height = 3, Width = kMainListWidth+2);
- #else
- Spacer(Height = 3, Width = 0);
- #endif
-
- Spacer(Height = 10, Width = 0, VScale);
-
-
- HList(Width = UseParent)
- {
- Spacer(Width = 20, Height = 0);
- #ifdef TryMe
- StandardDialogButtonsH;
- #else
- Switch(mode)
- {
- case 0:
- HList(Width = UseParent)
- {
- StandardDialogButtonsH;
- }
-
- case 1:
- StandardDialogButtonsHNoReturn;
-
- default:
- StandardDialogButtonsH;
-
- } //Switch
- #endif
- } //HList
-
- }
-
-
-
-
-
-
-