Adding label to ofxGui for ofReadOnlyParameter


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:


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?