<< Return to Main Index

< Return to Class Index

class CGXControlFactory: public CGXAbstractControlFactory

CGXControlFactory is the default implementation of the Objective Grid Control Factory Class. The Control Factory Class is linked into the library and serves as default Control Factory Class for all your applications. Applications can provide an individual Control Factory Class or use the default Control Factory Class provided by the library.

CGXControlFactory will typically be allocated when you call GXInit in your application’s InitInstance method. If you call the default version of GXInit without specifying any reference to a special CGXAbstractControlFactory-derivative, GXInit will allocate and register an object of this CGXControlFactory class.

Use Objective Grid Build Wizard to customize the default Control Factory Class. The Objective Grid Build Wizard lets you customize the Objective Grid libraries to your needs. The Build Wizard allows you to link only those features you really want to use into the library and exclude any unwanted features and cell types. The Build Wizard automatically generates a makefile for building a custom library and DLL based on your settings. Other files generated by Build Wizard are header files with configuration information and the Control Factory Class file.

See the section "Reducing the size of your application" in the User's Guide for more information about the Build Wizard.

By default CGXControlFactory::CreateControl will create the following cell types on demand when you use them in your grids:

GX_IDS_CTRL_EDIT        "Edit Control"
GX_IDS_CTRL_STATIC      "Static Text"
GX_IDS_CTRL_PUSHBTN     "Pushbutton"
GX_IDS_CTRL_RADIOBTN    "Radio Buttons"
GX_IDS_CTRL_CHECKBOX    "Checkbox, 1/0"
GX_IDS_CTRL_COMBOBOX    "ComboBox, no text-fit"
GX_IDS_CTRL_HOTSPOT     "Hotspot Edit"
GX_IDS_CTRL_SPINEDIT    "Spin Edit"
GX_IDS_CTRL_HEADER      "Header"
GX_IDS_CTRL_SCROLLEDIT  "Edit Control, Scrollbar"
GX_IDS_CTRL_LISTBOX     "Listbox"
GX_IDS_CTRL_CHECKBOX3D  "Checkbox, 3d-Effect"
GX_IDS_CTRL_RADIOBTN3D  "Radio Buttons, 3d-Effect"
GX_IDS_CTRL_ZEROBASED   "ComboBox, zero-based"
GX_IDS_CTRL_ONEBASED    "ComboBox, one-based"
GX_IDS_CTRL_TEXTFIT     "ComboBox, text-fit"
GX_IDS_CTRL_CBS_DROPDOWN "MFC ComboBox"
GX_IDS_CTRL_CBS_DROPDOWNLIST "MFC DropDownList"
GX_IDS_CTRL_ONEBASED_EX "Combo, disp.choice, 1-base"
GX_IDS_CTRL_ZEROBASED_EX "Combo, disp.choice, 0-base"
GX_IDS_CTRL_BROWSEARROWHEADER "Row Header"
GX_IDS_CTRL_RICHEDIT    "Rich Edit"
GX_IDS_CTRL_MASKEDIT    "Masked Edit"
GX_IDS_CTRL_PROGRESS    "Progressbar"
GX_IDS_CTRL_PASSWORD    "Password Edit"
GX_IDS_CTRL_CBS_TABBED_DROPDOWN "Tabbed MFC ComboBox"
GX_IDS_CTRL_CBS_TABBED_DROPDOWNLIST "Tabbed MFC DropDownList"
GX_IDS_CTRL_TABBED_COMBOBOX "Tabbed ComboBox"
GX_IDS_CTRL_CHECKLIST_COMBOBOX "Dropdown CheckListBox"
GX_IDS_CTRL_DATETIME    "Date Time Control with popup calendar"
GX_IDS_CTRL_DATETIMENOCAL "Date Time control without calendar"

#include <gxall.h>

See Also

GXInit CGXAbstractControlFactory CGXAbstractControlFactory::CreateControl