# Re: No joy from Wx::App.dispatch, Wx::App.yield

**URL:** <https://www.ruby-forum.com/t/re-no-joy-from-wx-app-dispatch-wx-app-yield/126663>\
**Category:** wxRuby\
**Created:** [January 21, 2008, 6:40am UTC](https://www.ruby-forum.com/t/re-no-joy-from-wx-app-dispatch-wx-app-yield/126663 "2008-01-21T06:40:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_McGavren](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e79b87/32.png) [@Jay\_McGavren](https://www.ruby-forum.com/u/Jay_McGavren)\
**Post date:** [January 21, 2008, 6:40am UTC](https://www.ruby-forum.com/t/re-no-joy-from-wx-app-dispatch-wx-app-yield/126663/1 "2008-01-21T06:40:16Z")

</div>

Alex F. wrote:

> Thanks for the report. gdiplus.dll became a new dependency  
> in 1.9.3 with the addition of the GraphicsContext classes  
> for antialiased drawing. We build and test on Win XP where  
> it’s always available, and didn’t realise it wasn’t  
> included in a default install of W2K. However it seems it  
> can downloaded and installed for free on 2000, and is often  
> required by other apps.

OK, I’ll look into getting it on Win2K. 1.9.4 did indeed run  
out-of-the-box on my WinXP machine.

> Zyps looks a fascinating project, perhaps the most  
> interesting I’ve seen in Ruby GUI programming. I’m keen to  
> try it out; do let me know when there’s a release, or even  
> when it’s runnable from SVN with wxRuby.

Thanks for the kind words. The library demo is runnable - just check  
out HEAD (rev. 193), cd to the working copy, and say:

$ set RUBYLIB=lib  
$ ruby bin/zyps\_demo

…or the equivalents for your OS. You’ll be gratified to know I’m  
getting far better framerates from wxRuby than I was with Ruby-Gnome2.

-Jay McGavren  
[http://jay.mcgavren.com/zyps](http://jay.mcgavren.com/zyps)

---

<div class="post-metadata">

**Author:** ![Jay\_McGavren](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e79b87/32.png) [@Jay\_McGavren](https://www.ruby-forum.com/u/Jay_McGavren)\
**Post date:** [January 21, 2008, 10:43am UTC](https://www.ruby-forum.com/t/re-no-joy-from-wx-app-dispatch-wx-app-yield/126663/2 "2008-01-21T10:43:29Z")

</div>

Jay McGavren wrote:

> The library demo is runnable - just check  
> out HEAD (rev. 193), cd to the working copy, and say:
> 
> $ set RUBYLIB=lib  
> $ ruby bin/zyps\_demo

Great demo: fun, absorbing and a nice aesthetic too. If I get some time  
I might try to write a foxes/rabbits or simple genetics simulator.

> …or the equivalents for your OS. You’ll be gratified to know I’m  
> getting far better framerates from wxRuby than I was with Ruby-Gnome2.

That’s good to know. Having a quick glance at the wx code helped turn  
up a bug - I realised the docs for Wx::Brush are cut off. A custom brush  
is created thus:

Wx::Brush.new(Wx::Colour.new(r, g, b), Wx::SOLID)

The second argument is the fill style - other options are things like  
Wx::CROSS\_HATCH. Brushes that stipple Bitmaps can also be used to create  
textures.

[http://www.wxwidgets.org/manuals/2.8/wx\_wxbrush.html](http://www.wxwidgets.org/manuals/2.8/wx_wxbrush.html)

The simplest constructor should be:

Wx::Brush.new(Wx::Colour(r, g, b)

But this form was missing - now added to SVN for the next release.

cheers  
alex
