Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API issue(s) #15

Open
JosephAustin opened this issue Oct 20, 2014 · 0 comments
Open

API issue(s) #15

JosephAustin opened this issue Oct 20, 2014 · 0 comments

Comments

@JosephAustin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant