Introduce "invalid" text controls.
* MarkAsInvalid is used to enable or disable the mark * The B_INVALID BControlLook flag is used * invalid BTextControls are drawn with a red border. * You ar encouraged to let the user know more precisely what's wrong, by showing an helpful error message next to the control or in a tooltip.
This commit is contained in:
@@ -84,8 +84,9 @@ public:
|
||||
B_IGNORE_OUTLINE = 1 << 6,
|
||||
B_PARTIALLY_ACTIVATED = 1 << 7, // like B_ACTIVATED, but for tri-state
|
||||
B_FLAT = 1 << 8, // flat look (e.g. button background)
|
||||
B_INVALID = 1 << 9, // invalid value, use B_FAILURE_COLOR
|
||||
|
||||
B_BLEND_FRAME = 1 << 16
|
||||
B_BLEND_FRAME = 1 << 16,
|
||||
};
|
||||
|
||||
virtual BAlignment DefaultLabelAlignment() const;
|
||||
|
||||
Reference in New Issue
Block a user