class CGXCurrencyEdit: public CGXBCurrencyEdit, public CGXStatic
The CGXCurrencyEdit class implements a currency control cell type which can be used to display and enter currency values. CGXCurrencyEdit derives drom CGXBCurrencyEdit (CGXB refers to CGX Base). CGXBCurrencyEdit is largely based on the currency control that ships with Objective Toolkit.
Style attributes which specify the appearance of the cell are:
-
Text with SetValue.
-
Text color with SetColor.
-
Background color with SetInterior.
-
Cell frame 3d-effect (raised, inset, normal) with SetDraw3dFrame.
-
Borders with SetBorder.
-
Font with SetFont
- other user attributes define important characteristics of the CGXCurrencyEdit. They are defined and explained in detail under the description for CGXCurrencyEdit::AddUserAttributes.
Use the GX_IDS_CTRL_CURRENCY id for applying a currency control to a cell.
Example:
SetStyleRange(CGXRange(1,1), CGXStyle().SetControl(GX_IDS_CTRL_CURRENCY));
#include <gxall.h>
See Also
CGXGridCore::RegisterControl CGXStyle::SetControl CGXStyle CGXCurrencyEdit::AddUserAttributes