Commit 5b6b83c9 authored by thannoy@actech-innovation.com's avatar thannoy@actech-innovation.com Committed by Jean-Baptiste Kempf

Allow future control toolbar to be hidden (default) or shown.

 Even if no control toolbar is implemented for ActiveX yet, we already
 provide the code to enable/disable it for compatibility with Firefox
 API behaviour.
 The getter used to know if toolbar is shown will always return FALSE
 until a toolbar is implemented. (getter which will be available soon
 for Firefox)

To use it:
- ActiveX global property named "toolbar":
   For HTML : <param name="toolbar" value="True" />

- API on IVLCControl2 interface, property "toolbar" (RW):
   For Javascript : yourvlcobject.toolbar = false;
                    isToolBarShown = yourvlcobject.toolbar;
Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jpsaman@videolan.org>
parent 29a9b0ed
......@@ -134,6 +134,15 @@ library AXVLC
** for compatibility with some scripting language (JScript)
*/
/*
* caution: vlcobject.toolbar:bool does not yet exists in Firefox
* plugin. Official usage is through "toolbar" property for now,
* which is compatibile with Firefox.
*/
[id(DISPID_Toolbar), propget, helpstring("Returns/sets visibility of the toolbar")]
HRESULT Toolbar([out, retval] VARIANT_BOOL* visible);
[id(DISPID_Toolbar), propput, helpstring("Returns/sets visibility of the toolbar")]
HRESULT Toolbar([in] VARIANT_BOOL visible);
HRESULT addTarget([in] BSTR uri, [in] VARIANT options, [in] enum VLCPlaylistMode mode, [in] int position);
[propget, helpstring("Returns index of current item in playlist.")]
HRESULT PlaylistIndex([out, retval] int* index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment