WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-29-2009, 11:10 AM
hosier hosier is offline
Member
 
Join Date: Feb 2007
Posts: 31
vizmenu tweak

I was wondering if anybody has done or knows how to tweak vizmenu as I describe below.

In my program I've decided to leave up the menu all the time, as some people didn't get the concept of hovering over it to bring it up. So, I've set autohide to off for the overall menu bar.

One of my drop down menus kicks off an action, and because the drop down doesn't go away until you click somewhere outside of the menu, you didn't always see the action. I've changed that by adding a setVisible to off for that particular dropdown menu it the function that handles that menu. Now the menu goes away as soon as a button is selected, and all is well.

What that menu does is select a model to allow the user to move, rotate and get information about the selected model. Originally I used the arrow keys to move the model up,down,left and right, but of course everybody tries to use the mouse to do this, even though they are presented with instructions when the program begins that tells them to use the arrow keys.

Using some drag code I found in and old forum post, I've added dragging of the model using the left mouse button (the right button currently controls rotation).

The problem I'm having is that since I'm not autohiding the menu and have just performed the setvisible to off on the one drop down menu, the menu system still has the left mouse button bound for 1 click like you'd normally have to do to close the menu. When the mouse button is clicked the second time, then my left mouse button handler is called.

Is there someway in vizmenu to clear/reset the state or make it think the left mouse button has been clicked so that its handler isn't called? I do know that if I hide the entire menu bar with a setvisible, the state is cleared out, but I'd really like to leave the menu up at all times. I did try setting the menu not visible and then visible again, but with the same result.

If not, then I'll leave it using the arrow keys or maybe use some right mouse key combo to select between moving and rotating.

Thanks.

Aaron

Last edited by hosier; 06-29-2009 at 11:12 AM. Reason: more information
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VizMenu still in focus after calling setVisible Gladsomebeast Vizard 2 12-02-2008 08:47 PM
Vizmenu slider bug? Gladsomebeast Vizard 2 10-22-2008 09:05 PM
VizMenu aspect Jerry Vizard 1 07-09-2007 11:59 AM


All times are GMT -7. The time now is 05:35 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC