From: "Damián M. González" Date: 2012-06-13T21:26:08+09:00 Subject: Re: ffi - Popping image on top of the screen > Posted by Colin Bartlett (Guest) > on 2012-06-12 17:37 > (Received via mailing list) > > If it's OK to use a Microsoft Windows MsgBox which a user will have to > close manually then the following may help. (It might be possible to > use something like SendKeys to close the MsgBox from Ruby.) Thanks for answer but that's not what I want, I just want a "loading.." image, like most of the known applications, just the image(I have prepared one .png or .bmp), not any kind of window, it should be closed automatically when the FXRuby GUI is ready to be show. Anybody know how to do the job in this way: >Posted by Damián M. González (igorjorobus) >on 2012-06-12 14:32 > >I've found a way to do this with 'ffi' gem using windows gdi32.dll >lybrary, to be specyfic using the C++ functions 'GetDC', 'BitBlt' and >another function that i don't realize yet... (I don't know nothing about >C++ programming, I've started to program with Ruby, first language). I >had an error trying this way, the backtrace say something like "GetDC >function doesn't found in [gdi] library". Walking away trhough my >PC I realized that gdi32 library was found by ffi, but not by the >search feature of my OS, I just found 'libgdi32.a' file. Now I'm stuck >and lost in this way....any help will be aprecciated to solve the >problem with windows functions. Or perhaps with 'rubysdl'(SDL) Library... Thanks for your time friends. -- Posted via http://www.ruby-forum.com/.