hi all,
as I am going to enable resizing-by-dragging of cyclone's ui objects, I wonder if there are any examples of how it could be done, or if anybody has any suggestions.
It seems like there is no way, by means of the current Pd API alone, for an external to be notified about its part, a resize-handle. being clicked at in edit mode.
Miller, perhaps you have plans to include this feature in a future version?
If not, I would try directly binding this info out from the tk layer (it is going to be nasty).
I would rather not create a proxy 'handle' object (a separate gobj inserted into a glist), in the fear of corrupting the ordering of objects during save/load and copy/paste.
Currently the only two ui classes are Scope~ and comment. I fancy having them as complete as possible in the early stage, though.
Krzysztof
btw, being notified about the mouse-up would be handy too...
hi again,
there is a proof-of-concept prototype of a mouse-resizable Scope~ in the linux snapshot. An object needs to be selected first (do not know how to avoid that).
Krzysztof
Krzysztof Czaja wrote: ...
If not, I would try directly binding this info out from the tk layer (it is going to be nasty).
envgen in ggee is currently resizable by click/dragging in the bottom righthand corner.
(actually i find this extremely irritating because it's part of the normal control surface so it's easy to hit it during normal use...)
pix.
On Wed, 19 Feb 2003 12:54:36 +0100 Krzysztof Czaja czaja@chopin.edu.pl wrote:
hi again,
there is a proof-of-concept prototype of a mouse-resizable Scope~ in the linux snapshot. An object needs to be selected first (do not know how to avoid that).
Krzysztof
Krzysztof Czaja wrote: ...
If not, I would try directly binding this info out from the tk layer (it is going to be nasty).
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
hi pix,
well, that is easy to do in run-mode!
my question was about doing it right, i.e. in edit-mode.
Krzysztof
pix wrote:
envgen in ggee is currently resizable by click/dragging in the bottom righthand corner.
(actually i find this extremely irritating because it's part of the normal control surface so it's easy to hit it during normal use...)
On Wed, 19 Feb 2003, Krzysztof Czaja wrote:
hi pix,
well, that is easy to do in run-mode!
my question was about doing it right, i.e. in edit-mode.
Krzysztof
well, there is no correct way to do it in edit mode :( So either, 1) Filter the events in tk. This seems to be an ugly hack, but the advantage you have is that it works will Millers pd version. You could implement an event handler in your library directly then.
2) Change the code of the event handler in edit mode within pd and put the changes in the CVS version. Then the externals stop working with the official version :(
2a) Do the same on the official version and send Miller the patch and wait until it gets integrated.
3) Wait until Miller implements an interface to handle edit mode events.
In general I think it is not hard to do from a development point of view.
Greetings, Guenter
pix wrote:
envgen in ggee is currently resizable by click/dragging in the bottom righthand corner.
(actually i find this extremely irritating because it's part of the normal control surface so it's easy to hit it during normal use...)
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
thanks guenter!
guenter geiger wrote:
- Filter the events in tk.
This seems to be an ugly hack, but the advantage you have is that it works will Millers pd version. You could implement an event handler in your library directly then.
yes, this is what I did in MouseState/mousefilter, and in the Scope~'s current version (to some extent). The tricky part is how to do it with a minimal overhead (avoiding duplication of the tk<->pd event stream).
- Change the code of the event handler in edit mode within pd and put the
changes in the CVS version. Then the externals stop working with the official version :(
2a) Do the same on the official version and send Miller the patch and wait until it gets integrated.
I do not like to mess in the Miller's code. I do not think it should be done without a clear view of an overall picture of what is going to happen in future releases, etc. Or, to put it differently, I do not feel like having the skills.
- Wait until Miller implements an interface to handle edit mode events.
want them now...
In general I think it is not hard to do from a development point of view.
right.. needs some thinking about backwards compatibility, though
thanks again, Krzysztof
Hi Krzysztof,
I do intend to do mouse-resize, but not right now (I'm busy rewriting the audio and graphics update code, which seems like plenty for one cycle)
cheers Miller
On Wed, Feb 19, 2003 at 10:33:20AM +0100, Krzysztof Czaja wrote:
hi all,
as I am going to enable resizing-by-dragging of cyclone's ui objects, I wonder if there are any examples of how it could be done, or if anybody has any suggestions.
It seems like there is no way, by means of the current Pd API alone, for an external to be notified about its part, a resize-handle. being clicked at in edit mode.
Miller, perhaps you have plans to include this feature in a future version?
If not, I would try directly binding this info out from the tk layer (it is going to be nasty).
I would rather not create a proxy 'handle' object (a separate gobj inserted into a glist), in the fear of corrupting the ordering of objects during save/load and copy/paste.
Currently the only two ui classes are Scope~ and comment. I fancy having them as complete as possible in the early stage, though.
Krzysztof
btw, being notified about the mouse-up would be handy too...
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev