Modify Popup menu to change current tool ?

A

art

Hi,
I am hoping to not have to spend hours perusing examples of visio vba
code , google posts and documentation to achieve something that should
be trivial. I'll probably end up wasting a day on this, so thanks in
advance for any help.

I use a tablet pc with visio and think that visio is a fantastic if
not the best tablet pc piece of software. I would like however the
right mouse popup menu in the document window to have some of the
toolbar tools available for selection. I'd like to be able to right
mouse and change between an standard ink pen , 2 out of 3 selectors ,
and the pen eraser tools. Plus have this functionality automatically
start when I run visio. I know it is possible and since I am not an
expert I am hoping someone can point me in the right direction at
least.

cheers,
art
 
A

Al Edlund

well, let's kinda put our arms around what I think I read,

"examples of visio vba code" - infers that you want to write it in vba which
conflicts with "Plus have this functionality automatically start when I run
visio". The reason is that vba runs in a document, so you would have open
the same document template everytime. To reach the objective of "opens when
visio starts" would suggest you should investigate writing it as as an
addin.

The desire to create custom menus is doable with examples in the visio sdk.

al
 
A

art

Hi Al,

Thanks for the reply! You have flushed out my problem a little
further. I did not know about addins and that they have persistence. I
am not sure what you mean about a template. Does that mean all
documents derived from a template would inherit the vba code ?

Well, I still do not know what I want or need. If some other addin
language works and does not need a compiler I'd be happy with that. If
it comes to loading a macro vb script each time i open certain files ,
I could live with that but I prefer to make it persistent.

Okay I believe you are probable right about it being doable with the
sdf examples, so that is a big help . It gives me the confidence to
try it. I spend hours making a silly script work that will load in
directory of images and put four images per autocreated page. I am not
a great vba programmer but with examples and a lot of (this is
hopefully where the usenet group maybe helpful) hacking around time
I'll probably arrive at something.

Art
 
A

Al Edlund

A couple of more comments
1. add-ins do require compilers.
2. vba code can live in stencils, stencils do not have to have shapes
associated with them. That means when you want your code you can open your
'custom' stencil with it's embedded vba.
3. yes, documents dervied from templates inherit the code (at least last
time I looked).
al
 

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