5-14
InView Control and InView Control API
InViewCtrl Methods
SetTime
SetDate
ChangeDisplayAddress
User's Manual 0300277-02 Rev. C
Properties
Description
Syntax
HRESULT SetTime
(DATE dtTime, BOOL fMilitary)
Parameters
dtTime
The time used to update the display's clock.
fMilitary
A flag used to indicate if the time should be
displayed using 24-hour format.
TRUE - use 24-hour format
FALSE - use AM/PM format
Return Value
S_OK - Success
E_FAIL - Failure
Description
This method is used to set the display's clock and
to set how the time will be shown on the display
(AM/PM vs. 24-Hour). The set time command will
be sent to the display address set by the
DisplayAddress property. DisplayAddress should
be set before calling this method.
Syntax
HRESULT SetDate (DATE dtDate)
Parameters
dtDate
The date used to update the display's
calendar.
Return Value
S_OK - Success
E_FAIL - Failure
Description
This method is used to set the display's calendar.
The set date command will be sent to the display
address set by the DisplayAddress property.
DisplayAddress should be set before calling this
method.
Syntax
HRESULT ChangeDisplayAddress
(short nNewDisplayAddress)
Parameters
nNewDisplayAddress
The new address to which the display will be set.
Return Value
S_OK - Success
E_FAIL - Failure
This method is used to change the address of a
Description
display. The change display address command will
be sent to the display address set by the
DisplayAddress property.
DisplayAddress should be set before calling this
method. Be careful when using the broadcast
address (255) with this method on a network of
displays.
Need help?
Do you have a question about the Spectrum Controls 2706-P22-SC and is the answer not in the manual?