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 » To set data in GridCtrl's Indicator
To set data in GridCtrl's Indicator [message #37809] Wed, 14 November 2012 11:07 Go to next message
koldo is currently offline  koldo
Messages: 2991
Registered: August 2008
Veteran
Hello Daniel

Now the GridCtrl's Indicator show a thin column colored like the header cells.

In the same way that it is possible to set a text in the column headers, it would be great if a text could be set in the Indicator cells.

This way we could have a more spreadsheet like GridCtrl look, useful in some cases.


Best regards
Iñaki
Re: To set data in GridCtrl's Indicator [message #38140 is a reply to message #37809] Sun, 02 December 2012 16:51 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1354
Registered: November 2005
Location: Poland
Senior Contributor

I added SetAny (similarly to SetRaw it has access to any column, row but also sets embedded controls and refreshes the cell) and SetIndicator which allows to set text for indicator. Example:
grid.Indicator(true, 100);
grid.SetIndicator(5, "Ultimate++");

Second line sets text for indicator in row 5. If text is displayed indicator's icon is aligned to the left instead of to the center.
If you need something beyond that please write.
Re: To set data in GridCtrl's Indicator [message #38165 is a reply to message #38140] Mon, 03 December 2012 08:16 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 2991
Registered: August 2008
Veteran
Smile

Best regards
Iñaki
Re: To set data in GridCtrl's Indicator [message #38452 is a reply to message #38165] Tue, 18 December 2012 06:36 Go to previous message
koldo is currently offline  koldo
Messages: 2991
Registered: August 2008
Veteran
A detail to remember is that SetIndicator() sets the internal row not the visible row.

I mean:
SetIndicator(0, "First row");
SetIndicator(1, "Second row");

will show only "Second row" in the first row.


Best regards
Iñaki
Previous Topic: ArrayCtrl Xmlize
Next Topic: ArrayCtrl vs GridCtrl
Goto Forum:
  


Current Time: Sun Sep 22 07:57:19 CEST 2019

Total time taken to generate the page: 0.00718 seconds