grashopper
06-11-2001, 09:56 AM
I'm working with Visio and I'm trying to program the menu to refresh when someone clicks on a different page. To do this I put the following code in my general declarations :
Dim WithEvents WindowObj As Visio.Window
This got WindowObj as an object on the drop down menu and listed all its procedures in the other drop down menu
From there, there are 2 possiblities events that I could see that should have worked for what I want
-SelectionChanged
-WindowTurnedToPage
Sounds easy right? But those event never fire that I can see. I've tried setting break points and such but they never trip. I didn't know if there is something else I need to do? I've never used the WithEvents keyword before so I don't know if there's something else I have to do before the events it brings forward are accessible? Any help is very much appreciated. Thanks
<P ID="edit"><FONT class="small"><EM>Edited by grashopper on 06/11/01 11:01 AM.</EM></FONT></P>
Dim WithEvents WindowObj As Visio.Window
This got WindowObj as an object on the drop down menu and listed all its procedures in the other drop down menu
From there, there are 2 possiblities events that I could see that should have worked for what I want
-SelectionChanged
-WindowTurnedToPage
Sounds easy right? But those event never fire that I can see. I've tried setting break points and such but they never trip. I didn't know if there is something else I need to do? I've never used the WithEvents keyword before so I don't know if there's something else I have to do before the events it brings forward are accessible? Any help is very much appreciated. Thanks
<P ID="edit"><FONT class="small"><EM>Edited by grashopper on 06/11/01 11:01 AM.</EM></FONT></P>