Attached are some patches to implement the TaskBarIcon. Let me know how this works on Linux and OS X. You may want to ''svn update'' first and get the new version of ruby.png since I fixed the transparent background. Roy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: bigdemo.rb.patch Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061015/a0ece935/attachment.ksh -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wxTaskBarIcon.h.patch Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061015/a0ece935/attachment-0001.ksh -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TaskBarIcon.i Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061015/a0ece935/attachment.pl
Roy Sutton wrote:> Attached are some patches to implement the TaskBarIcon. Let me know > how this works on Linux and OS X.Nice. Applied, thanks. I really like that we are adding these smaller classes that will give wxRuby applications polish. I initially got an error running bigdemo, samples/bigdemo/bigdemo.rb:754:in `initialize'': undefined method `evt_taskbar_left_dclick'' for #<DemoTaskBarIcon:0x3ac730> (NoMethodError) from samples/bigdemo/bigdemo.rb:238:in `new'' from samples/bigdemo/bigdemo.rb:238:in `initialize'' from samples/bigdemo/bigdemo.rb:816:in `new'' from samples/bigdemo/bigdemo.rb:816:in `on_init'' from samples/bigdemo/bigdemo.rb:825:in `main_loop'' from samples/bigdemo/bigdemo.rb:825 Not sure if you made some changes to EvtHandler.i that I haven''t got, or if there''s some broken cross-platform thing going on here. So I commented out that line and checked in the rest of the bigdemo, which works nicely, thanks.> You may want to ''svn update'' first and get the new version of ruby.png > since I fixed the transparent background.I did, and the shaped window sample now comes out a bit messy on OS X. About 10-20px of standard window canvas is appearing right and below the image where it should be completely transparent. Thanks for patches alex
Alex Fenton wrote:> Nice. Applied, thanks. I really like that we are adding these smaller > classes that will give wxRuby applications polish. > > I initially got an error running bigdemo, > > samples/bigdemo/bigdemo.rb:754:in `initialize'': undefined method > `evt_taskbar_left_dclick'' for #<DemoTaskBarIcon:0x3ac730> (NoMethodError) > > Not sure if you made some changes to EvtHandler.i that I haven''t got, or > if there''s some broken cross-platform thing going on here. So I > commented out that line and checked in the rest of the bigdemo, which > works nicely, thanks. >Oddly, I got this same problem on Linux when I tried it there. I don''t know why and hadn''t had time to investigate. Given all the problems I had there I didn''t want to speculate on the origin. Now I guess I have to look into it more.>> You may want to ''svn update'' first and get the new version of ruby.png >> since I fixed the transparent background. >> > I did, and the shaped window sample now comes out a bit messy on OS X. > About 10-20px of standard window canvas is appearing right and below the > image where it should be completely transparent. >Hmm, I''ll look into that more. I think I may be calling a function to set the transparent color when there isn''t one anymore.
Alex Fenton wrote:> Roy Sutton wrote: > >> Attached are some patches to implement the TaskBarIcon. Let me know >> how this works on Linux and OS X. >> > samples/bigdemo/bigdemo.rb:754:in `initialize'': undefined method > `evt_taskbar_left_dclick'' for #<DemoTaskBarIcon:0x3ac730> (NoMethodError) >The problem was fixevents.rb. I will soon check in a patch to fixevents.rb as well as check in a change to rakewx.rb (to make events.cpp dependant upon fixevents.rb). Roy
> The problem was fixevents.rb. I will soon check in a patch to > fixevents.rb as well as check in a change to rakewx.rb (to make > events.cpp dependant upon fixevents.rb). >Nice spot. I removed the non-Windows exclusion for EVT_TOGGLEBUTTON from the same place; compiles fine and the ToggleButton sample works. The EVT_DIALUP exclusion is still needed though. Attached is some code I tried out in the process of trying to fix this - exposes the undocumented TaskbarIconEvent class, and does the type-mapping of this event in EvtHandler. May or may not be useful; please commit if yes. As the docs hint, TaskBarIconEvents don''t seem to be fired on OS X. I''m currently unable to do commits or get updates from SVN b/c my home internet connection is broken. Able to keep up with emails a bit from work (but gotta be a bit subtle). cheers alex -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: EvtHandler_i.taskbar_patch Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061017/346b94d9/attachment-0002.ksh -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TaskBarIconEvent.i Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061017/346b94d9/attachment-0003.ksh -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wxTaskBarIconEvent.h Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061017/346b94d9/attachment-0001.h