Visio Guy

Visio Discussions => Programming & Code => Topic started by: MacGyver on April 30, 2014, 06:28:28 PM

Title: Warning Pop Up Method
Post by: MacGyver on April 30, 2014, 06:28:28 PM
Anybody know what this warning dialog is called?  I'd like to use this type of pop up in an add in I'm creating, I just have no idea how to call it.
It's nice because it disappears immediately after the user clicks anywhere on the computer.

(http://i.imgur.com/ouxyh3P.png)
Title: Re: Warning Pop Up Method
Post by: Paul Herber on April 30, 2014, 07:31:34 PM
I've only ever seen this type with Visio's internal messages. I don't think it is available from the API.
Title: Re: Warning Pop Up Method
Post by: AndyW on May 01, 2014, 07:31:14 AM
You will need to use your own form and handle this yourself.

If done in VBA, simplest would be to use a timer on the form and periodically call GetAsyncKeyState (Win API) to determine mouse click etc.

If VB6 (or .Net), the you could have a form and handle mouse click withing the form or the lost focus event if mouse is clicked outside.