Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Get number of displayed rows in gridctrl
Get number of displayed rows in gridctrl [message #23023] Tue, 08 September 2009 15:55 Go to next message
darthspawn is currently offline  darthspawn
Messages: 58
Registered: February 2009
Member
Hello, it's me again Smile

There is the possibility to have the number of the displayed rows? (for example, if I do a resize of my window, a GridCtrl of 30 rows was resized and is possible see only 20 rows)

I need to do an automatic centering when I do a resize. Thanks!

Sam
Re: Get number of displayed rows in gridctrl [message #23026 is a reply to message #23023] Tue, 08 September 2009 20:51 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

darthspawn wrote on Tue, 08 September 2009 09:55

Hello, it's me again Smile

There is the possibility to have the number of the displayed rows? (for example, if I do a resize of my window, a GridCtrl of 30 rows was resized and is possible see only 20 rows)

I need to do an automatic centering when I do a resize. Thanks!

Sam

Unfortunately not. But if you can't wait for my commit to svn just add this method to gridctrl:
int GetDisplayedCount() { return lastVisRow - firstVisRow + 1 }
Re: Get number of displayed rows in gridctrl [message #23032 is a reply to message #23026] Wed, 09 September 2009 16:17 Go to previous message
darthspawn is currently offline  darthspawn
Messages: 58
Registered: February 2009
Member
Thanks a lot! now, how can I set the center of visualization? I don't have ScrollInto(int) like in arrayctrl.

Thanks again, and sorry for all this questions! Smile

Sam

[Updated on: Wed, 09 September 2009 16:18]

Report message to a moderator

Previous Topic: White space on a arrayctrl cell
Next Topic: Drag&drop in GridCtrl
Goto Forum:
  


Current Time: Mon Apr 29 04:45:27 CEST 2024

Total time taken to generate the page: 0.02897 seconds