home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 4.7
/
1999-01_-_Disc_4.7.bin
/
ELINK
/
CLARISHP
/
_SETUP.1
/
HOMEPAGE.exe
/
1009
/
153
< prev
next >
Wrap
Text File
|
1997-02-20
|
17KB
|
546 lines
// -----
// VDL153.txt
// Copyright 1996 Claris
// -----
//Doc Options
/************************** 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:"
#define kLit2 "Title stored in the HTML file. Most browsers"\
" will display this in the window title."
#define kLit3 "Form &Action:"
#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:"
#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:"
#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 Parameters:"
#define kLit15 "Extra parameters to be placed in the <HTML> tag, i.e. <HTML xxx>."
#define kLit16 "<HE&AD> Tag Parameters:"
#define kLit17 "Extra parameters 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 Parameters:"
#define kLit21 "Extra parameters to be placed in the <BODY> tag, i.e. <BODY xxx>."
#define kLit22 "Text:"
#define kLit23 "Color for normal text."
#define kLit24 "Normal Link:"
#define kLit25 "Color for linked text."
#define kLit26 "Active Link:"
#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:"
#define kLit31 "Color for linked text when the link has been visited."
#define kLit32 "Background 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 "Advanced"
#define kLit41 "Basic"
#define kLit42 "HTML Extras"
#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)"
//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 Font = {Geneva, 10, {Plain}}
#define kSmallDisplayFont Font = {Geneva, 9, {plain}}
#define kGetPostPopupFont Font = {Chicago, 12, {Plain}
#else
#define kHelpFont Font = {"MS Sans Serif", 8, {Plain}}
#define kSmallDisplayFont Font = {"MS Sans Serif", 8, {Plain}}
#define kGetPostPopupFont Font = {"MS Sans Serif", 8, {Plain}}
#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.
#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 160
#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 175
#endif
//Base value used to compute the width of this dialog
#define kDialogBaseWidth 400
//Width of the "get/post" popup.
#define kGetPostPopupWidth 64
//Label width in the HTML Extras pane.
#define kHTMLExtrasLabelW 180
//Width of all the labels of the color controls in the "Colors and Background" pane.
#define kColorLabelWidth 100
//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 ***************************************************/
#ifdef TryMe
#define LITE_VERSION 1
#endif
#if Platform_Mac
#define dlogBack BackColor = {65535, 65535, 65535}
#else
#define dlogBack BackColor = Dialog
#endif
#define EH EnabledHelpString =
Define(Advanced)
Margin(2,5,2,2, dlogBack)
VList()
{
Spacer(Width = kDialogBaseWidth + 28, Height = 0);
Spacer(Height = 5, Width = 0);
HList(Width = UseParent)
{
EditText( formScript,
Width = UseParent,
Label = kLit3,
LabelAlignment = Right,
LabelWidth = StdLabelW,
BackColor = {65535, 65535, 65535}, kEditTextFont,
NoSmartQuotes, NoSmartEdits,
EH kLit4 );
Spacer(Width = 5, Height = 0);
#if Platform_Mac
IntegerPopup("", 0, method, Width = kGetPostPopupWidth, kGetPostPopupFont },
#else
IntegerPopup("", 0, method, Width = kGetPostPopupWidth, kGetPostPopupFont,
#endif
EH kLit5 )
{
IntItem(kLit6, 0);
IntItem(kLit7, 1);
};
}
Spacer(Height = 5, Width = 1);
EditText( baseURL,
Width = UseParent,
Label = kLit8,
LabelAlignment = Right,
LabelWidth = StdLabelW,
BackColor = {65535, 65535, 65535},
kEditTextFont, NoSmartQuotes, NoSmartEdits,
EH kLit9 );
Spacer(Height = 5, Width = 1);
EditText( defaultTarget,
Width = UseParent,
Label = kLit10,
LabelAlignment = Right,
LabelWidth = StdLabelW,
BackColor = {65535, 65535, 65535},
kEditTextFont, NoSmartQuotes, NoSmartEdits,
EH kLit11 );
#ifdef Kanji_Support
Spacer(Height=5, 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
} //Advanced
Define(HTMLExtras)
Margin(2,0,2,2, dlogBack, Height = UseParent)
//The margins don't look right here, unless you do it this way.
#if Platform_Win
Margin(2,2,2,2, Single, dlogBack, Height = UseParent)
VList(VScroll, dlogBack, Height = UseParent, NoFrame)
#else
VList(VScroll, dlogBack, Height = UseParent)
#endif
Margin(5,5,5,5)
VList()
{
Spacer(Width = kDialogBaseWidth, Height = 0);
EditText( prefixComment,
Width = UseParent,
Label = kLit12,
LabelAlignment = Right,
LabelWidth = kHTMLExtrasLabelW,
BackColor = {65535, 65535, 65535},
kEditTextFont, NoSmartQuotes,
EH kLit13 );
Spacer(Height = 5, Width = 1);
EditText( htmlParams,
Width = UseParent,
Label = kLit14,
LabelAlignment = Right,
LabelWidth = kHTMLExtrasLabelW,
BackColor = {65535, 65535, 65535},
kEditTextFont, NoSmartQuotes, NoSmartEdits,
EH kLit15 );
Spacer(Height = 5, Width = 1);
EditText( headParams,
Width = UseParent,
Label = kLit16,
LabelAlignment = Right,
LabelWidth = kHTMLExtrasLabelW,
BackColor = {65535, 65535, 65535},
kEditTextFont, NoSmartQuotes, NoSmartEdits,
EH kLit17 );
Spacer(Height = 5, Width = 1);
EditText( headContents,
Width = UseParent,
Label = kLit18,
LabelAlignment = Right,
LabelWidth = kHTMLExtrasLabelW,
BackColor = {65535, 65535, 65535},
kEditTextFont, NoSmartQuotes, NoSmartEdits,
EH kLit19 );
Spacer(Height = 5, Width = 1);
EditText( bodyParams,
Width = UseParent,
Label = kLit20,
LabelAlignment = Right,
LabelWidth = kHTMLExtrasLabelW,
BackColor = {65535, 65535, 65535},
kEditTextFont, NoSmartQuotes, NoSmartEdits,
EH kLit21 );
} // HTMLExtras
Define(Basic)
Margin(2,5,2,2, dlogBack)
VList()
{
#if Platform_Win
Spacer(Height = 5, Width = 0, ScaleV);
#endif
Spacer(Width = kDialogBaseWidth + 28, Height = 0);
HList()
{
StaticText( kLit22, Width = kColorLabelWidth, Alignment = Right,EH kLit23);
Spacer(Width = 4, Height = 0);
Margin(2,2,2,2, Single, Outer)
ColorControl( textR, textG, textB, Height = 12, Width = 20,
EH kLit23 );
Spacer(Width = 20, Height = 0);
StaticText( kLit24, Width = kColorLabelWidth, Alignment = Right,EH kLit25);
Spacer(Width = 4, Height = 0);
Margin(2,2,2,2, Single, Outer)
ColorControl( linkR, linkG, linkB, Height = 12, Width = 20,
EH kLit25 );
Spacer(Width = 20, Height = 0);
StaticText( kLit26, Width = kColorLabelWidth, Alignment = Right,EH kLit27);
Spacer(Width = 4, Height = 0);
Margin(2,2,2,2, Single, Outer)
ColorControl( aLnkR, aLnkG, aLnkB, Height = 12, Width = 20,
EH kLit27 );
}
Spacer(Height = 5, Width = 0);
HList()
{
StaticText( kLit28, Width = kColorLabelWidth, Alignment = Right,EH kLit29);
Spacer(Width = 4, Height = 0);
Margin(2,2,2,2, Single, Outer)
ColorControl( backR, backG, backB, Height = 12, Width = 20,
EH kLit29 );
Spacer(Width = 20, Height = 0);
StaticText( kLit30, Width = kColorLabelWidth, Alignment = Right,EH kLit31 );
Spacer(Width = 4, Height = 0);
Margin(2,2,2,2, Single, Outer)
ColorControl( vLnkR, vLnkG, vLnkB, Height = 12, Width = 20,
EH kLit31 );
}
Spacer(Width=0, Height=14);
HList()
{
Margin(0,2,10,0)
StaticText( kLit32, Width = StdLabelW, Alignment = Right);
PushButton( kLit33, 3107, "SetBackPict",
EH kLit34 );
Spacer(Width = 10, Height = 0);
PushButton( kLit35, 3106, "ClearBackPict",
EH kLit36 );
}
Margin(12,4,0,0, Width=UseParent)
HList(Width = UseParent)
{
Margin(4,4,4,4, Single, Width=UseParent, Height = 48, BackColor = White)
StaticText( processedBackPict, Width = UseParent, Height = UseParent,
EH kLit37 );
Spacer(Width = 10, Height = 0);
Margin(4,4,4,4, Single, Width=48, Height = 48)
GenericView( "PreviewBackPict",
EH kLit38 );
}
Spacer(Height = 10, ScaleV);
EditText( title,
Width = UseParent,
Label = kLit1,
LabelAlignment = Right,
LabelWidth = StdLabelW,
BackColor = {65535, 65535, 65535},
kEditTextFont, NoSmartQuotes,
EH kLit2 );
} // Basic
#define kMainListWidth kDialogBaseWidth + 20
Define(MainList)
Margin(10,15,10,10, dlogBack)
HList()
{
Spacer(Width = 0, Height = kMainListHeight, ScaleV);
VList(Height = UseParent)
{
Spacer(Width = kMainListWidth, Height = 0, ScaleH);
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
} //Switch
} //HList
} //VList
Margin(10, 8, 10, 8, dlogBack)
VList()
{
#if Platform_Mac
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
Margin(1,1,1,1, BackColor = {0,0,0}, Left = 0, Top = 10)
Call(MainList);
} //Layout
#else //Platform_Mac
#if !LITE_VERSION
TabControl(mode, NoUndo)
{
Tab(kLit41, 0); // Basic
Tab(kLit40, 2); // Advanced
Tab(kLit42, 1); // HTML Extras
Subview:
Call(MainList);
}; //Layout
#else
Call(MainList);
#endif
#endif
#if Platform_Mac
Spacer(Height = 3, Width = kMainListWidth+2);
#else
Spacer(Height = 3, Width = 0);
#endif
#if Platform_Mac
HelpView(Width = UseParent, Height = 35, kHelpFont);
#else
Margin(2,2,2,2, Single)
HelpView(Width = UseParent, Height = 65, kHelpFont);
Spacer(Height = 10, Width = 0, VScale);
#endif
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
Spacer(Width = 20, Height = 0);
#ifdef TryMe
StandardDialogButtonsH;
#else
Switch(mode)
{
case 0:
HList(Width = UseParent)
{
PushButton( kLit43, 3106, "ResetColors",
EH kLit44 );
StandardDialogButtonsH;
}
case 1:
StandardDialogButtonsHNoReturn;
case 2:
StandardDialogButtonsH;
default:
StandardDialogButtonsH;
} //Switch
#endif
} //HList
}