From: Chris Hulan Date: 2008-09-29T21:19:22+09:00 Subject: Re: How to get a string using InputDialog with FxRuby On Sep 28, 9:10 am, Li Chen wrote: > > Here is a full working example: > > require 'rubygems' > > require 'fox16' > > include Fox > > > if __FILE__ == $0 > >   FXApp.new do |app| > >     app.create > >     result = FXInputDialog.getString("Enter some text...",app,"New > > InputDialog","Please type some text:") > >     if result > >       puts "User entered: " + result > >     else > >       puts "User cancled!" > >     end > >   end > > end > > Now the code is working. I have one more question. I copy one method > from FxRuby's rdoc as follows: > > getString(initial, app, caption, label, ic=nil) > Prompt for a string, in a free-floating window.. > > What does ic=nil mean? > > Thanks, > > Li > > -- > Posted viahttp://www.ruby-forum.com/. Don't see anything in the FXRuby docs, but according to the Fox docs for FXInputDialog that parameter is an FXIcon. So I guess you can pass a reference to an Icon to be displayed in the dialog Cheers