Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, March 27, 2008 12:14:24 AM(UTC)
leftback

Groups: Registered
Posts: 28


Is there a way to do this programatically?

I need this so that I can temprarily save this actionType and then role back to it later!

Thanks!
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, March 27, 2008 5:15:15 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


The MedicalViewer class doesn't have a specific method that does this, but you could loop through all of the different types to see which one is currently using the left mouse button.  Here's a C# code snippet that shows this:


MedicalViewerActionType currentLeftMouseAction = MedicalViewerActionType.None;

foreach (MedicalViewerActionType type in Enum.GetValues(typeof(MedicalViewerActionType)))
{
    if (medicalViewer1.GetActionButton(type) == MedicalViewerMouseButtons.Left)
    {
        currentLeftMouseAction = type;
        break;
    }
}

MessageBox.Show(currentLeftMouseAction.ToString());


 
#3 Posted : Friday, March 28, 2008 4:08:12 AM(UTC)
leftback

Groups: Registered
Posts: 28


thats brilliant - thanks
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.044 seconds.