fxruby icon indicating copy to clipboard operation
fxruby copied to clipboard

API issue(s)

Open JosephAustin opened this issue 10 years ago • 0 comments

Just an somewhat minor FYI that the API for FXAccelTable gives an example of adding hotkeys like so

accelTable.addAccel(hotKey, lambda { window.hide })

Actually that lambda needs to recieve 3 arguments, which I think are the sender, selector and message.

accelTable.addAccel(hotKey, lambda { |a,b,c| window.hide })

It's a minor thing, but I'm fairly new to Ruby so it took me a while to realize what I should do about the "3 for 0" argument error.

Additionally: In my previous ticket we discerned that the scroll bars must be set with negative values when using FXImageView::setPosition. I wouldn't change that as it will break anyone using it correctly, but it might be a worthwhile mention. I'm admittedly doing a novel image-viewer project - this is the first GUI tool for ruby I've found that can actually do what I need in a sane cross-platform manner.

JosephAustin avatar Oct 20 '14 19:10 JosephAustin