Anchor windows don't autohide in drawing control

R

Roger

Hi all
I'm testing the Visio 2003 drawing control in VB 2005 and anchor windows
don't seem to autohide. This problem applies both to my own anchor form and
to the standard Visio anchor forms like Size and Position and Custom
Properties.

Does anyone know if there's a property or something I need to change in the
drawing control?
Many thanks
Roger Billsdon
 
R

Roger

Hi All
I've now found that anchor windows do autohide in the Visio SDK 2003 Office
Plan C# sample and in a VB6 sample program I've quickly put together to host
the Visio 2003 drawing control. Also as well as my VB2005 program anchor
windows do not autohide in the C# example code that accompanies Graham
Wideman's Visio 2003 Developer's Survival Pack book.

I've compared the versions of the drawing control that each of these
programs is using, etc and I've gone through the C# code for Visio SDK Office
Plan sample in some detail and I've not been able to spot anything in the
code or settings that could be enabling autohide to work in this sample but
not in Graham Wideman's or my VB2005 program.

Does anyone have any useful hints or thoughts?
Many thanks
Roger Billsdon
 
R

Roger

Hi All
After a long process of elimination, I've now found that if the Visio
drawing control is placed within a container (e.g. a panel) anchor windows in
the drawing control do not autohide. If the drawing control is placed
directly in the top-level form, anchor windows (e.g. Size and Position and
Custom Properties) work as they should and do autohide.

Can anyone think of a work-around for Visio drawing controls that are held
within a container?
Many thanks
Roger Billsdon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top