shellbuttons.h

Go to the documentation of this file.
00001 
00002 /*  $Id: shellbuttons.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define shellbuttonsinclude /*so other modules can tell we've been included*/
00029 
00030 /*constants*/
00031 
00032 #define maxbuttons 16 // to handle more, we'd have to change flags from short to longs
00033 
00034 #define boldbuttonstyle bold
00035 
00036 #define minbuttonwidth 45
00037 
00038 #define pixelsbetweenbuttons 8
00039 
00040 #if TARGET_API_MAC_CARBON == 1
00041     #define buttontextinset 9
00042 #else
00043     #define buttontextinset 3
00044 #endif
00045 
00046 #ifdef MACVERSION
00047     #if TARGET_API_MAC_CARBON == 1
00048         #define buttonsrectheight 29
00049     #else
00050         #define buttonsrectheight 25
00051     #endif  
00052     #define buttonbackground qd.gray
00053     #define whitebackground qd.white
00054 #endif
00055 
00056 #ifdef WIN95VERSION
00057     #define buttonsrectheight 28
00058     #define buttonbackground GetStockObject (GRAY_BRUSH)
00059     #define whitebackground GetStockObject (WHITE_BRUSH)
00060 #endif
00061 
00062 #define buttonfont geneva
00063 #define buttonsize 9
00064 
00065 #define linepattern black
00066 
00067 #define buttontopinset 5
00068 
00069 #define buttonbottominset 6
00070 
00071 
00072 
00073 /*function prototypes*/
00074 
00075 extern void shellgetbuttonrect (short, Rect *);
00076 
00077 extern void shelldrawbutton (short, boolean);
00078 
00079 extern void shelldrawbuttons (void);
00080 
00081 extern void shellbuttonhit (Point);
00082 
00083 extern void shellgetbuttonsrect (hdlwindowinfo, Rect *);
00084 
00085 extern void shellinvalbuttons (void);
00086 
00087 extern boolean shellgetbuttonstring (short, bigstring);
00088 
00089 extern void shellbuttongetoptimalwidth (short *);
00090 
00091 extern void shellbuttonadjustcursor (Point);

Generated on Wed May 31 18:20:01 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6