home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL501.txt
- // Copyright 1996 Claris
- // -----
-
- /* Standard prefix file for Object Editor panels - contains common constants
- * and definitions.
- */
-
- #include "StdVPref.txt"
-
-
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
-
- // 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}}
- #define kPlainLabelFont LabelFont = {Geneva, 10, {Plain}}
- #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
- #define kPlainLabelFont 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.
-
- #if Platform_Mac
- // MAC
-
- //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
-
- #else
- // WINDOWS
-
- //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
-
- #endif
-
- /************************** 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 StdLblWidth RightLWid LblWidthVal
- #define StdEditWidth Width = (LblWidthVal+EditWidthVal)
-
- #define AllowQFlags BackWhite, DropOnReturn, DropOnEnter, kEditFont, kStdLabelFont
- #define SmartPasteFlags AllowQFlags, NoSmartQuotes
- #define StdFlags SmartPasteFlags, NoSmartEdits
-
- #define StdHSpace HSpace(6)
- #define StdVSpace VSpace(6)
-
-
- /*************************************************************************/
- /****************************** Subroutines ******************************/
- /*************************************************************************/
- #define kExtraHTML "E&xtra HTML Attributes:"
- #define kExtraHTMLHelp "Specifies extra HTML Attributes."
- #define kExtraHTMLHotKey HotKey = "X"
-
- Define(ExtraParams)
- VList(UseParWidth, stdBackColor)
- {
- Margin(0,5,0,5)
- StaticText(kExtraHTML, kStaticFont, Alignment = Left, UseParWidth );
- EditText( obj.extraParams, StdLblWidth, UseParWidth, StdFlags, kExtraHTMLHotKey, EH kExtraHTMLHelp );
- }
-
-