rezaali / ofxUI

[DEPRECATED] UI Addon for openFrameworks
http://www.syedrezaali.com/#/ofxui-project-showcase/
518 stars 202 forks source link

Displaying ofxUINumberDialer labels/names #245

Closed Prodical closed 9 years ago

Prodical commented 9 years ago

Hi

I've just ported an oF74 sketch using an older version of ofxUI to the latest version in 0F84... and with a few minor changes in how widgets are initialised it's now compiling... but my custom layout has gone squiffy.

A main issue is that ofxUINumberDialer labels/names which previously didn't display now appear to the right of the input box - and at the same size i.e. OFX_UI_FONT_LARGE.

Is it possible to hide labels/names so that they don't display at all or arrange them underneath the input box and at a different size i.e. OFX_UI_FONT_SMALL?

I'll likely have more questions as I work through layout issues... but any advice on this speficic issue appreciated.

Best

Prodical

Prodical commented 9 years ago

Worked it out...

Declare a pointer to a type... e.g. ofxUINumberDialer *VCO1FGUI;

then initialise, position and setLabelVisible(0)... e.g. VCO1FGUI = new ofxUINumberDialer(0, 2000, &VCO1F, 2, "VCO1F", OFX_UI_FONT_LARGE); w = guiSC->addWidgetEastOf(VCO1FGUI, "WAVETYPEVCO1"); VCO1FGUI->setLabelVisible(0);

Liking the new developments...

Best

Prodical