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 can I recieve notification when the MedicalViewer.VisibleRow value changes?
Started by Joshua at 05-13-2008 5:38. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  05-13-2008, 5:38
Joshua is not online. Last active: 6/24/2008 2:59:46 PM Joshua



Top 25 Posts
Joined on 03-12-2008
Munich, Germany
Posts 54
How can I recieve notification when the MedicalViewer.VisibleRow value changes?
Reply Quote
I am drawing a custom control on top of a cell and need to know the exact position of the cell on the screen. I have this working correctly, and can subscribe to the MedicalViewer.ClientSizeChanged event to reposition my control when the viewer is resized to ensure it stays in the correct relative position, however when the viewer is scrolled (and a new cell takes the position of the one my control was sitting over) I need to hide my custom control (and likewise, show it again if it's associated cell is scrolled back into view).

I can't see any event to notifiy me that the viewer is being scrolled and was hoping someone would be able to tell me how this can be achieved. There are the Layout and Paint events exposed by the MedicalViewer control but they occur way to frequently and the performance overhead of acting on them is killing me.

Josh.

   Report 
  05-13-2008, 11:19
Adam Boulad is not online. Last active: 6/22/2008 2:09:06 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 335
Re: How can I recieve notification when the MedicalViewer.VisibleRow value changes?
Reply Quote

Josh,

The MedicalViewer currently does not have a scroll event. You may be able to use the ActiveSubCellChanged event instead.

Please tell me if you face any problems.
Adam Boulad
LEADTOOLS Technical Support

   Report 
  05-13-2008, 13:34
Joshua is not online. Last active: 6/24/2008 2:59:46 PM Joshua



Top 25 Posts
Joined on 03-12-2008
Munich, Germany
Posts 54
Re: How can I recieve notification when the MedicalViewer.VisibleRow value changes?
Reply Quote
Hi Adam,

That's a bit of a shame. I don't expect the ActiveSubCellChanged event to help since I'm not using SubCell's. After your answer I spent the day coding away on a workaround which is now working. I've intercepted the MedicalViewer message pump and am catching the WM_VSCROLL message then figuring out what the scroll change will be. It was a pretty heafty bit of coding!

Thanks anyway,

Josh.

   Report 
  05-14-2008, 10:40
Joshua is not online. Last active: 6/24/2008 2:59:46 PM Joshua



Top 25 Posts
Joined on 03-12-2008
Munich, Germany
Posts 54
A MedicalViewer.VisibleRowChanged event
Reply Quote
That would be real handy to have. :)

   Report 
  05-14-2008, 11:26
Adam Boulad is not online. Last active: 6/22/2008 2:09:06 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 335
Re: How can I recieve notification when the MedicalViewer.VisibleRow value changes?
Reply Quote

Josh,

I guess the workaround you created is similar in some ways to sub-classing the control, which is the solution in case of using the Windows API edition of the control. I did not suggest this solution because I don't have a code sample for it, and like you found out, creating one is not an easy task.

If sub sell event doesn't work for you because you scroll full cells, and you prefer to have a native .NET scrolling event, send an email to support@leadtools.com and mention this post and I will submit a feature request.

Also include the following information:
1. The company (organization) name you work for.
2. The LEADTOOLS serial number(s) you own (if you own one).
3. The name(s) of the developer(s) using the serial number (the official name).


Adam Boulad
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » DICOM/Medical I... » Re: How can I recieve notification when the MedicalViewer.VisibleRow value changes?

Powered by Community Server, by Telligent Systems