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 #15955 is a reply to message #15951] Mon, 19 May 2008 19:56 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

cbpporter wrote on Mon, 19 May 2008 12:04

Thanks for the help! GridCtrl is a complex and feature rich control (even if a little daunting with it's shear amount of members), and after some experimenting I think I'll manage with it. Anyway congratulations for the nice design of the class. Using this I'm sure to save a few days work of producing a quality list control.


Thanks. Of course partially class design is borrowed from ArrayCtrl. I think the main reason it's not widly used is lack of documentation. Fortunately this is gonna change soon.
Quote:


I have some questions still:
1. How do you hide the header?
2. How can I make it select only one cell on click and use left & right arrow keys for navigation?


1. Use HideRow(0) or Header(false) which I've just added Smile In both cases please use the newest version of gridctrl as I did some fixes needed to make your case work properly.
2. SelectRow(false);
Quote:


That doesn't seem to compile. Never mind though, I used JoinRow directly on the grid and it worked.


Yes, you're right. It should be grd.Add(..).JoinRow. AddRow returns reference to ItemRect so you are able to write something like this: grid.AddRow(..).Bg(Yellow).SetFont(Arial(7)) etc.
  • Attachment: GridCtrl.7z
    (Size: 73.28KB, Downloaded 381 times)

[Updated on: Mon, 19 May 2008 21:15]

Report message to a moderator

 
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 21 01:01:29 CEST 2025

Total time taken to generate the page: 0.05857 seconds