status_t MonitorControl::_InitIfNeeded() { if (fInitialized) return B_OK; status_t status = _InitControl(fControl); if (status < B_OK) return status; fInitialized = true; return B_OK; }
NumberControl::NumberControl(const char* label, const char* text, BMessage* message, int32 maxBytes, bool allowNegative, bool continuos) : BTextControl(label, text, message) { _InitControl(maxBytes, allowNegative, continuos); }