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:
Adrien Destugues
2014-10-01 12:12:16 +02:00
parent 48ea56bf32
commit 13d147b12b
3 changed files with 18 additions and 3 deletions
+2 -1
View File
@@ -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;