home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
edcal.zip
/
EDCAL.DOC
< prev
next >
Wrap
Text File
|
1995-06-11
|
6KB
|
133 lines
EDCal V1.02
Copyright 1994, Enlighten Development.
Friday, May 13, 1993
CompuServe: 73650,165 (primary access)
Voice : (414)/830-0398
To register, send $15 check or money order, payable
to Tim Fischer, to:
Enlighten Development
1109 S. Kernan Street
Appleton, WI 54915
Please add $3 S+H if you wish delivery by Mail.
-------------------------------------------------------------------
EDCal is a Shareware program. If you find EDCal to be
useful, please send $15 to the above address for the latest Version
and FULL SOURCE CODE. Feel free to play around with and copy EDCal,
but, if you use it in one of your programs, and you sell that
program, you must register EDCal. If you don't, or you modify
the EDCal DLL or LIB in anyway, you will be in violation of EDCal's
copyright.
-------------------------------------------------------------------
EDCal, although Shareware, is a Copyrighted production of Enlighten
Development. And as such, your use of the REGISTERED software is
subject to the following Limitations:
-You May:
Have a non-exclusive, royalty-free right to reproduce and
distribute executable files created using this software.
-You May Not:
Distribute the source for this application to anyone not
owning a registered version of this software. i.e. you
MAY give an update to a friend who already has registered
his/her version but hasn't recieved the most recent update
yet through the NEXT major release.
WARRANTY:
Enlighten Development DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED
IN THIS SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION
OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR FREE. Because of
the inherent complexity of computer software you are advised to
verify your work.
LIMITATIONS OF LIABILITY:
Enlighten Development's LIABILITY AND YOUR EXCLUSIVE REMEDY ARE AS
SET FORTH ABOVE AND Enlighten Development DISCLAIMS ALL OTHER
WARRANTIES OR CONDITIONS, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABLE
QUALITY AND FITNESS FOR A PARTICULAR PURPOSE AND THOSE ARISING
BY STATUTE OR OTHERWISE IN LAW OR FROM A COURSE OF DEALING OR
USAGE OF TRADE. No modification or addition to this warranty
is authorized unless it is set forth in writing, references this
Agreement and is signed on behalf of Enlighten Development by an
authorized official.
IN NO EVENT WILL Enlighten Development OR ITS DIRECT OR INDIRECT
SUPPLIERS BE LIABLE FOR ANY OTHER DAMAGES WHATSOEVER INCLUDING,
BUT NOT LIMITED TO, DIRECT, INDERECT, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES OR OTHER PECUNIARY LOSS ARISING OUT OF THE
USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF Enlighten
Development HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
If you read all that, then congratulations!
You are probably the first.
If you have any questions, comments, ideas, etc, feel free to
contact me. I'm always looking for ways to improve my software!
---------------------------------------------------------------
I. General
EDCal provides a programmer with a simple, straightforward
way to create and use a graphical Calendar to select Dates
and display them in multiple formats. This DLL was written
using IBM CSet/2++ and the OS/2 Toolkit. Conversion to other
Compilers should be quite easy as I have not used any special
commands limiting the code to a particular compiler.
II. Using EDCal (DLL Version.)
A. To add EDCal to a program:
In the MAKE file:
o and EDCal.LIB to the LINK statement, in addition
to any other libraries you may be using.
In the PROGRAM FILE
o call the API InitInstanceEDCAL(); in the initialization of
your program (Or anywhere before your FIRST call to
ShowCalendar.
o In order to display the Calendar, call ShowCalendar with the
following options:
ShowCalendar(HWND,ID_EF,"CCYYMMDD");
where HWND = the handle of the window that is calling the
function.
where ID_EF = the ID of the the Entryfield,Combo Box, or
List Box of the item that will display the returned DATE.
where "CCYYMMDD" = the format of the date you wish to
display.
ie. "MM-DD-YY" will display 01-01-95,
"MM-DD-CCYY" will display 01-01-1995,
"DD-MMM-YY" will display 01-Jan-95,
"DD-MMMMMMMMM-CCYY" will display 01-January-1995.
As is shown, MM = Month, DD = Day, CC = Century, YY = Year.
ANY format is acceptable as long as those four characters are
used for the formatting.
o When exiting the application, you may wish to call
TermInstanceEDCAL(); to cleanup the Task and thread used for
the calendar.
If you have any question on implementing EDCal, please feel free to
get in touch with me Via CompuServe at ID 73650,165.