Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » FormulaGrid bug? Collapse All
Subject Author Date
Antonio Pelli Neto Aug 27, 2009 - 6:58 AM

Hello,<o:p></o:p>


If you uncomment the line 1682 from the ChildView.cpp (CExtGridCellCurrency), on the FormulaGrid sample, you will get an assert in the debug mode. The same assert will occur if you run the sample, select the cell (9,2) and try to change the check box control from checked to unchecked using the keyboard (space).<o:p></o:p>


Dispite ot these problems, the Formula Grid is a great piece of code and very useful.


Pelli

Technical Support Aug 27, 2009 - 1:08 PM

The following commented line of code is really present in the FormulaBar sample application and if you uncomment it, then it will perform the incomplete initialization of the currency grid cell:

 GridCellGet( 9L, 10L, 0, 0, RUNTIME_CLASS(CExtGridCellCurrency) );

The CExtGridCellCurrency grid cell class is the OLE VARIANT data structure based grid cell. This grid cell class simply uses the OLE currency editor control for in-place grid cell editing. Please perform the complete initialization of the currency grid cell to avoid assertions:
COleCurrency oleCurrency( 0L, 0L );
      ((CExtGridCellCurrency*)GridCellGet( 9L, 10L, 0, 0, RUNTIME_CLASS(CExtGridCellCurrency) ))->_VariantAssign( oleCurrency );


Antonio Pelli Neto Aug 27, 2009 - 2:10 PM

Ok, Thank You.