Exemplo n.º 1
0
	virtual void managed(osgWidget::WindowManager* wm) {
		ListBoxBase::managed(wm);

		wm->addChild(_lbp.get());

		_lbp->setOrigin(getX(), getY() + getHeight());
		_lbp->hide();
	}
Exemplo n.º 2
0
	virtual bool mousePush(double, double, osgWidget::WindowManager*) {
		if(_lbp->isVisible()) _lbp->hide();

		else {
			_lbp->show();
			_lbp->grabFocus();
		}

		return true;
	}