Unit Bwccdel |
***************************************************************************** ** ** BWCCDEL - Delphi encapsulation of BWCC controls. Shows how to encapsulate ** subclassing of controls from other DLLs. ** Also supplies a Borland style dialogue (BWCCMessageBox) box which ** expects the same parameters as the WinAPI MessageBox call. ** I have added some interesting approaches here: ** for Custom buttons, the three bitmaps are stored internally as a ** three element array of bitmaps, but displayed in the object ** inspector as three separate properties; ** For the Custom buttons, I have allowed the caption to be set for ** the purpose of accelerator key access, but the caption is never ** displayed on the button. The caption is NOT saved, but rather ** an internal private variable is made to be persistent; ** A neat trick for finding out what PAS unit a class is defined in, ** see GETUNITNAME function. ** ** History ** ======= ** ** Version Date Description ** 2.10 05/07/97 Adding the new BorSign Type Into this BWCC Control Set. ** Renewed by Xiao Luo sluox@wl.k12.in.us ** ** 1.10 30/06/97 Modified and sections rewritten by Andy Strong. ** e-mail: andy@nbaqsl.co.uk ** Added bwCustom BorBtn bitmap type. ** Fixed bug where pictures on BorBtns didn't always display. ** Fixed way BWCC version is generated. ** Fixed resource leak in BorBtn. ** Fixed button focus rectangle around BorBtn not clearing. ** Added Accelerator Key handling for all BorButton types. ** Fixed bug where focus rect did not show correctly around ** the Radio Buttons and CheckBoxes. ** Modified Caption handling for non bwWordOnly btns. ** Ensured BWCC load count only gets incremented by 1 not 2. ** Added dynamic load of library and functions. ** Downloaded from Delphi Super Page. ** 1.00 ??/??/?? Original by Xiao Luo ** ** Original Message ** ======== ======= ** You can use this program in any application you want without ** notice the author of this program. You may freely distrubute ** this program as long as it's author is presented clearly as ** the original author. You may also change this program and reproduce ** newer verison for this program as long as it's free. ** ** Supported by DragonsoftMedia Inc. Xiao Luo (C) 1996,1997 **
Classes |
TBorBtn -
TBorCheck -
TBorRadio -
TBorShade -
TBorSign -
Functions |
BWCCVersion -
** Sanitised version of BWCC version number.
Register -
Types |
TAccelString
TBWCCButtonKind
TDefStyle
TShadeStyle
TSignStyle
TSTATE
Constants |
BBM_SETBITS
BBN_GOTABTAB
BBN_GOTATAB
BBN_MOUSEENTER
BBN_MOUSELEAVE
BBN_SETFOCUS
BBN_SETFOCUSMOUSE
BBS_BITMAP
BBS_OWNERDRAW
BBS_PARENTNOTIFY
BORBTNTEXTS
BSS_ALIGNMASK
BSS_CAPTION
BSS_CENTER
BSS_CTLCOLOR
BSS_GROUP
BSS_HBUMP
BSS_HDIP
BSS_LEFT
BSS_NOPREFIX
BSS_RGROUP
BSS_RIGHT
BSS_VBUMP
BSS_VDIP
BTNBMPBASES
BWCCLIBRARYNAME
idhelp
Variables |
BWCCGetPattern
BWCCGetVersion
BWCCIntlInit
BWCCIntlTerm
BWCCmessagebox
BWCCRegister
LibHandle
Functions |
Types |
TAccelString = string[2]
TBWCCButtonKind = (bwWordOnly, bwOK, bwCancel, bwAbort, bwRetry, bwIgnore, bwYes, bwNo, bwHelp, bwCustom);
TDefStyle = (dsDefaultButton, dsPushButton);
TShadeStyle = (ssGroup,ssRaisedgroup,ssHdip,ssVdip,ssHBump,ssVBump);
TSignStyle=(Stop,Question,Exclamation,Information);
TSTATE = (tsHighlighted, tsNormal);
Constants |
Variables |