From: Jason Mayer Date: 2006-12-18T06:40:08+09:00 Subject: Re: does Ruby generate WINDOWS and dialog boxes? ------=_Part_3908_3522608.1166391605361 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Not to attempt to bring this back on topic or anything, but I needed this information as well. I'd played with TK and it was, um, ugly. I can't very well bring this to my supervisor and say "we should look into Ruby" if I can't impress the hell out of him. I looked up VisualuRuby and followed the first google link. I found plenty of good examples after following a few links (http://vruby.sourceforge.net/samples-e.html). Just an FYI, the author states that his environment is win98, but I'm running them on winxp sp2 fully patched. Everything seems to work as intended for win98. C:\ruby\programs>ruby --version ruby 1.8.4 (2005-12-24) [i386-mswin32] This caught my eye: http://vruby.sourceforge.net/sample/traytest.rb It adds a system tray icon, modifies one, deletes the one created, among other things. There's a comment in there about the added task tray icon not automagically deleting itself upon the window closing. What I'm uncertain of, is how to go about fixing that. Some of the other programs I was able to make minor changes too in order to make it look how I wanted, but this problem eludes me. Can anyone suggest a way to modify the program in order to automagically check for task bar icons before closing the program? The bug isn't serious at all - apparently if you simply move your mouse cursor over the icon it disappears, so that's no big deal. That said it annoys me. Also, I'm a firm believer in the "give a man a fire and he's warm for a day, set him on fire and he's warm for life" theory, so if anyone can recommend further documentation that will point me towards an answer, I'd be happy to read that as opposed to simply being given a solution. Though I'll take either. One other question, I didn't see any samples of how to control tabbing through the various components. Does anyone have any info on that? This has been one of the most informative ruby threads I've followed since I started reading the mailing list. Thanks to all the contributors from a nuby :) ------=_Part_3908_3522608.1166391605361--