JPEGView/Infinity Windoid 2_6/WindoidDefines.h

1 line
8.2 KiB
C
Raw Normal View History

// ***************************************************************************** // // WindoidDefines.h // // ----------------------------------------------------------------------------- // This file contains only the #define's used to determine how to compile // the Infinity Windoid WDEF. By modifying only this file, you can choose // what capabilities will be included when the WDEF is compiled. // ***************************************************************************** #ifndef __WindoidDefines__ #define __WindoidDefines__ // ***************************************************************************** // Conditional Compilation Options // ----------------------------------------------------------------------------- /* The #define's you may make include: ALLOW_VERT - This determines if the code that is compiled will support a palette that has a vertical title bar along the left side of the window (rather than the top). To create such a window, add one to the varcode that is used. ALLOW_GROW - This option creates a WDEF that supports a grow box. This grow box behaves exactly like that of a standard document window. This addition to the code was provided to me by Jim Petrick. ALLOW_ZOOM - This option creates a windoid that supports a zoombox. To add the zoombox to a windoid, add zoomDocProc to the procID when creating the window. The application is responsible for setting the user state and standard state Rects of the window for zooming. (When a new window is created, both of these are initialized to the bounds of the window. See the README for more information). SMALL_GROW - This option will cause the grow box to be drawn smaller than the standard size. STAYPUT_ZOOM - This option will cause both the user and standard Rects to be changed together, causing the zoomed in and out state to have the same topLeft at all times. If this is not set, the standard and user states have their own 'memories'. (Note: this behavior is not fully tested.) MFI_ZOOM - This will cause the WDEF to handle the zoom box in the way expected by MicroFrontier applications (the same way as version 2.2). That is, the other state that is used is one which has a title bar with a small area (in which the host program displays a label for the windoid). MACAPP_STYLE - This determines if the varcodes that are supported are the one's I consider 'normal' or the ones MacApp's windoid WDEF knows about. Note, however, that this code only supports the 'smaller', title-less version that is available in MacApp's. THINK_STYLE - This creates a version of the WDEF that is totally compatible with the varcodes used in the windoid WDEF included with the THINK environments. Two things are done: varcode 0 gives a normal titlebar, varcode 2 gives a titlebar down the left side, and other varcodes (i.e. 1,3,4,5,6,7) give no titlebar at all. (Note that in my version, a zoom box may also be used with this style.) Also, for the THINK style, ALWAYS_HILITE is also set, as this is how theirs works. ALWAYS_HILITE - This will cause a windoid to be created that will always draw its title bar with gadgets and all. Normally, the windoid will draw the titlebar and frame in gray and empty when the window is not hilighted (like normal windows). Some programs, however, don't keep their windoids properly hilighted, so this will make them appear to always be active. VERS_2_2_COMPATIBLE - This creates a version of the WDEF that is functionally compatible with the version 2.2 windoid that I released. The only issue involved is the way the zooming is handled. THICK_TITLEBAR - Defining this will cause the titlebar of the windoid to be a little taller and include tinges along the outside that match those of document windows. This is similar to Adobe's recent windoids, and also similar to (but bet