Jump to content


Photo

Issue with VertScrollBar.Position.


  • Please log in to reply
1 reply to this topic

#1 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 02 December 2017 - 02:32 AM

Hi Boki,

 

If I add a TNextGrid component to a form and check the value of VertScrollBar.Position it displays the correct position.

 

I have created a base class that uses TNextGrid.  The grid itself is on a form and is assigned to the class.  The class's job is to manage the grid (set properties, populate the grid with data, set column images, handle cell formatting, etc).

 

When I create a class that is inherited from this base class, the VertScrollBar.Position property always returns 0 in the descendent class no matter what the position of the vertical scroll bar is.  Other properties (and methods and events) seem to work fine.

 

Regards,

 

Steve



#2 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 02 December 2017 - 03:09 AM

Never mind, it was a bug in my code.  :wacko:






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users