//------------------------------------------------
void guiType2DSlider::setup() {
    if( value.getNumValues() != 2 ) {
        return;
    }
    guiBaseObject::setupNamesFromParams();

    setDimensions(getDefaultColumnWidth(), getDefaultColumnWidth());
    updateText();
}
//------------------------------------------------
void guiTypeTextDropDown::setup(vector <string> boxNames){
	if( value.getNumValues() == 0 ){
        return;
    }

    guiBaseObject::setupNamesFromParams();
    vecDropList = boxNames;
    
    boxHeight = MAX(7, displayText.getTextHeight() + 3);
	setDimensions(getDefaultColumnWidth(), boxHeight);
	bShowDropDown = false;	
}
//-----------------------------------------------.
void guiTypeLabel::setText( string text ){
	name = text;
    hitArea.width = MAX(getDefaultColumnWidth(), displayText.getTextWidth(text) + 3);
}