search for: id_highest

Displaying 7 results from an estimated 7 matches for "id_highest".

2006 Oct 17
0
[681] trunk/wxruby2/samples/treectrl/treectrl.rb: wxMAC does not like menu id''s of 0 so I fixed that also made set_item_text_colour
...an><span class="cx"> TreeTest_DecSpacing, </span><span class="cx"> TreeTest_ToggleIcon, </span><span class="cx"> TreeTest_Select, </span><del>-TreeTest_Unselect = (0..39).to_a </del><ins>+TreeTest_Unselect = (Wx::ID_HIGHEST..Wx::ID_HIGHEST+39).to_a </ins><span class="cx"> TreeTest_Ctrl = 1000 </span><span class="cx"> </span><span class="cx"> TreeCtrlIcon_File, </span><span class="lines">@@ -271,9 +271,10 @@ </span><span c...
2008 Jan 19
5
No joy from Wx::App.dispatch, Wx::App.yield...
...Wx::Bitmap.new(300, 300) #Displays drawing. window = Wx::Window.new(frame, :size => [300, 300]) window.evt_paint do |event| update_window(window, buffer) end #Initialize drawing loop counter. @i = 0 #Animate periodically. timer_id = Wx::ID_HIGHEST + 1 t = Wx::Timer.new(self, timer_id) evt_timer(timer_id) do animate(window, buffer) #No effect. #self.dispatch #No effect. #self.dispatch while self.pending #No effect. #self.yield end t.start(33) end def ani...
2008 Jan 03
0
Wx::Menu, get parent menu functions?
...itle, style) @name = name #string name @id = id #integer id @parent_menu = parent_menu #MyMenu parent_menu if @id == -1 @id = mymasterclass.newid() #generates newid (WxPython?) #for reference #def newid() # new_id = Wx::ID_HIGHEST + @@i_highest_counter # @@i_highest_counter = @@i_highest_counter + 1 # return new_id # end #============= end end def get_name() return @name end def get_id() return @id end def get_parent() return @parent_menu end def get_parent_id()...
2005 Sep 04
3
bigdemo patches
Patches: 1) Sizer.rbw: Selects first item after creating the list 2) wxCalendarCtrl.rbw: Uses ruby DateTime now 3) wxButton.rbw: There is no function ''set_tool_tip_string''. Changed to set_tool_tip 4) wxCheckBox.rbw: Missing quote on require. cID was too big, caused assert failure 5) wxCheckListBox.rbw: Missing argument to StaticText.new added (I don''t
2007 Dec 30
4
Drawing thread not getting enough time from scheduler?
Need some assistance with animation again... When I run the drawing code in a separate thread, it''s slow as heck. I think it may be because the drawing thread isn''t getting enough time from the thread scheduler. I was able to reproduce the problem in my little sample program simply by increasing the number of lines it draws per update. I''m lucky to get one frame
2007 Oct 03
9
WxRuby Newbie Application Hanging
I have a WxRuby application that takes a few inputs from the user and uses that information to search through a large file for matches. The application works very well, with one exception. If I click anywhere in the frame while the application is searching through the long file, the application hangs. Has anyone experienced anything similar to this? Any suggestions on how I can fix this? Thanks
2007 Nov 03
9
wxThread
Hey guys, I''m working on the start of incorperating wxSocket into a library that can be included with the Core, and a part of this, is to create a wxThread class, which will basically just be a barebone copy over of Ruby''s own Thread class. (This should also help when we get Ruby 2.0, which hopefully will have Native Threads, as we should still be able to get the base