Snapshot changes textbutton from button to toggle when parameter mode enabled
One doesn't need parameter mode on a textbutton in 'button' mode because, unlike a toggle button, a simple button has no save state. I had inadvertently, however, enabled parameter mode and discovered that recalling a snapshot now forces the 'button' into 'toggle' mode, overriding the inspector setting.
I'm not sure I'd call this a bug — users probably shouldn't enable parameter mode on buttons — but it's surprising behaviour.
Here's a patcher demonstrating the issue:
Hi Chris,
I'm currently designing a MIDI editor for a hardware synth and my GUI uses textbutton objects. I have encountered the behaviour you describe in your post, when the textbuttons are set to 'parameter mode'. Like you, my buttons are forced to 'toggle' mode, which is really annoying for my design, I need 'button' mode. It is vital in my case to enable the parameter mode for those buttons because I use JS a lot in my dev, and I want to be able to manipulate those buttons (state, colors, etc.) with code using max objects. I've tried to freeze the 'mode' to 'button' attribute in the inspector, but each time I reload my Max project I observe that the attribute of the buttons has been set back to 'toggle'...
Have you found a solution since then ?
Regards,
Guillaume
I just tested with the latest Max 8.1.8
parameter enable=1, save and reload. Button mode persisted ie the textbutton remained in mode=button. Seems correct. I didn't see a note in the change/release notes but perhaps it was fixed.
Hi Chris,
Good news ! I will check this with Max 8.1.8 too !
In the meantime, I have replaced all my textbuttons by live.text buttons, in order to work with Parameter mode and not get stuck in my dev project...
Regards,
Guillaume