I think this could be very useful in situations where a button’s function can be short, but the popuptext could give more description to the user. For example, a button with text of “St” might have a popuptext of “Stereo Input”.
This is more of an “icing on the cake” type of feature request, not very important, but could help add a little polish.
I don’t see a logical reason to need/use the pre/postfix with buttons. With only two discrete values from a button (on|off), I don’t really see much of a need access to the value surrounded by message data…
However, the idea about different popuptext messages for on|off states, I could easily see some use out of that. For example, imagine a button that makes a new plant visible with a bunch of widgets.
Instead of the popuptext message being: “Display FX Window: 0” and “Display FX Window: 1”, it could be “Display FX Window” and “Hide FX Window”.
I know this seems like it could just be the button text, but in a cramped and busy plant, it would help minimize the need for lengthy detailed explanations on the buttons themselves.
I’m still interested in both the ability to use newlines in cabbage sections (basically, would a simple expand of \n work?), AND if used with chnset having it incorporate pre/postfix messages. As I explained in the other thread, I try to avoid using chnset for the messages if at all possible to keep some semblance of simplicity, but I would still consider losing the pre/postfix when using chnset a bug.
Agreed, but so is changing the text of the button based on the state, but it’s possible in the cabbage section. It’s not that I cant do it another way fairly easily, or even that this suggestion is of any particular importance to me… it’s just that when the idea of button popup texts came up, it felt like it should be possible, since it’s in line with the widget’s text behavior here, same with checkboxes. It’s not so much an improvement because I need it, but because I think it makes cabbage better as a whole
Sweet, not a big rush… I think this was just a visual-polish idea to help with formatting popups to fit both a descriptive label “Cutoff Freq:” and an obnoxiously long and precise value like “20000.00 Hz”… with the idea that it formats even when used among the pre/postfixes, for example: popupprefix(“Cutoff Freq:\n”), popuppostfix(" Hz") would achieve: