search for: rbapp

Displaying 10 results from an estimated 10 matches for "rbapp".

Did you mean: bapp
2004 Jan 27
2
The flicker of the status bar.
...I didn''t use wxWindows earlier. Can anybody explain why the status bar flickers at the top (!) of the frame when I resize the frame and how to avoid this? (the following code is the simplest example) #----------------------------------- require ''wxruby'' include Wx class RbApp < App def on_init frame = MyFrame.new("Test status bar flicker") frame.show(TRUE) end end class MyFrame < Frame def initialize(title) super( nil,-1,title, DEFAULT_POSITION, DEFAULT_SIZE, DEFAULT_FRAME_STYLE | CLIP_CHILDREN | NO_FULL_REPAINT_ON_RESIZE )...
2005 Aug 17
7
Volunteer requested: Implement SplitterWindow
...---- kevins@aria:~/work/wxruby2$ cat samples/testsplitter.rb require ''wx'' include Wx class MyFrame < Frame def initialize(title,pos,size,style=DEFAULT_FRAME_STYLE) super(nil,-1,title,pos,size,style) splitter = SplitterWindow.new(self, -1) end end class RbApp < App def on_init frame = MyFrame.new("Spliter Tester",Point.new(50, 50), Size.new(450, 340)) frame.show(TRUE) end end a = RbApp.new a.main_loop() kevins@aria:~/work/wxruby2$ ruby samples/testsplitter.rb Our Initialize was called Their Initialize returned 1 samples/te...
2005 Sep 27
5
WxRuby + Ruby/SDL
Hi, I am making a game with Ruby/SDL and have run into trouble finding a GUI to cooperate. I have seen numerous examples of wxWindows in combination with SDL (wxPython and PyGame), but have yet to be able to do it in ruby (PyGame example: http://wiki.wxpython.org/index.cgi/IntegratingPyGame). I am not very good with wxRuby as this is my first time using it and thought some more knowledgable users
2006 Jul 24
6
MiniFrame.i
Hi Another little patch, adding MiniFrame (a frame with small title bar and buttons which doesn''t appear in the desktop taskbar). Also a sample - not very interesting, happy to roll this into something else if that''s better. cheers alex _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2004 Mar 16
0
MDI and submenues
...em 1") @item_with_submenu1 = MenuItem.new(@fileMenu, 2, ''&Submenu 1'', '''', ITEM_NORMAL, @submenu1) @fileMenu.append_item( @item_with_submenu1 ) #>> set_menu_bar( @menuBar ) end end class RbApp < App def on_init frame = MyFrame.new("MDI parent") frame.show(TRUE) end end a = RbApp.new a.main_loop #================================================
2007 Nov 29
0
WxRuby + Scintilla avec HTML + JavaScript
...har ''+ '' const continue default delete do else''+ '' for function if in''+ '' new return''+ '' switch this typeof var void ''+ '' while with'' ) end end class RbApp < App def on_init frm = MyFrame.new() frm.show(TRUE) end end a = RbApp.new a.main_loop() ========== fin du script ========== et si on fait un copié/collé d''une page html avec du javascript, celui-ci est souligné avec ~ et non coloré qu''ai-je oublié ? mal compris...
2003 Oct 27
5
Windows Build - Down to Run Time Errors
...quot;minimal.rb" E:\Dev\RubyDev\wxruby\samples\minimal>ruby minimal.rb 18:24:27: Debug: E:\Dev\RubyDev\wxWindows-2.4.1/include\wx/datetime.h(1445): ass ert "t1.IsValid() && t2.IsValid()" failed: invalid wxDateTime minimal.rb:52:in `OnInit'': uninitialized constant RbApp::Point (NameError) from minimal.rb:59:in `initialize'' from minimal.rb:59:in `new'' from minimal.rb:59 E:\Dev\RubyDev\wxruby\samples\minimal> Curt
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note the new %directorargout typemap I added to fix wxWindows calling into SWIG. I don''t know if this can fix all such problems or not. Let me know what you think. I also rubified the sample a little bit more. Also, note that I fix the << operator so the function can be called. I hope I did this right. Roy
2006 Jul 25
6
Wizards
Hi Please find attached a set of patches and swig files to implement Wizards for wxruby. Also a brief sample. Quick q - the C declarations of evt_xxx_xxx methods and their attaching to Ruby classes seems to be duplicated across Events.i and EvtHandler.i - is one of these the right place to be adding them? or both? Thanks alex _______________________________________________
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across something that kinda bothers me... In order to implement validators you have to override the clone method. The directors seems to be set up to specifically handle this situation. However, whenever C++ calls back to the object''s methods the swig_get_up function is returning false. It seems like swig_up