Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Adding label to ofxGui for ofReadOnlyParameter

$
0
0

@audiophil wrote:

Hi,

I would like to observe some variables with ofxGui. What works so far is to create an ofLabel and set the label with

myLabel = ofToString(myVariableToObserve);

in my update function, but it feels a bit cumbersome to manually add and update labels for many variables. I build the rest of the GUI based on multiple ofParameterGroup instances which I add to the GUI and this works just fine. So what I’m looking for is something like:

myParameterGroup.add(myReadOnlyParameterToObserve.set("myParameterName"));

In order to create a label in the GUI and keep it up to date, showing a string representation of my variable/parameter.

Any hints?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles