ControlBar object
The object with functions and properties used by the Control Bar
template.
Addressing the ControlBar object:
window.external.ControlBar
Functions
BackExec()
Move one page back in the Main Panel.
Call: window.external.ControlBar.BackExec();
Return value: no.
ForwardExec()
Move one page forward in the Main Panel.
Call: window.external.ControlBar.ForwardExec();
Return value: no.
LeftPanelOpen()
Show the Left Panel.
Call: window.external.ControlBar.LeftPanelOpen();
Return value: no.
LeftPanelClose()
Hide the Left Panel.
Call: window.external.ControlBar.LeftPanelClose();
Return value: no.
SearchOpen()
Show the Search Bar.
Call: window.external.ControlBar.SearchOpen();
Return value: no.
SearchClose()
Hide the Search Bar.
Call: window.external.ControlBar.SearchClose();
Return value: no.
PrintExec()
Print the current page of the Main Panel.
Call: window.external.ControlBar.PrintExec();
Return value: no.
TextToSpeechPlay()
Initiate the Speech API in order to say the selected text (or the
entire text if nothing is selected) using headphones or speakers.
Call: window.external.ControlBar.TextToSpeechPlay();
Return value: no.
TextToSpeechStop()
Stop saying the text.
Call: window.external.ControlBar.TextToSpeechStop();
Return value: no.
HomepageExec()
Open the home page of the author or the eBook in a new browser window.
Call: window.external.ControlBar.HomepageExec();
Return value: no.
ReviewsExec()
Open the page with comments on the eBook in a new browser window.
Call: window.external.ControlBar.ReviewsExec();
Return value: no.
ContactExec()
Open the mail editor to compose a message to the author.
Call: window.external.ControlBar.ContactExec();
Return value: no.
MaestroExec ()
Open the eBook Maestro home page a new browser window.
Call: window.external.ControlBar.MaestroExec();
Return value: no.
ExitExec ()
Terminates the eBook .
Call: window.external.ControlBar.ExitExec();
Return value: no.
Properties
Height
Call: window.external.ControlBar.Height;
Sets or retrieves the height of the Control Bar. Value: integer
number.
Visible
Call: window.external.ControlBar.Height;
Sets or retrieves the visibility of the Control Bar. Value: boolean
(true/false).
BackVisible
Call: window.external.ControlBar.BackVisible;
Returns true if the "Go Back" button is displayed. Otherwise returns
false.
ForwardVisible
Call: window.external.ControlBar.ForwardVisible;
Returns true if the "Go Forward" button is displayed. Otherwise
returns false.
LeftPanelVisible
Call: window.external.ControlBar.LeftPanelVisible;
Returns true if the "Show/Hide Left Panel" button is displayed.
Otherwise returns false.
SearchVisible
Call: window.external.ControlBar.SearchVisible;
Returns true if the "Show/Hide Search Bar" button is displayed.
Otherwise returns false.
PrintVisible
Call: window.external.ControlBar.PrintVisible;
Returns true if the "Print" button is displayed. Otherwise returns
false.
TextToSpeechVisible
Call: window.external.ControlBar.TextToSpeechVisible;
Returns true if the "Text-to-Speech" buttons are displayed. Otherwise
returns false.
HomepageVisible
Call: window.external.ControlBar.HomepageVisible;
Returns true if the "Homepage" button is displayed. Otherwise returns
false.
ReviewsVisible
Call: window.external.ControlBar.ReviewsVisible;
Returns true if the "Reviews and Awards" button is displayed. Otherwise
returns false.
ContactVisible
Call: window.external.ControlBar.ContactVisible;
Returns true if the "Contact Author" button is displayed. Otherwise
returns false.
MaestroVisible
Call: window.external.ControlBar.MaestroVisible;
Returns true if the "eBook Maestro" button is displayed. Otherwise
returns false.
ExitVisible
Call: window.external.ControlBar.ExitVisible;
Returns true if the "Exit" button is displayed. Otherwise
returns false.
LeftPanelIsOpen
Call: window.external.ControlBar.LeftPanelIsOpen;
Returns true if the Left Panel is displayed. Otherwise returns false.
SearchIsOpen
Call: window.external.ControlBar.SearchIsOpen;
Returns true if the Search Bar is displayed. Otherwise returns false.
SAPIAvailable
Call: window.external.ControlBar.SAPIAvailable;
Returns true, if the Speech API is installed on the computer. Otherwise
returns false. |