home *** CD-ROM | disk | FTP | other *** search
- //
- // VDL
- //
- // Copyright (c) 1997 Claris Corporation
- //
- // FileMaker Link Palette (aka the chicken)
- //
- #include "StdVPref.txt"
-
- /******************************************************************************/
- /********************* LOCALIZED STRING CONSTANTS BEGIN ***********************/
- /******************************************************************************/
-
- // tab labels
- #define kLit1 "Database"
- #define kLit2 "Insert"
-
- // "database tab" control labels
- #define kLit3 "Select Database:"
- #define kLit4 "Update List"
- #define kLit5 "Open Remote..."
- #define kLit6 "Select Layout:"
-
- // "insert tab" control labels
- #define kLit7 "Fields"
- #define kLit8 "Scripts"
- #define kLit9 "Forms"
- #define kLit10 "Tags"
-
- /******************************************************************************/
- /********************** LOCALIZED STRING CONSTANTS END ************************/
- /******************************************************************************/
-
- #define kTabHeight 250
- #define kTabWidth 175
-
- #define kControlWidth 150
- #define kRadioButtonWidth 75
- #define kListBoxWidth 160
- #define kListBoxHeight 75
-
- #if Platform_Mac
- #define kTabLabelFont {Geneva, 10, {Plain}}
- #else
- #define kTabLabelFont SystemFont
- #endif
-
-
- //
- // database tab definition
- //
- Define(DatabaseTab)
- VList(TabDialogBack)
- {
- StaticText( kLit3, Width = kControlWidth, Alignment = Left);
- VList (VScroll, Height = kListBoxHeight, Width = kListBoxWidth)
- {
- PageList(ListAttribute = "DatabaseList");
- }
- Spacer(Height = 10, Width = 0);
- HList()
- {
- PushButton(kLit4, 5016, "None", kButtonFont); // ccUpdateFMDatabases
- Spacer(Height = 0, Width = 20);
- PushButton(kLit5, 5017, "None", kButtonFont); // ccRemoteFMDatabases
- }
- Spacer(Height = 25, Width = 0);
- StaticText( kLit6, Width = kControlWidth, Alignment = Left);
- VList (VScroll, Height = kListBoxHeight, Width = kListBoxWidth)
- {
- PageList(ListAttribute = "LayoutList");
- }
- }
-
- //
- // insert tab definition
- //
- Define(InsertTab)
- VList(TabDialogBack)
- {
- VList()
- {
- HList()
- {
- Spacer(Width = 20, Height = 0);
- WidowRadioButton(kLit7, displayMode, 0, Width = kRadioButtonWidth, Height = 18);
- WidowRadioButton(kLit8, displayMode, 1, Width = kRadioButtonWidth, Height = 18);
- }
- Spacer(Height = 5, Width = 0);
- HList()
- {
- Spacer(Width = 20, Height = 0);
- WidowRadioButton(kLit9, displayMode, 2, Width = kRadioButtonWidth, Height = 18);
- WidowRadioButton(kLit10, displayMode, 3, Width = kRadioButtonWidth, Height = 18);
- }
- }
- Spacer(Width = 0, Height = 10);
- VList (VScroll, Height = 185, Width = kListBoxWidth)
- {
- PageList(ListAttribute = "InsertList");
- }
- }
-
- //
- // controller for tab dialog
- //
- Define(TabController)
- Margin(7, 20, 10, 10, TabDialogBack)
- HList()
- {
- VList(Height = kTabHeight)
- {
- Switch(mode)
- {
- case 0:
- Call(DatabaseTab);
- case 1:
- Call(InsertTab);
- }
- Spacer(Height = 0, Width = kTabWidth);
- }
- Spacer(Width = 0, Height = kTabWidth);
- }
-
-
- //
- // tab dialog definition
- //
- Margin(10, 10, 10, 10, TabDialogBack)
- VList()
- {
- TabControl(mode, noUndo,Font = kTabLabelFont)
- {
- Tab(kLit1, 0); // Database
- Tab(kLit2, 1); // Insert
- Subview:
- Call(TabController);
- };
- }
-
-