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#ifndef _CHART2_RESOURCE_HXX
24#define _CHART2_RESOURCE_HXX
25
26#define BUTTONS_OK_CANCEL_HELP( xPos, yPos, xOffset, yOffset ) \
27OKButton BTN_OK \
28{ \
29	Pos = MAP_APPFONT ( xPos , yPos ) ; \
30	Size = MAP_APPFONT ( 50 , 14 ) ; \
31	TabStop = TRUE ; \
32	DefButton = TRUE ; \
33}; \
34CancelButton BTN_CANCEL \
35{ \
36	Pos = MAP_APPFONT ( xPos+xOffset , yPos+yOffset  ) ; \
37	Size = MAP_APPFONT ( 50 , 14 ) ; \
38	TabStop = TRUE ; \
39}; \
40HelpButton BTN_HELP \
41{ \
42	Pos = MAP_APPFONT ( xPos+xOffset+xOffset , yPos+yOffset+yOffset  ) ; \
43	Size = MAP_APPFONT ( 50 , 14 ) ; \
44	TabStop = TRUE ; \
45};
46
47#define BUTTONS_OK_CANCEL_HELP_STACKED( xPos ) \
48BUTTONS_OK_CANCEL_HELP( xPos, 6, 0, 17 )
49
50#define BUTTONS_HELP_OK_CANCEL( xPos, yPos, xOffset, yOffset ) \
51HelpButton BTN_HELP \
52{ \
53    Pos = MAP_APPFONT ( xPos , yPos ) ; \
54	Size = MAP_APPFONT ( 50 , 14 ) ; \
55	TabStop = TRUE ; \
56}; \
57OKButton BTN_OK \
58{ \
59	Pos = MAP_APPFONT ( xPos+xOffset , yPos+yOffset  ) ; \
60	Size = MAP_APPFONT ( 50 , 14 ) ; \
61	TabStop = TRUE ; \
62	DefButton = TRUE ; \
63}; \
64CancelButton BTN_CANCEL \
65{ \
66	Pos = MAP_APPFONT ( xPos+xOffset+xOffset , yPos+yOffset+yOffset  ) ; \
67	Size = MAP_APPFONT ( 50 , 14 ) ; \
68	TabStop = TRUE ; \
69};
70
71#define BUTTONS_HELP_OK_CANCEL_NEXT( xPos, yPos ) \
72BUTTONS_HELP_OK_CANCEL( xPos, yPos, 53, 0 )
73
74
75#endif
76