Hi,
If I create a numberbox and set its width to 1, then it behaves somewhat like a toggle when clicked: if you click on it and its current value is non-zero it changes to zero, and if it is 0 it changes to 1. So you cannot click on it and write a number, which is nonsense, since you could write any one-digit number (0-9). Is there a way to override this behaviour?
ypatios escribió:
numbox2?
Well, the reason why I'm setting the width to 1 is to waste as little space as possible (knowing that the numbers to be used in this case never exceed 9). A one-digit-wide numbox2 is wider than a 2-digit wide numbox, so it doesn't help.
Anyway, is there some reason for the bizarre behaviour of numbox with width=1, or is it just a bug? For toggling between 0 and 1 one can already use a tgl, and also, ctrl+click on a numbox already does that, with any width........
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Matteo Sisti Sette wrote:
Anyway, is there some reason for the bizarre behaviour of numbox with width=1, or is it just a bug? For toggling between 0 and 1 one can already use a tgl, and also, ctrl+click on a numbox already does that, with any width........
it's a feature. this feature is older than the toggle within Pd.
msdr IOhannes
IOhannes m zmölnig escribió:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Matteo Sisti Sette wrote:
Anyway, is there some reason for the bizarre behaviour of numbox with width=1, or is it just a bug? For toggling between 0 and 1 one can already use a tgl, and also, ctrl+click on a numbox already does that, with any width........
it's a feature. this feature is older than the toggle within Pd.
Ah I see, it's there for historical reasons.
I guess it could be removed now...
It's a stupid feature in my opinion -- I should make it an option :)
cheers Miller
On Tue, May 04, 2010 at 11:54:51AM +0200, IOhannes m zm?lnig wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Matteo Sisti Sette wrote:
Anyway, is there some reason for the bizarre behaviour of numbox with width=1, or is it just a bug? For toggling between 0 and 1 one can already use a tgl, and also, ctrl+click on a numbox already does that, with any width........
it's a feature. this feature is older than the toggle within Pd.
msdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkvf7usACgkQkX2Xpv6ydvTO+QCeM/jCNX2cgXbNX8Ni3BariNfx KEYAoOzXGqvGJXo5BUwJxV6u5tFTIZYw =kaI3 -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Miller Puckette wrote:
It's a stupid feature in my opinion -- I should make it an option :)
i have to admit, that i agree on the first half of the sentence as for the second part, i would get rid of it all together. you can always use tgl if you need one.
mfgfsw IOhannes
cheers Miller
On Tue, May 04, 2010 at 11:54:51AM +0200, IOhannes m zm?lnig wrote: Matteo Sisti Sette wrote:
Anyway, is there some reason for the bizarre behaviour of numbox with width=1, or is it just a bug? For toggling between 0 and 1 one can already use a tgl, and also, ctrl+click on a numbox already does that, with any width........
it's a feature. this feature is older than the toggle within Pd.
msdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list