Developer's Notes of Using BWCC Components in Delphi Author: Xiao Luo BWCCDel unit included 4 components--TBorBtn, TBorRadio, TBorCheck, TBorShade and load them from the BWCC.DLL run time library. The program need BWCC.DLL at run time within the Windows system directory or current directory. Note: For non DLL required BWCC Components, check out another "BWCC Radio and Check Button Unit." also at Delphi Super Page. You can use BWCC Components by install the unit to the Delphi Component Speed Bar. TBorBtn Same as TButton Control Property Kind: --The kind of button you want to use at design time. Warning: BWCC will not repaint the control when you set the kind at design time. And there is no build in shortcut key for BWCC Buttons. You can put the modification of Kind Property at Form's OnActive EVENT(Even OnCreate won't work). You can either set the shortcut key by modify the "Caption" Property and Font Property or you can set it in the Form's "OnKeyDown" EVENT. Procedure SetBits(Bit1,Bit2,Bit3:HBitmap); --This Procedure will set the user defined bitmap for the button. The package also attached three bitmap file, which would be the default bitmap style for BWCC. You just put whatever you want on the bitmap's face, and put'em into a RES file and Bit1,Bit2,Bit3 is three bitmap's handle. Bit1 The bitmap is displayed when the button is normal. Bit2 The bitmap is displayed when the button is pressed(Highlighted). Bit3 The bitmap is displayed when the button is receiving a keyboard focus. TBorRadio, TBorCheck The have the exact same property and function set of standard windows controls, except BWCC library overrided the WM_PAINT message. Note:You can't change the bacground color of these controls directly through the color property, but you can change the background color by retriving the WS_COLORCTL and SetBKColor API function. TBorShade Borland Style Shade. Currently not used in most applications. Functions and Procedures Function BWCCVersion:Single; {Return the current BWCC Version} Function BWCCMessageBox(Parent:Word;Text,Caption:PChar;TextStyle:Word):integer; {BWCC dialog box procedure, use same as MessageBox API function} Procedure BWCCregister(Hinst:Word);{Register to BWCC} You should always call this function to BWCC, and register your application instance with BWCC library at the beginning of your application. Varibles Loaderror:word; this Varible saved the instance of BWCC at the loading time. Note:Always close the BWCC library at the end of your application. It's freeware, enjoy it. (or you can send me thanking E-mail :-) ) If you have the newer version of BWCC, please note me. This version is designed for both Delphi 1.0 and 2.0 (Although, the code is written by 1.0), BWCC.DLL is a 16-bit Verison. If you want get 32-bit version, you can contact Borland Int'l. If you have any question, please contact: sluox@callisto.wl.k12.in.us or Http://www.geocities.com/wallstreet/3160/ for my latest E-mail address.