Patches item #2419952, was opened at 2008-12-12 08:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2419952...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: feature Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Add 'get' method to toggle
Initial Comment: The attached patch provides a 'get' method for the toggle object. This allows the current state of the toggle to be retrieved via it's outlet. Patch against g_toggle.c (revision 10450).
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2419952...
That's great! I'd actually love to be able to "get" any of the parameters of GUI objects, including size, color, position, etc (basically anything that can currently be set by message). I could make far more dynamic GUIs if I could, e.g., query the background color of a slider, save it, change it temporarily to bright yellow to indicate a different mode, and then change it back to the original color.
Okay, maybe I'll check out your patch here and see if I can figure that out myself.
Best Luke
On Fri, Dec 12, 2008 at 12:42 AM, SourceForge.net noreply@sourceforge.net wrote:
Patches item #2419952, was opened at 2008-12-12 08:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2419952...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: feature Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Add 'get' method to toggle
Initial Comment: The attached patch provides a 'get' method for the toggle object. This allows the current state of the toggle to be retrieved via it's outlet. Patch against g_toggle.c (revision 10450).
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2419952...
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Yeah, I think there should be more querying capabilities in Pd in general. It allows for more dynamic behavior without resorting to strange hacks.
.hc
On Dec 12, 2008, at 4:02 AM, Luke Iannini wrote:
That's great! I'd actually love to be able to "get" any of the parameters of GUI objects, including size, color, position, etc (basically anything that can currently be set by message). I could make far more dynamic GUIs if I could, e.g., query the background color of a slider, save it, change it temporarily to bright yellow to indicate a different mode, and then change it back to the original color.
Okay, maybe I'll check out your patch here and see if I can figure that out myself.
Best Luke
On Fri, Dec 12, 2008 at 12:42 AM, SourceForge.net noreply@sourceforge.net wrote:
Patches item #2419952, was opened at 2008-12-12 08:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/? func=detail&atid=478072&aid=2419952&group_id=55736
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: feature Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Add 'get' method to toggle
Initial Comment: The attached patch provides a 'get' method for the toggle object. This allows the current state of the toggle to be retrieved via it's outlet. Patch against g_toggle.c (revision 10450).
You can respond by visiting: https://sourceforge.net/tracker/? func=detail&atid=478072&aid=2419952&group_id=55736
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
------------------------------------------------------------------------ ----
I spent 33 years and four months in active military service and during that period I spent most of my time as a high class muscle man for Big Business, for Wall Street and the bankers. - General Smedley Butler
Hans-Christoph Steiner wrote:
Yeah, I think there should be more querying capabilities in Pd in general. It allows for more dynamic behavior without resorting to strange hacks.
you mean, strange hacks like storing a value in a variable?
anyhow, i agree that [tgl] is "special" (in a not very positive way) as it is the only gui-object (i can think of right now) that will change it's value when banged, rather than just output the current value.
fgmasdr IOhannes
On Sun, 2008-12-14 at 13:47 +0100, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
Yeah, I think there should be more querying capabilities in Pd in general. It allows for more dynamic behavior without resorting to strange hacks.
you mean, strange hacks like storing a value in a variable?
anyhow, i agree that [tgl] is "special" (in a not very positive way) as it is the only gui-object (i can think of right now) that will change it's value when banged, rather than just output the current value.
... which was the exact reason I submitted the patch, but maybe the 'correct' patch would be to 'fix' the behaviour of [tgl] and make it output its current state on bang. I guess that's going to break (a lot of) stuff though...
Actually, it never occurred to me to do what Miller said and simply store the current value of the toggle as it is set. This makes a separation between UI and logic, which ultimately is probably better design anyhow.
Jamie
Jamie Bullock wrote:
On Sun, 2008-12-14 at 13:47 +0100, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
Yeah, I think there should be more querying capabilities in Pd in general. It allows for more dynamic behavior without resorting to strange hacks.
you mean, strange hacks like storing a value in a variable?
anyhow, i agree that [tgl] is "special" (in a not very positive way) as it is the only gui-object (i can think of right now) that will change it's value when banged, rather than just output the current value.
... which was the exact reason I submitted the patch, but maybe the 'correct' patch would be to 'fix' the behaviour of [tgl] and make it output its current state on bang. I guess that's going to break (a lot of) stuff though...
yes totally. i wouldn't dare to change this.
another clue: when tgl gets banged, you will now it's new value. since tgl can basically only have 2 different values, it's rather trivial to calculate the original value from that. (but i guess that this is what hans meant with "strange hacks")
fgmadsr IOhannes
On Dec 14, 2008, at 9:12 AM, Jamie Bullock wrote:
On Sun, 2008-12-14 at 13:47 +0100, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
Yeah, I think there should be more querying capabilities in Pd in general. It allows for more dynamic behavior without resorting to strange hacks.
you mean, strange hacks like storing a value in a variable?
anyhow, i agree that [tgl] is "special" (in a not very positive way) as it is the only gui-object (i can think of right now) that will change it's value when banged, rather than just output the current value.
... which was the exact reason I submitted the patch, but maybe the 'correct' patch would be to 'fix' the behaviour of [tgl] and make it output its current state on bang. I guess that's going to break (a lot of) stuff though...
Actually, it never occurred to me to do what Miller said and simply store the current value of the toggle as it is set. This makes a separation between UI and logic, which ultimately is probably better design anyhow.
The iemguis have had their unique behavior for a very long time, so I think it is a bad idea to change them. The beauty of free software means that anyone can take all the iemguis and modify them however they want and make a new library out of them.
.hc
Jamie
-- www.postlude.co.uk http://www.linkedin.com/in/jamiebullock
------------------------------------------------------------------------ ----
The arc of history bends towards justice. - Dr. Martin Luther King, Jr.
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
The iemguis have had their unique behavior for a very long time, so I think it is a bad idea to change them. The beauty of free software means that anyone can take all the iemguis and modify them however they want and make a new library out of them.
See attachement for a toggle with get message as an abstraction.
Ciao
I'd suggest using 'value' to do this. The IEM GUIs are overloaded with unmaintainable junk as it is...
cheers Miller
On Fri, Dec 12, 2008 at 01:02:17AM -0800, Luke Iannini wrote:
That's great! I'd actually love to be able to "get" any of the parameters of GUI objects, including size, color, position, etc (basically anything that can currently be set by message). I could make far more dynamic GUIs if I could, e.g., query the background color of a slider, save it, change it temporarily to bright yellow to indicate a different mode, and then change it back to the original color.
Okay, maybe I'll check out your patch here and see if I can figure that out myself.
Best Luke
On Fri, Dec 12, 2008 at 12:42 AM, SourceForge.net noreply@sourceforge.net wrote:
Patches item #2419952, was opened at 2008-12-12 08:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2419952...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: feature Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Add 'get' method to toggle
Initial Comment: The attached patch provides a 'get' method for the toggle object. This allows the current state of the toggle to be retrieved via it's outlet. Patch against g_toggle.c (revision 10450).
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2419952...
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev