home *** CD-ROM | disk | FTP | other *** search
- AddSoft's Schedule VBX is a very comprehensive control. This is good and bad:
- Good because it lets you build comprehensive scheduling systems; Bad because
- there is a LOT you need to manage and a big learning curve.
-
- At this stage we have not provided a template wrapper for Schedule VBX. This
- may be provided in the future at a substantially greater license fee.
- Instead, I have 3 include files and a 4th file which can be used to easily
- add/change SchedVBX property settings.
-
- The files are as follows
-
- SCHEDVBX.CLW
- This is the function prototype file for inclusion in the MAP.
- You need to use this file if you wish to use the DLL FUNCTIONS of SCHEDULE.VBX
- Because CW does not recognize *.VBX as a DLL, you need to COPY SCHEDVBX.VBX
- to \cw\bin\SCHEDVBX.DLL and make sure that you do this every time SCHEDVBX is
- upgraded.
- The function calls all require the hWnd handle of the Schedule control you
- have created. If your control is called ?Control1, you can get the hWnd with
- the syntax
- Control1_hWnd = ?Control1{prop:handle}
-
- Example from SCHEDVBX.CLW
-
- !Search Routines
- SchedVBXWndFindFreeTimeBlock( USHORT, |!hWnd handle into SchedVBX instance
- SHORT, |!iResource number (Resource Array index)
- *STRING, |!szBeg date/time string
- *CSTRING |!szDur duration string
- ) SHORT, PASCAL, RAW
-
- SCHEDEQU.CLW
- This file has equates for every setting option of several dozen properties -
- in fact virtually every property for which such equates make sense. This
- allows you to use meaningful names for settings instead of numbers, making
- maintenance feasible.
-
- Example from SCHEDEQU.CLW
-
- !Timescale Equates
- SchedTimescale:Years EQUATE( 0 )
- SchedTimescale:Quarters EQUATE( 1 )
- SchedTimescale:Months EQUATE( 2 )
- SchedTimescale:Weeks EQUATE( 3 )
- SchedTimescale:Days EQUATE( 4 )
- SchedTimescale:Hours EQUATE( 5 )
- SchedTimescale:Minutes EQUATE( 6 )
-
- COLORS.CLW
- This is a small equates file which adds additional named colors and the
- standard MicroSoft names for several colors.
-
- Example from COLORS.CLW
- COLOR:DarkYellow EQUATE (0008080H) !Microsoft name for Olive
- COLOR:Gold EQUATE (00080FFH)
- COLOR:LightOlive EQUATE (000FF80H)
-
- SCHEDREF.CLW
- This file will save you gobs of time. Copy the property statement you need,
- along with the appropriate equate name, delete the ! in front of the property
- statement and rename the control to your schedule control.
-
- Examples from SCHEDREF.CLW
-
- !?Control{'BarName',BarNumber} = '' !(default)
- !Name of the BarNumber-th Bar
-
- !?Control{'BarSize',BarNumber} = 50 !(default)
- !height of bar as a % of cell height
-
- !?Control{'BarOffset',BarNumber} = 0 !(default)
- !Offset of bar as a % of cell height - 75 places bar in bottom quarter of cell
-
- !?Control{'BarColor',BarNumber} = Color:Navy !(default)
-
- !?Control{'BarPattern',BarNumber} = SchedBarPattern:None !(default)
- !SchedBarPattern:None
- !SchedBarPattern:Horizontal
- !SchedBarPattern:Vertical
- !SchedBarPattern:UpwardsHatch
- !SchedBarPattern:DownwardsHatc
- !SchedBarPattern:CrossHatch
- !SchedBarPattern:45DegreeHatch
-
- ===================================================================
- If you wish to unlock these files email your VISA or MasterCard details to
- A-TEK Systems. The password will be forwarded by return email and A$20
- (about US$14) will be billed to your credit card. To unlock the file, run
- SCHEDINC -s[password]
- e.g. SCHEDINC -sATEK (good luck if you try this password)
-
- There is no doubt that a few errors exist in these files. The nominal
- license fee being charged includes absolutely no support whatsoever! A-Tek
- Systems MAY, at its discretion, fix any reported bugs in the files! You
- may use the files as you see fit, as long as you do not redistribute them as
- source. The COLORS.CLW files bears no COPYRIGHT notice at all and has
- been placed in the public domain by A-TEK Systems.
-
- The following is the copyright notice attaching to the other 3 files.
-
- !**********************************************************************!
- ! COPYRIGHT 1995 A-TEK SYSTEMS ALL RIGHTS RESERVED !
- ! *** !
- ! THIS FILE MAY NOT BE USED IN A SOFTWARE PRODUCT (NOR ANY !
- ! PART OF IT) UNLESS A COPY OF THIS NOTICE IS INCLUDED IN ITS !
- ! ENTIRETY. THIS FILE MAY NOT BE USED (NOR ANY PART THEREOF) !
- ! UNLESS THE USER HAS PAID THE LICENSE FEE TO A-TEK SYSTEMS. !
- ! THIS FILE MAY NOT BE REDISTRIBUTED AS SOURCE CODE (NOR ANY !
- ! PART OF IT) AND MAY NOT BE INCORPORATED IN ANY TEMPLATE (NOR !
- ! ANY PART OF IT) WITHOUT THE WRITTEN PERMISSION OF THE !
- ! COPYRIGHT OWNER. !
- ! A SINGLE LICENSE FEE COVERS THE USE BY A SINGLE USER OF !
- ! SCHEDVBX.CLW, SCHEDEQU.CLW AND/OR SCHEDREF.CLW. !
- ! THIS FILE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY !
- ! WHATSOEVER OF ITS SUITABILITY TO ANY PARTICULAR PURPOSE. !
- ! IT IS A CONDITION OF USE OF THIS FILE (OR ANY PART OF IT) !
- ! THAT THE USER ACCEPT ALL RESPONSIBILITY FOR ANY PROBLEMS !
- ! WHICH ARISE OUT OF ITS USE. IF YOU ARE UNWILLING TO !
- ! ACCEPT THIS OR ANY OTHER CONDITION OF USE, YOU MUST !
- ! ERASE ALL CODE IN YOUR POSSESSION WHICH UTILISES ANY PART !
- ! OF THIS FILE. !
- ! *** !
- ! If you have a copy of this file and have not paid A-TEK !
- ! Systems for its use, please contact A-TEK Systems to !
- ! obtain the necessary license. The license fee is A$20 !
- ! (about US$14) per user, payable by MasterCard or VISA. !
- ! !
- ! A-TEK Systems !
- ! PO BOX 72, BONDI, NSW, 2026, AUSTRALIA !
- ! Phone +61 2 387-2544 Fax +61 2 369-4644 !
- ! CompuServe 100033,3544 !
- !**********************************************************************!
-