CGXTabbedComboBoxWnd::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.

The following user attributes will be registered:

  • GX_IDS_UA_TABLIST_TEXTCOL

  • which column contains the text to be displayed as text in the cell

  • GX_IDS_UA_TABLIST_KEYCOL

  • which column contains text to be stored as value in the cell

  • GX_IDS_UA_TABLIST_SHOWALLCOLS

  • if 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

  • if the first row should be used for displaying column headers

  • GX_IDS_UA_TABLIST_COLWIDTHS

  • column widths in pixels; Example: “50,200,90”

  • default (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

  • you sort the drop-down table by the specified column.

See Also

 CGXAbstractControlFactory::RegisterAllUserAttributes  CGXStylesMap::AddUserAttribute

CGXTabbedComboBoxWnd

 Class Overview |  Class Members