Shape Events (newby) 
Author Message
 Shape Events (newby)

Hi,
    What is the most efficient way to handle a double-
click event on a shape object?  How do you do that?

I tried CALLTHIS("ThisDocument.Test") but it does not work.
I tried RUNADDON("ThisDocument.Test") and it does work.!

What I want to do is performing some vb code related to
the shape clicked so I need to know which one was clicked.

Why don't they put a shape object event doubleclick !!!

Thank You



Tue, 21 Dec 2004 04:19:42 GMT  
 Shape Events (newby)
Try moving you code to a new module, ie NOT ThisDocument (which is actually
is a class)

By the way, for call this you MUST have a public sub with a t least the
first argument as a Viso.Shape object.


Quote:
> Hi,
>     What is the most efficient way to handle a double-
> click event on a shape object?  How do you do that?

> I tried CALLTHIS("ThisDocument.Test") but it does not work.
> I tried RUNADDON("ThisDocument.Test") and it does work.!

> What I want to do is performing some vb code related to
> the shape clicked so I need to know which one was clicked.

> Why don't they put a shape object event doubleclick !!!

> Thank You



Tue, 21 Dec 2004 16:32:55 GMT  
 Shape Events (newby)

Quote:

>Hi,
>    What is the most efficient way to handle a double-
>click event on a shape object?  How do you do that?

>I tried CALLTHIS("ThisDocument.Test") but it does not work.
>I tried RUNADDON("ThisDocument.Test") and it does work.!

With CALLTHJIS, the Test must take a Visio.Shape as an argument;
with RUNADDON, it must take no arguments at all.
You never get warnings when doing it wrong, but it is documented.

--
Reinier



Sat, 01 Jan 2005 23:53:24 GMT  
 Shape Events (newby)

Quote:

>Hi,
>    What is the most efficient way to handle a double-
>click event on a shape object?  How do you do that?

>I tried CALLTHIS("ThisDocument.Test") but it does not work.
>I tried RUNADDON("ThisDocument.Test") and it does work.!

With CALLTHIS, the Test must take a Visio.Shape as an argument;
with RUNADDON, it must take no arguments at all.
You never get warnings when doing it wrong, but it is documented.

--
Reinier



Sat, 01 Jan 2005 23:55:47 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Help a newby with finding the time between events

2. Shapes shapes shapes

3. Event notification after shapes are grouped

4. Clearing shape event formula

5. setting macro for shapes dblclick event at runtime

6. (Event to) Detect shape position changes

7. Does the shape object has a doubleClick event?

8. Any Event on selecting a shape?

9. Event in VBA that starts only if I select a specific shape

10. Recognizing deleted shapes and sinking events

11. Shape events in Visio

12. What event to capture when a shape changes

 

 
Powered by phpBB® Forum Software