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

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

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

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