CGXTabbedComboBox::AddUserAttributes
static void AddUserAttributes(CGXStylesMap* stylesMap);
stylesMap
Points to the styles-map object.
Remarks
Call this static method to register user attributes with the styles-map. Registered user attributes will be displayed in the CGXStyleSheet and can be modified by the user with the style sheet.
If you don't want the attributes to be visible in the CGXStyleSheet, you should not call AddUserAttributes. You will still be able to use user attributes in your grid. They will only be hidden from the user in the CGXStyleSheet.
Following user attributes will be registered:
-
GX_IDS_UA_TABLIST_TEXTCOL
-
column contains the text to be displayed as text in the cell
-
GX_IDS_UA_TABLIST_KEYCOL
-
column contains text to be stored as value in cell
-
GX_IDS_UA_TABLIST_SHOWALLCOLS
-
all columns shall be shown or only the column with the display text (e.g. if you want to hide the value from the user)
-
GX_IDS_UA_TABLIST_TITLEROW
-
the first row should be used for displaying column headers
-
GX_IDS_UA_TABLIST_COLWIDTHS
-
widths in pixels; Example: "50,200,90"
-
(if GX_IDS_UA_TABLIST_COLWIDTHS is empty), the optimal column width is computed based on the text size in the entries of each column.
-
GX_IDS_UA_TABLIST_SORTCOL
-
sort the drop down table by the specified column.
-
GX_IDS_UA_TABLIST_CHOICELISTID
-
a unique integer id to this attribute, you can speed up tabbed comboboxes a lot because then the choice list string can be reused among different cells and does not have to be reloaed for every different cell. The AttachForeignTable call (dao and odbc grid) takes advantage of this new user attribute.
- AlsoCGXAbstractControlFactory::RegisterAllUserAttributes, CGXStylesMap::AddUserAttribute