/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ #ifndef _UNODIALOGS_BUTTONGROUP_HRC #define _UNODIALOGS_BUTTONGROUP_HRC #include "resids.hrc" #define PB_OK 1 #define PB_CANCEL 1 #define PB_HELP 1 #define BUTTONGROUP_BUTTONWIDTH 40 #define BUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, xOffset, yOffset ) \ OKButton PB_OK \ { \ Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset-xOffset , yTopPos ) ; \ Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \ TabStop = TRUE ; \ DefButton = TRUE ; \ }; \ CancelButton PB_CANCEL \ { \ Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset , yTopPos+yOffset ) ; \ Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \ TabStop = TRUE ; \ }; \ HelpButton PB_HELP \ { \ Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH , yTopPos+yOffset+yOffset ) ; \ Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \ TabStop = TRUE ; \ }; #define BUTTONS_OK_CANCEL_HELP_STACKED( xRightPos ) \ BUTTONS_OK_CANCEL_HELP( xRightPos, 6, 0, 17 ) #define BUTTONS_OK_CANCEL_HELP_ABREAST( xRightPos, yTopPos ) \ BUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, (BUTTONGROUP_BUTTONWIDTH+3), 0 ) #endif