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 |
|
koldo
Messages: 3355 Registered: August 2008
|
Senior 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 |
|
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 #38452 is a reply to message #38165] |
Tue, 18 December 2012 06:36 |
|
koldo
Messages: 3355 Registered: August 2008
|
Senior 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
|
|
|
Goto Forum:
Current Time: Fri Mar 29 17:00:31 CET 2024
Total time taken to generate the page: 0.01832 seconds
|