About this plugin
This plugin allow you to put one or more Clocks on your publications. Every Clock object can be customized using lot of options and have lot of events. You can set and get the Clock time and other lot of properties.
Every Clock can act like a clock and like a countdown or normal timer. You can use analog or digital clocks, and customize it with lot of options, colors, events, etc. Also the analog Clocks admite background face images.
Thirparty
This plugin are imposible without the aid of this people:
Thanks a lot!
Create a new instance of an Hour object and attach it to a Neobook rectangle object. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Destroy a previously Hour object instance and deattach from their NeoBook rectangle. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Activate or deactivate an instance of an Hour object. Set the Active argument to "True" or "Checked" values to activate the Clock, or "False" to deactivate. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Find if an instance of an Hour object is active or not. The result variable store "True" if the Clock is active, or "False" if not or an error ocurr. In this last case the [LastError] variable store information about the error.
Get the current hour, minute and second of an Hour object instance. Specity the Hour, Minutes and Seconds variables in order to retrieve the current Clock time. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set the hour, minute and second of an Hour object instance. Specify the Hour, Minute and Second values to set the Clock with them. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set the face BMP image of an Hour object instance. Provide the path for a BMP file image in order to be placed as the face of the Clock. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set the hand options of an Hour object instance. Here is the list of the hand options you can set, with the value types and defaults.
The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set the digital options of an Hour object instance.
The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set the modes options of an Hour object instance. Here is the possible values for the Clock mode argument:
When use "cmCountdownTimer" you can use the npHourSetOffsets action in order to set the countdown values. Below is the list of the possible Display modes argument values:
The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Get the currently stablished offsets numbers of an Hour object instance. Specify the appropiate variables in order to retrieve the offsets values. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set the offsets numbers of an Hour object instance. Specify the offsets values to be set on the Clock. This offsets can be used when the Clock is in "countdown" mode. So, you can set, for example, 0 hour, 1 minute and 0 seconds, in order to prepare a 1 minute countdown. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set a publication subroutine to be executed when an hour of an Hour object instance change. The Rectangle variable store the name of the rectangle in which the Clock is attached. Doing this you can share the same subroutine with more than one Clock. The Hour variable store the current Clock hour. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set a publication subroutine to be executed when an minute of an Hour object instance change. The Rectangle variable store the name of the rectangle in which the Clock is attached. Doing this you can share the same subroutine with more than one Clock. The Minute variable store the current Clock minute. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set a publication subroutine to be executed when an second of an Hour object instance change. The Rectangle variable store the name of the rectangle in which the Clock is attached. Doing this you can share the same subroutine with more than one Clock. The Second variable store the current Clock second. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set a publication subroutine to be executed when an Hour object instance is clicked. The Rectangle variable store the name of the rectangle in which the Clock is attached. Doing this you can share the same subroutine with more than one Clock. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set a publication subroutine to be executed when an Hour object instance is double clicked. The Rectangle variable store the name of the rectangle in which the Clock is attached. Doing this you can share the same subroutine with more than one Clock. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
Set a publication subroutine to be executed when an Hour object instance countdown is done. The Rectangle variable store the name of the rectangle in which the Clock is attached. Doing this you can share the same subroutine with more than one Clock. The result variable store "True" if everything is OK, or "False" if an error ocurr. In this last case the [LastError] variable store information about the error.
All the NeoPlugins deal with errors in the same way that NeoBook does: when the plugin found an action error the [LastError] variable store information about the error, so you can take care about this variable when execute an action.
But all the NeoPlugins also incorporate an advanced way to deal with possible action errors. You can define a subroutine named OnNeoPluginActionError in order to be executed when some action error are found and you can use this variables inside:
Note that this error handling subroutine are shared for all the NeoPlugins, so you no need to specify a subroutine for every plugin you use in your publication because the same subroutine are recognized and automagically used by every NeoPlugin. Below you can view a sample of this subroutine code:
:OnNeoPluginActionError AlertBox "NeoPlugin Error" "Error [LastError] in plugin: [PluginName]" Return
Also note that the use of this NeoPlugins error handling subroutine is completelly optional. You can continue using the [LastError] variable as usual and even use the both methods at the same time.