[fxruby-users] FXMainWindow

MAwiniarski MAwiniarski at gmail.com
Mon Jul 21 04:39:17 EDT 2008


I want to add icon to window using:

mainWindow = FXMainWindow.new(app, "Window Title",
                              "icon.ico", nil, DECOR_ALL,
                              mainWindowX, mainWindowY,
                              mainWindowWidth, mainWindowHeight)

and get error:

wrong argument type String (expected Data) (TypeError)

if I put nil instead everything works fine, so
so it's about "icon.ico"

what is a proper way of initializing icons?


More information about the fxruby-users mailing list