1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef _EXTENSIONS_FORMCTRLR_PROPRESID_HRC_
25#include "formresid.hrc"
26#endif
27#include "propctrlr.hrc"
28#ifndef EXTENSIONS_SOURCE_PROPCTRLR_FORMLINKDIALOG_HRC
29#include "formlinkdialog.hrc"
30#endif
31
32ModalDialog RID_DLG_FORMLINKS
33{
34    HelpID = "extensions:ModalDialog:RID_DLG_FORMLINKS";
35	OutputSize = TRUE ;
36	Moveable = TRUE ;
37	Closeable = TRUE ;
38	SVLook = TRUE ;
39    Size = MAP_APPFONT ( 252, 110 ) ;
40
41    Text [ en-US ] = "Link fields";
42
43    FixedText FT_EXPLANATION
44    {
45        Pos = MAP_APPFONT( 6, 6 );
46        Size = MAP_APPFONT( 187, 24 );
47
48        WordBreak = TRUE;
49
50        Text [ en-US ] = "Sub forms can be used to display detailed data about the current record of the master form. To do this, you can specify which columns in the sub form match which columns in the master form.";
51    };
52
53    FixedText FT_DETAIL_LABEL
54    {
55        Pos = MAP_APPFONT( 6, 36 );
56        Size = MAP_APPFONT( 85, 8 );
57    };
58
59    FixedText FT_MASTER_LABEL
60    {
61        Pos = MAP_APPFONT( 102, 36 );
62        Size = MAP_APPFONT( 85, 8 );
63    };
64
65#define ROW( n ) \
66    Window n \
67    { \
68        Pos  = MAP_APPFONT( 6, 47 + 15 * ( n - 1 ) ); \
69        Size = MAP_APPFONT( 181, 13 );                \
70                                                      \
71        Hide          = FALSE;                        \
72        DialogControl = TRUE;                         \
73                                                      \
74        ComboBox 1                                    \
75        {                                             \
76            Pos  = MAP_APPFONT( 0, 0 );               \
77            Size = MAP_APPFONT( 85, 12 );             \
78                                                      \
79            DropDown = TRUE;                          \
80            TabStop  = TRUE;                          \
81                                                      \
82            HelpId   = HID_FIELDLINK_DETAIL_COLUMN;   \
83            UniqueId = UID_FIELDLINK_DETAIL#n;        \
84        };                                            \
85        FixedText 1                                   \
86        {                                             \
87            Pos  = MAP_APPFONT( 85, 0 );              \
88            Size = MAP_APPFONT( 10, 12 );             \
89            Center = TRUE;                            \
90        };                                            \
91        ComboBox 2                                    \
92        {                                             \
93            Pos  = MAP_APPFONT( 95, 0 );              \
94            Size = MAP_APPFONT( 85, 12 );             \
95                                                      \
96            DropDown = TRUE;                          \
97            TabStop  = TRUE;                          \
98                                                      \
99            HelpId   = HID_FIELDLINK_MASTER_COLUMN;   \
100            UniqueId = UID_FIELDLINK_MASTER#n;        \
101        };                                            \
102    }
103
104    ROW( 1 );
105    ROW( 2 );
106    ROW( 3 );
107    ROW( 4 );
108
109    OKButton PB_OK
110    {
111        Pos = MAP_APPFONT( 199, 6 );
112        Size = MAP_APPFONT( 50, 14 );
113        TabStop   = TRUE;
114        DefButton = TRUE;
115    };
116
117    CancelButton PB_CANCEL
118    {
119        Pos = MAP_APPFONT( 199, 23 );
120        Size = MAP_APPFONT( 50, 14 );
121        TabStop = TRUE;
122    };
123
124    HelpButton PB_HELP
125    {
126        Pos = MAP_APPFONT( 199, 43 );
127        Size = MAP_APPFONT( 50, 14 );
128        TabStop = TRUE;
129    };
130
131    PushButton PB_SUGGEST
132    {
133        HelpID = "extensions:PushButton:RID_DLG_FORMLINKS:PB_SUGGEST";
134        Pos = MAP_APPFONT( 199, 90 );
135        Size = MAP_APPFONT( 50, 14 );
136        TabStop =  TRUE;
137        Hide    = FALSE;
138        Disable =  TRUE;
139
140        Text [ en-US ] = "Suggest";
141    };
142
143    String STR_DETAIL_FORM
144    {
145        Text [ en-US ] = "Sub Form";
146    };
147
148    String STR_MASTER_FORM
149    {
150        Text [ en-US ] = "Master Form";
151    };
152
153    String STR_ERROR_RETRIEVING_COLUMNS
154    {
155        Text [ en-US ] = "The columns of '#' could not be retrieved.";
156    };
157};
158