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 access Fixed Columns? (Accessing Fixed Columns)
How to access Fixed Columns? [message #52887] Thu, 02 January 2020 18:08 Go to next message
xynkfrost is currently offline  xynkfrost
Messages: 2
Registered: January 2020
Junior Member
Hi! I'm just wondering how will I be able to access the fixed columns in GridCtrl. I used SetFixedCols(1) but everytime I use grid.GetColumns(0), it returns the 2nd column.

Does anyone know how to access the fixed columns? It would be a big help!
Re: How to access Fixed Columns? [message #52890 is a reply to message #52887] Thu, 02 January 2020 22:29 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1356
Registered: November 2005
Location: Poland
Senior Contributor

You can use GetRaw(int r, int c) to get the value, but if you would like to access ItemRect there is no way currently. If you want to customise painting fixed cells you can do:
class MyDisplay: public GridDisplay {
   void PaintFixed(....) {
       ... your custom painting code...
   }
}

GridCtrl ctrl;
MyDisplay myDisplay;
ctrl.SetDisplay(myDisplay);


Hope that will help you Smile
Re: How to access Fixed Columns? [message #52891 is a reply to message #52890] Fri, 03 January 2020 04:19 Go to previous message
xynkfrost is currently offline  xynkfrost
Messages: 2
Registered: January 2020
Junior Member
It helped a lot! Thank you so much!
Previous Topic: How to create a Ctrl on selection?
Next Topic: ArrayCtrl::SetClipboard does not set \r\n in rows
Goto Forum:
  


Current Time: Sun Jun 07 01:47:19 CEST 2020

Total time taken to generate the page: 0.01234 seconds