Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
NumberControl::NumberControl(const char* label, const char* text,
		BMessage* message, int32 maxBytes, bool allowNegative, bool continuos)
	: BTextControl(label, text, message)
{
	_InitControl(maxBytes, allowNegative, continuos);
}