Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: How to Get DoubleClick event In medicalviewer
Started by sakthi at 06-16-2008 6:16. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  06-16-2008, 6:16
sakthi is not online. Last active: 10/14/2008 8:10:11 AM sakthi

Top 50 Posts
Joined on 05-09-2008
Posts 47
How to Get DoubleClick event In medicalviewer
Reply Quote
Hi,
I am using Leadtools V.15 ,I would like to use doubleclick event in medicalviewer..How to get this event....As mousedown,mousemove and mouseup  events  I need to use  Medicalviewer_DoubleClick event in medicalviewer demo .....Please help me..
thanks
Sakthi



   Report 
  06-16-2008, 8:01
Joshua is not online. Last active: 11/13/2008 2:29:06 PM Joshua



Top 25 Posts
Joined on 03-12-2008
Munich, Germany
Posts 69
Re: How to Get DoubleClick event In medicalviewer
Reply Quote
Simply attach an event handler like so:

m_medicalViewer.CellMouseClick += new EventHandler<MedicalViewerCellMouseEventArgs>(m_medicalViewer_CellMouseClick);

and query the Clicks value of the MedicalViewerCellMouseEventArgs property, like so:

        void m_medicalViewer_CellMouseClick(object sender, MedicalViewerCellMouseEventArgs e)
        {
            if (e.Clicks == 2)
            {
                // do processing here
            }
        }

   Report 
  06-17-2008, 1:21
sakthi is not online. Last active: 10/14/2008 8:10:11 AM sakthi

Top 50 Posts
Joined on 05-09-2008
Posts 47
Re: How to Get DoubleClick event In medicalviewer
Reply Quote
thanks for replying ....Its working fine...
I would like the resize the image size to full medicalviewer Size....how to do it...I have used FitToCell....but its not working...

code which have used........
_medicalviewer.Cells(e.cellIndex).fittocell=true


how to make the selected image to full viewer size ,similar to medicalviewer.Column=1 and medicalviewer.Row=1.size....

Please help me out
thanks in advance
Sakthi


   Report 
  06-17-2008, 10:25
Adam Boulad is not online. Last active: 11/20/2008 3:23:08 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 513
Re: How to Get DoubleClick event In medicalviewer
Reply Quote

Sakthi,

If you set both the column and row to 1, the cell will fill the viewer control. Does this work for you?


Adam Boulad
LEADTOOLS Technical Support

   Report 
  06-18-2008, 1:16
sakthi is not online. Last active: 10/14/2008 8:10:11 AM sakthi

Top 50 Posts
Joined on 05-09-2008
Posts 47
Re: How to Get DoubleClick event In medicalviewer
Reply Quote
Ya , Its working when I set Both the column and row to 1 but the probs is when I doubleclick on 2nd (index=1) image and setting column and row to 1 then instead of the selected image (i.e index=1), first image in the viewer  is displayed (index=0).I want the the selected image (i.e index =1) should be displayed in Column & row =1 format..

Please suggest me ...what should i set....to display the selected image to view in Column & row =1 format..when i double click..

Thanks in advance
Sakthi

   Report 
  06-18-2008, 11:58
Adam Boulad is not online. Last active: 11/20/2008 3:23:08 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 513
Re: How to Get DoubleClick event In medicalviewer
Reply Quote

to make the cell with the index 1 visible, you can use the MedicalViewer.VisibleRow Property.

For example, if you want to show the 5th cell, you can use the code below (in VB.NET):

 

medicalViewer1.Rows = 1

medicalViewer1.Columns = 1

MedicalViewer1.VisibleRow = MedicalViewer1.Cells(4).Position.Row


Adam Boulad
LEADTOOLS Technical Support

   Report 
  06-19-2008, 0:30
sakthi is not online. Last active: 10/14/2008 8:10:11 AM sakthi

Top 50 Posts
Joined on 05-09-2008
Posts 47
Re: How to Get DoubleClick event In medicalviewer
Reply Quote
thanks ....its working fine ....

   Report 
Post
LEAD Support Fo... » Developer » DICOM/Medical I... » Re: How to Get DoubleClick event In medicalviewer

Powered by Community Server, by Telligent Systems