Patches item #3383472, was opened at 2011-08-01 01:22 Message generated for change (Comment added) made by eighthave You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3383472...
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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jonathan Wilkes (jancsika1) Assigned to: Nobody/Anonymous (nobody) Summary: tooltips part 3: the saga continues
Initial Comment: Here's a new angle on the tooltips idea that adds three somewhat related functions to Pd: 1) "Autotips", available from the "Edit" menu. Parses help patches on the fly when the mouse enters an object/xlet. (Works the same with abstractions, too.) 2) Manual tips through a "tip" canvas method. 3) An "echo" canvas method, which just passes a message to a canvas without displaying it. (Useful in conjunction with the "get" method from my other patch, and probably other contexts as well.)
It's all done with some canvas bindings in tcl and a few canvas methods, so neither t_class nor t_widgetbehavior is touched. However, if it's desirable to add <Enter> and <Leave> widgetbehaviors at a later date, it should be possible without changing any of the code in this patch.
Hopefuly I "diff'd" correctly, against vanilla 0.43.0. (Works for me in Fedora 15...)
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2011-10-06 15:01
Message: Oops, I just saw the updated file now, were there any changes since tips-rev2.diff? If so, I didn't include them.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2011-10-06 14:28
Message: Ok, works on Ubuntu for me now, I"m including it in Pd-extended. I added a keybinding and menu item to match the other editor meta items (autopatch, magic glass, etc.) Jonathan, if you wanted, you could make the Autotips a per-patch option using the technique I did for magicglass. Its not saved between Pd sessions, but it is while Pd is running.
----------------------------------------------------------------------
Comment By: Jonathan Wilkes (jancsika1) Date: 2011-10-06 14:23
Message: Yes it is. I deleting the old files and have the new gzip file with the revised patch and help files.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2011-10-06 14:03
Message: For future reference, you should delete the older revisions of files from the tracker and only include the current files. I'm trying this now on Ubuntu/natty/i386. I'm guessing that tips-rev2.diff is the right file
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2011-09-27 20:48
Message: Latest revision tested on Ubuntu Maverick (32 bit). Works for me.
----------------------------------------------------------------------
Comment By: Jonathan Wilkes (jancsika1) Date: 2011-09-26 22:40
Message: Thanks IOhannes, I would have never caught that myself. The pd-externals-howto says: "If more arguments are to be passed to the object or if the order of atomtypes should by (sic) more flexible, A_GIMME can be used for passing an arbitrary list of atoms." Is there another place where this is addressed?
I added another revision.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2011-09-26 17:50
Message: The manual tip works with or without Autotips checked. Nothing else shows up either way with the Autotips checked or not.
----------------------------------------------------------------------
Comment By: IOhannes m zmölnig (zmoelnig) Date: 2011-09-26 15:32
Message: it doesn't work, because the code is broken. canvas_enterobj)( is declared as having 4 arguments of type A_FLOAT, A_FLOAT, A_SYMBOL, A_FLOAT! this is something that Pd's dispatcher cannot handle correctly: A_FLOAT must never be followed by A_SYMBOL.
if you want a message like that, you have to use A_GIMME and parse the message yourself. afair, this is documented in the pd-externals-howto.
(you might be lucky on 64bit, that for some reasons it worked for you; do not rely on that)
----------------------------------------------------------------------
Comment By: Jonathan Wilkes (jancsika1) Date: 2011-09-26 14:39
Message:
Hm, not sure what to do other than ask the obvious. So I'll do that: Do you get an "Autotips" checkbutton under the "Edit" menu? If so, did you check it?
Do you get a little blue box in the bottom left-hand corner of the patch when you hover over [clip]? Can you see the bottom of the help patch?
Do the manual tips work when you click the [tgl] in the tips help patch?
----------------------------------------------------------------------
Comment By: Jonathan Wilkes (jancsika1) Date: 2011-09-26 14:27
Message:
Hm, not sure what to do other than ask the obvious. So I'll do that: Do you get an "Autotips" checkbutton under the "Edit" menu? If so, did you check it?
Do you get a little blue box in the bottom left-hand corner of the patch when you hover over [clip]? Can you see the bottom of the help patch?
Do the manual tips work when you click the [tgl] in the tips help patch?
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2011-09-26 13:41
Message: I just tried a complete Pd-extended build with this patch, adn still no luck,
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2011-09-26 13:40
Message: Yup, that much I can figure out. In all of the demos, nothing shows up.
----------------------------------------------------------------------
Comment By: Jonathan Wilkes (jancsika1) Date: 2011-09-26 12:58
Message: Have a look at the demo patch in the tar below.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2011-09-26 12:54
Message: I got it to compile and run fine, I just never got the tooltips to show up. Edit Mode or not. Any tips there?
----------------------------------------------------------------------
Comment By: Jonathan Wilkes (jancsika1) Date: 2011-09-26 12:08
Message: I left out a step in the help patch-- you must be in "Edit mode" for the autotips to work. This is purposeful-- I don't think transient popups should get in the way of audio, or whatever else is going on in the patch in "Run mode". However, you can get manual tips in both "Run mode" and "Edit mode".
It's been awhile since I worked on this, so I just downloaded the source for pd-0.43 from Miller's website, did "patch -p1 <tips.diff" inside the pd-0.43-0 directory, and compiled-- and it works for me under Debian Wheezy x86_64.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2011-09-26 10:52
Message: I tried to get this working a while back, but had no luck. I'll try again.
----------------------------------------------------------------------
Comment By: Jonathan Wilkes (jancsika1) Date: 2011-08-01 01:25
Message: See tips-help.pd to see how they work.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3383472...