I have a parameter which goes from 0.0 to 4.0.Â However, when displaying (in the GUI less front end and the GUI textedit) I want it to show 'off' when the value is 0.0 and the floating point value otherwise.
In the olden days of VST2 and VSTGUI3, I used to use setStringConvert to have a function that would provide the text for my textedit box, and setParameterDisplay in the VST2 code to provide the correctly formatted text (either number of text) for this.Â Â
Using ASPiK and VSTGUI4, am I fixed to either a floating point value, or text enum type display or is there a way of providing more custom text for displaying?Â Or do I need to make a new custom textedit that does what I want (which seems a bit overkill compared to VST2 and VSTGUI3)
Hope that makes sense!
Hey - yes that would be a case for doing a custom VSTGUI control to subclass CEditBox object. This would actually be fairly simple because you would only need to override the onDraw( ) feature and insert the OFF text when the value hits 0.0. I can look into this next week when we have spring break and I will have more free time.Â
But it might make a nice exercise for you to get into the Custom View paradigm (there is an override of the CAnimKnob in the sample code).Â
Thanks, Will.Â I'm starting to understand the structure of it all a bit better now.Â Your custom controls/views are very useful as examples :-). I'm currently playing with the XYPadEx control in order to limit the drawing of the puk to a circle, rather than the full square, which has been an interesting exercise.Â
Most Users Ever Online: 152
Currently Browsing this Page:
Guest Posters: 1
Moderators: W Pirkle: 689