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 » How to create a GridCtrl with fixed cell size
Re: How to create a GridCtrl with fixed cell size [message #16044 is a reply to message #16027] Sat, 24 May 2008 19:17 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
I think I've found a bug. What you need to reproduce is:
1. A window with a Layout method which clear the contents of a grid and then populates it with a number of N items.
2. Two Buttons or other event dispatchers. The first will set N to a low number so that the grid doesn't require a scrollbar. The second set N do that the grid would display a scrollbar. Both call Layout after setting N.

You need to click the first button, then the second, then the first again. At the second click on the first button, when repopulating the grid that formerly had a scrollbar and now no longer needs to have one, GetSize returns a different cx for the grid. During the entire operation, the grid remains the same size, so I believe GetSize should not change.

I'm sorry for not providing a test case, but I'm dead tired right now. I'll post one tomorrow.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bad align of an optionbutton in gridctrl
Next Topic: GridCtrl - copy all [Feature Request]
Goto Forum:
  


Current Time: Sat Jun 08 15:59:59 CEST 2024

Total time taken to generate the page: 0.02997 seconds