© 1996 - 1999 Emkari LLC (see License below)
The Emkari 7x24 Hour Grid Component is useful for providing the end-user with an intuitive scheduling interface. It provides the programmer with one function, two properties and an event which are useful in interpreting and manipulating the schedule:
function DateTimeIsScheduled(ADateTime: TDateTime): boolean;
Usage example:
If Emkari724Grid1.DateTimeIsSchedule(Now)
then
LaunchJob;
property HexBits: string (read / write)
Usage example:
Table1JobSchedule.asString := Emkari724Grid1.HexBits;
or
Emkari724Grid1.HexBits := Table1JobSchedule.asString;
property HourOfDaySet[Day: TDayOfWeek; Hour: THourOfDay]: boolean (read / write)
Usage example:
if Emkari724Grid1.HourOfDaySet[1, 12] then
begin
....
end;
or
Emkari724Grid1.HourOfDaySet[1, 12]:= true;
property OnScheduleChanged: TOnScheduleChangedEvent (Sender: TObject; HexBits: string)
Usage example:
Label1.Caption := HexBits;
Please note: The physical dimensions of the Grid are dependant on the Grid's Font.Size property.
THE INFORMATION AND CODE PROVIDED HEREUNDER (COLLECTIVELY REFERRED TO AS
"SOFTWARE") IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL EMKARI
LLC / M. T. CAREY CONSULTING OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES
WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF
BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF EMKARI LLC / M. T. CAREY CONSULTING
OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME
STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL
OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
This Software may be copied and distributed royalty-free subject to the
following conditions:
1. You must copy all Software without modification and must include all pages,
if the Software is distributed without inclusion in your software product. If
you are incorporating the Software in conjunction with and as a part of your
software product which adds substantial value, you may modify and include
portions of the Software.
2. You must place all copyright notices and other protective disclaimers and
notices contained on the Software on all copies of the Software and your
software product.
3. Unless the Software is incorporated in your software product which adds
substantial value, you may not distribute this Software for profit.
4. You may not use the EMKARI LLC / M. T. CAREY CONSULTING names, logos, or
trademarks to market your software product.
5. You agree to indemnify, hold harmless, and defend EMKARI LLC / M. T.
CAREY CONSULTING and its suppliers from and against any claims or lawsuits,
including attorneys' fees, that arise or result from the use or distribution of
your software product and any modifications to the Software.