locked
Hide HDView Interactive Icons RRS feed

  • Question

  • Is it possible to hide the control icons on the top right corner?

    I want to display HDView in an exhibition, to set it in full screen mode, and prevent visitors from returning to normal mode and/or leave the page.

    I shall give the visitors only a mouse, no keyboard.

    I need to hide at least the full screen icon.

    Is there a way to do it?

     

    Thursday, May 27, 2010 3:40 PM

All replies

  • Hi,

    You can set the HDView ShowToolbar property to 0 to remove all the toolbars; the equivalent functions will still be available from the keyboard.

    --Howard

    Tuesday, June 1, 2010 4:57 PM
  • Hi Howard,

    Where should I set the showToolbar property?

    I tried the following in the html page:

    <script type="text/xml" id="hdvxmlembed">
    <?xml version="1.0"?>
    <root>
        <imageset
            url="Irya3_2b_files\{l}\{c}_{r}.jpg"
            levels="16"
            width="20740"
            height="9140"
            projection="perspective"
            maxZoom="2.000000"
            tileWidth="254"
            tileHeight="254"
            tileOverlap="1"
            showToolbar="0"
        />
    </root>
    </script>

    But it did not work, the icons are still shown.

    Thanks,

    Ariel

     

     

    Tuesday, June 1, 2010 8:23 PM
  • Hi Ariel,

    ShowToolbar is a property of the control itself, not the image, so it goes in the Javascript not the XML.

    For example your html may have something like the following in it:

        <script type="text/javascript">
            var args;
            if ( top.location.search == "" )  {
                args = 'FileName=#hdvxmlembed&BackgroundColor=0&Viewer=0&ShowToolbar=0';
            }
            else {
                args = top.location.search.substring(1);
            }
            hdv = new hdvHost("hdvControl", "hdvDiv", "100%", "100%", top.location.href, args);
        </script>

    Note I added "ShowToolbar" to the args.

    I also added "ShowToolbar" to the control's description since it wasn't in there:

    http://research.microsoft.com/IVM/HDView/HDXMLSpec.htm

    --Howard

    Thursday, June 3, 2010 4:44 PM
  • Hi Howard,

    Thanks.

    Yes, it works, and the icons are gone now.

    However, it does not solve my problem. I want to start and leave the HDView in full screen mode, so that without a keyboard and without icons, it will be impossible to leave it. But trying to add a FullScreen property and set it to true does not seem to work. HDView is not started in full screen mode.

    Is there a solution?

    Ariel

     

     

    Friday, June 4, 2010 8:55 PM