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 » Community » Newbie corner » GridCtrl column's .Edit
GridCtrl column's .Edit [message #31530] Fri, 11 March 2011 11:44 Go to previous message
Wlad is currently offline  Wlad
Messages: 20
Registered: February 2010
Location: Ukraine, KharkOv
Promising Member

I want to reset the instance of GridCtrl every time (and frequently Smile )
The main purpose of sucj behavior is to tune GridCtrl to many different float 2d arrays with different sizes.

I do such sequence of actions:

...
grid.Clrear(true);
....
grid. .... .Editing()..SelectRow(false). ...
...
//bla-bla-bla
....
//-------------------
static void SetGridTHeader( GridCtrl& grid, float* t, int tCount, Ctrl& ctrl )
{
for( int i = 0; i < tCount; ++i )
{
float value = t[i];
grid.SetFixed( 0, i+1,::FormatDoubleFix(value, 0, /*FD_SIGN|*/FD_ZERO) );
grid.GetColumn( i ).Edit( ctrl );
}
}
Note! All cells are of float type.
The upmost row (header) is the set of temperature.
The "working cells" are any coefficients used in my application.
Is it right way (ctrl may be the same instance for all columns) or I MUST to pass to .Edit DIFFERENT instances of EditDouble?

[Updated on: Fri, 11 March 2011 11:48]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Some code to add an icon in statusbar
Next Topic: Error: gdkpixbuf.h
Goto Forum:
  


Current Time: Sun May 19 20:39:45 CEST 2024

Total time taken to generate the page: 0.01918 seconds