Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Scroll in a TableNode (Read 2764 times)
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Scroll in a TableNode
Mar 26th, 2009 at 3:48pm
Print Post  
Hi,

I love the scroll buttons in the TableNodes, but how can I now when a TableNode has more rows than shown ?? I mean, know when there are hidden rows and you need scroll to see them.

Would be nice have something similar to "TableNode.CurrentScrollRow" but  "TableNode.CurrentShownRows" that returns the amount of shown rows in that moment, so you could compare with the total.

Cheers.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Scroll in a TableNode
Reply #1 - Mar 27th, 2009 at 7:34am
Print Post  
Hi,

At this time you could use CellFromPoint to find the index of the last visible row. Pass the lower-left point of the table as the first argument.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: Scroll in a TableNode
Reply #2 - Mar 30th, 2009 at 11:45am
Print Post  
Great, thanks.
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: Scroll in a TableNode
Reply #3 - Apr 7th, 2009 at 11:16am
Print Post  
CellFromPoint returns a cell, but with a cell object there is no way to know to which row belongs.

So, how could I ensure that all rows in a TableNode are shown?

Cheer.s
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Scroll in a TableNode
Reply #4 - Apr 7th, 2009 at 2:42pm
Print Post  
Use this overloaded method:

public bool CellFromPoint (
    Point point,
    bool isDiagramCoordinate,
    ref int row,
    ref int col
)

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint