From: Pen T. <rub...@an...> - 2010-05-31 05:16:04
|
dear MikeC: i am not a professinoal programmer,want to do a tool for myself,to improve my work effencience。what i want to do is an valuation table(model)to valuate stock's price,i am pleased to see there is a sample in fxruby web which i send in the first letter. i want to revise something and add something to let it work for my goal. at first i see the sample in http://www.fxruby.org/examples/table.rb ha,that's what i want ,unluckily,there two problems i can't solve 1.the fxruby table can't display chinese,i can't input chinese into fxruby table textfield too. 2.the fxruby make my mouse deadblock,i can't use my mouse right key. when i run a simple ruby gtk+ program, i found chinese can be used(display\input),mouse can be used too. i am going to change the fxruby into ruby gtk ,but i have no ability to write it in ruby gtk+,i am glad to learn to write an program myself, glad to hear from you too. wounld anyone mind telling me why the following simple program can't display chinses? require 'rubygems' require 'fox16' require 'jcode' $KCODE = 'u' include Fox application = FXApp.new("测试", "测试") main = FXMainWindow.new(application, "Hello", nil, nil, DECOR_ALL) FXButton.new(main, "&测试, 测试!", nil, application, FXApp::ID_QUIT) application.create() main.show(PLACEMENT_SCREEN) application.run() 测试 is the meaning of "test" in english. -- Posted via http://www.ruby-forum.com/. |