home *** CD-ROM | disk | FTP | other *** search
- ///////////////////////////////////////////////////////////////////////////
- // OScriptT.txt (VDL 2022)
- // AUTHOR: Anthony C. Ard <anthony_ard@claris.com>, 26-Jun-97.
- // Copyright 1997 Claris
- // Top half of the Object Editor for an HTML code object.
- #include "ObjEPref.txt"
- ///////////////////////////////////////////////////////////////////////////
- // 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 "Language:"
- #define kLitAutoScriptInfo "Enter your code below. Claris Home Page will automatically enclose the code with Script tags."
- #define kLitOpenBracket "<SCRIPT LANGUAGE= "
- #define kLitEndBracket " > " //note: extra spaces are needed to tweak this VDL on Windows.
- #define kLitCloseScript "</SCRIPT> "
- //Mouseover help
- #define kLit201 "Specifies the scripting language."
- #define kLit202 "Area for entering the script."
- //Localized Fonts
- #if Platform_Mac
- #define kHelpFont Font = {Geneva, 10, {Plain}}
- #define kBoldFont Font = {Geneva, 10, {Bold}}
- #define kLabelBoldFont LabelFont = {Geneva, 10, {Bold}}
- #else
- // Platform Windows
- #if Dialog_Pixels == 100 //e.g. small fonts
- #define kBoldFont Font = {"MS Sans Serif", 8, {Bold}}
- #define kHelpFont Font = {"MS Sans Serif", 8, {Plain}}
- #define kLabelBoldFont LabelFont = {"MS Sans Serif", 8, {Bold}}
- #else // large fonts
- #define kHelpFont Font = {"MS Sans Serif", 6, {Plain}}
- #define kBoldFont Font = {"MS Sans Serif", 6, {Bold}}
- #define kLabelBoldFont LabelFont = {"MS Sans Serif", 6, {Bold}}
- #endif
- #endif
- ///////////////////////////////////////////////////////////////////////////
- // LOCALIZED STRING CONSTANTS END
- ///////////////////////////////////////////////////////////////////////////
- // 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. */
- #define kScriptEditLanguageWidth 200
- #define kScriptEditHeight 300
- #define kLabelWidth LabelWidth =60
- #if Platform_Win
- #if Dialog_Pixels == 100 //e.g. Windows small fonts
- #define kWidthScriptInfo 140
- #define kWidthLanguage 80
- #else // Windows: large fonts
- #define kWidthScriptInfo 130
- #define kWidthLanguage 80
- #endif
- #else
- #define kWidthScriptInfo -1
- #define kWidthLanguage -1
- #endif
- ///////////////////////////////////////////////////////////////////////////
- // LOCALIZED NUMERICAL CONSTANTS END
- // No further localizable data past this point.
- // END LOCALIZABLE DATA
- ///////////////////////////////////////////////////////////////////////////s
- VList( stdBackColor, Width = UseParent, Height = kScriptEditHeight )
- {
- HList( Width = UseParent )
- {
- EditText( obj.language, Label = kLit1,kLabelWidth, Width = kScriptEditLanguageWidth,
- StdFlags, EH kLit201,kLabelBoldFont );
- StdHSpace;
- GenericView( "ScriptTypePopup" );
- }
- StdVSpace;
- StaticText(kLitAutoScriptInfo, kPlainFont, Alignment = Left, Width = UseParent);
- Spacer(Width=0, Height=7);
- HList()
- {
- StaticText(kLitOpenBracket, kBoldFont, Width = kWidthScriptInfo);
- StaticText(obj.language, kBoldFont,Alignment=Left, Width = kWidthLanguage);
- StaticText(kLitEndBracket, kBoldFont);
- }
- StdVSpace;
- VList( VScroll, BackColor = White,
- Width = UseParent, Height = UseParent )
- Margin( 2, 2, 2, 2 ) EditText( obj.contents, LabelWidth = 0,
- kEditFont, NoSmartQuotes,
- MultiLine, /*NoFrame,*/
- Width = UseParent,
- NoSmartEdits, EH kLit202 );
- StdVSpace;
- StaticText(kLitCloseScript, kBoldFont);
- //jeh 10.18.97 took out "NoFrame", so user can see where it's ok to edit. Without
- // this change, it looked like you could click anywhere to start editing when in fact
- // only the very first line was active.
- // Another possible solution is to remove MultiLine, adding Height = XXX instead.
- // however, this might limit the length of the text edit field.
- //Note: removing Margin(..) before the EditText solves the I-beam cursor problem, but
- // still doesn't solve the problem of requiring user to click in exactly the first line.
- }
-
-