Hide HDView Interactive Icons
-
2010年5月27日 15:40
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?
すべての返信
-
2010年6月1日 16:57
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
-
2010年6月1日 20:23
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
-
2010年6月3日 16:44
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
-
2010年6月4日 20:55
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