[vlc-devel] commit: Allow future control toolbar to be hidden (default) or shown. ( thannoy at actech-innovation.com )

git version control git at videolan.org
Fri Apr 11 17:02:25 CEST 2008

vlc | branch: master | thannoy at actech-innovation.com <thannoy at actech-innovation.com> | Thu Mar 27 16:43:51 2008 +0100| [d5ec802741e96f90002d46288ca1da86fb279d86]

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 <jpsaman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5ec802741e96f90002d46288ca1da86fb279d86

 projects/activex/axvlc.idl |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/projects/activex/axvlc.idl b/projects/activex/axvlc.idl
index b164718..94dcaff 100644
--- a/projects/activex/axvlc.idl
+++ b/projects/activex/axvlc.idl
@@ -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);

More information about the vlc-devel mailing list