
Next: wxStyleDelta::SetDeltaBackground
Up: wxStyleDelta: wxObject
Previous: wxStyleDelta::Equal
wxStyleDelta * SetDelta (int changeCommand, int param = 0)
The changeCommand parameter specifies how the value of v is used or ignored. The possible values for changeCommand
are:
- wxCHANGE_NOTHING -- reset all changes (v is ignored)
- wxCHANGE_NORMAL -- turn off all styles and resizings (v is ignored)
- wxCHANGE_FAMILY -- change the font family (v is a family)
- wxCHANGE_STYLE -- change the style of the font (v is a style)
- wxCHANGE_ITALIC -- change the style of the font to italic (v is ignored)
- wxCHANGE_TOGGLE_STYLE -- toggle the style of the font (v is a style)
- wxCHANGE_WEIGHT -- change the weight of the font (v is a weight)
- wxCHANGE_BOLD -- change the weight of the font to bold (v is ignored)
- wxCHANGE_TOGGLE_WEIGHT -- toggle the weight of the font (v is a weight)
- wxCHANGE_UNDERLINE -- set the underline status to a particular value (v is TRUE or FALSE)
- wxCHANGE_SIZE -- change the size to an absolute value (v is a size)
- wxCHANGE_ALIGNMENT -- change the alignment(v is an alignment)
- wxCHANGE_TOGGLE_UNDERLINE -- underline regions that are currently not underlined, and vice-versa (v is ignored)
- wxCHANGE_BIGGER -- make the text larger (v is an additive amount)
- wxCHANGE_SMALLER -- make the text smaller (v is an additive amount)
- wxCHANGE_NORMAL_COLOUR -- change the foreground and background to black and white, respectively (v is ignored)
Except for wxCHANGE_NOTHING and wxCHANGE_NORMAL, these commands only
change part of the delta. If you apply wxCHANGE_BOLD and then
wxCHANGE_ITALIC, then the delta includes both the style and weight
change.
The return value is the delta itself.
PLT