search for: busycursor

Displaying 17 results from an estimated 17 matches for "busycursor".

2005 Apr 03
4
BusyCursor probs in 0.6
The new block version of BusyCursor doesn''t work for me -- some actions in between the { braces } do not get carried out. To illustrate, I have taken the nothing.rbw sample app, and added a couple of lines to it, so the full code now reads: require ''wxruby'' include Wx class MyFrame < Wx::Frame def i...
2006 Dec 24
0
[801] trunk/wxruby2/doc/textile: Explain how to use the block-style class methods in these classes
...<dd>2006-12-23 22:22:34 -0500 (Sat, 23 Dec 2006)</dd> </dl> <h3>Log Message</h3> <pre>Explain how to use the block-style class methods in these classes</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2doctextilebusycursortxtl">trunk/wxruby2/doc/textile/busycursor.txtl</a></li> <li><a href="#trunkwxruby2doctextilebusyinfotxtl">trunk/wxruby2/doc/textile/busyinfo.txtl</a></li> <li><a href="#trunkwxruby2doctextilewindowdisablertxtl">trunk/wxruby...
2004 Dec 22
2
(no subject)
Hi, While running the sample application controls/control.rbw I encountered the following error: controls.rbw:1064:in `onAbout'': undefined method `free'' for #<Wx::BusyCursor:0x2 827db0> (NoMethodError) from controls.rbw:1039:in `initialize'' from controls.rbw:1039:in `call'' from controls.rbw:1164:in `main_loop'' from controls.rbw:1164 I''m running wxruby 0.6 on Windows XP. Is an explicit free call re...
2004 Oct 06
11
find_window_by_xxx doesn''t find Gauge or BitmapButton
I''m fairly new to the Ruby world, particularly WxRuby, so please forgive me if this is ground that''s been covered in the past. I''m trying to load a frame from an XRC file (created using DialogBlocks), and I''m having trouble getting an instance of the Gauge object using the Wx::Window.find_window_by_xxx methods. I''m trying this on Windows XP,
2007 Jan 05
0
[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample
...mall icons </span><del>- images = Wx::ImageList.new(16, 16, true) </del><ins>+ images = Wx::ImageList.new(32, 32, true) </ins><span class="cx"> # should correspond to TreeCtrlIcon_xxx enum </span><span class="cx"> Wx::BusyCursor.busy do </span><span class="cx"> icons = (1 .. 5).map do | i | </span><span class="lines">@@ -157,7 +157,7 @@ </span><span class="cx"> </span><span class="cx"> def create_buttons_image_list() </span&...
2004 Sep 04
2
API Changes
I found some ugly legacy while working on wxruby-swig. wxBusyCursor, wxBusyInfo, and wxWindowDisabler all use a free method that directly calls the destructor. In the wxruby-swig version of these, I created a static method (named busy,busy, and disable) that runs an attached block while under the influence of the class. I suggest changing the wxruby we change...
2006 Dec 24
0
[803] trunk/wxruby2/Changelog: Update with recent changes
...trunk/wxruby2/Changelog&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-12-24 12:34:06 UTC (rev 803) </span><span class="lines">@@ -1,3 +1,15 @@ </span><ins>+- Added MenuEvent class (Alex Fenton) +- Documented how to use WindowDisabler, BusyCursor & BusyInfo (Alex Fenton) +- Fixed TreeItemId == method (Alex Fenton) +- Moved TreeCtrl#traverse to wxSugar (Alex Fenton) +- Simplify some bits of XRC sample (Alex Fenton) +- Added some missing classes to parents.rb (Alex Fenton) +- Made find_window_xx etc return correct objects from SWIG tracki...
2006 Dec 31
0
[817] trunk/wxruby2/Changelog: Last changes of 2006!
...fonts within TreeCtrl sample (Alex Fenton) +- Stock colours etc initialized at library load time, not app.on_init (Alex Fenton) </ins><span class="cx"> - Added MenuEvent class (Alex Fenton) </span><span class="cx"> - Documented how to use WindowDisabler, BusyCursor & BusyInfo (Alex Fenton) </span><span class="cx"> - Fixed TreeItemId == method (Alex Fenton) </span><ins>+- Fixed crasher with Bitmap#set_mask (Alex Fenton) </ins><span class="cx"> - Moved TreeCtrl#traverse to wxSugar (Alex Fenton) </sp...
2006 Dec 26
0
[806] trunk/wxruby2/samples/treectrl: Restored demonstration of use of icons and fonts within TreeCtrl
...ist containing small icons </span><del>- images = Wx::ImageList.new(size, size, true) - </del><ins>+ images = Wx::ImageList.new(16, 16, true) </ins><span class="cx"> # should correspond to TreeCtrlIcon_xxx enum </span><del>- Wx::BusyCursor.busy do |x| - icons = [ - Wx::Icon.new("icon1.xpm"), - Wx::Icon.new("icon2.xpm"), - Wx::Icon.new("icon3.xpm"), - Wx::Icon.new("icon4.xpm"), - Wx::Icon.new("icon5.xpm")] - - orig_size = icons[0].get_...
2006 Dec 11
0
[780] trunk/wxruby2/samples/html/html.rb: Error handling eg if no network present or server down
...;nbsp&nbsp2006-12-11 20:11:29 UTC (rev 780) </span><span class="lines">@@ -22,11 +22,18 @@ </span><span class="cx"> case uri </span><span class="cx"> when URI::HTTP </span><span class="cx"> Wx::BusyCursor.busy do </span><del>- res = Net::HTTP.start(uri.host, uri.port) do | http | - http.get(uri.path) </del><ins>+ begin + res = Net::HTTP.start(uri.host, uri.port) do | http | + http.get(uri.path) + end + @loaded_uri =...
2005 Jul 26
10
Patch for wxRuby2
...orking correctly, gets rid of my fixedswigcode.rb hack. - Added the wxMenuItem class. - Added a type check for wxDateTime so CalendarCtrl now works properly with ruby class DateTime. - Changed $DEBUG in extconf.rb to $DEBUG_BUILD, for some reason it was clashing with mkmf on Windows. - Added wxBeginBusyCursor and wxEndBusyCursor to functions.i - Added wxToolTip class. - Many missing methods for existing classes. - Slight tweaks to the sample programs. I also made this patch so Kevin can use this patch command: patch -p1 <diff.list in the directory above wxruby2 As I said before I am going to be out...
2007 Jul 23
0
[1142] trunk/wxruby2/README: Updated README with latest version info and Kevin credit
...l><span class="cx"> </span><span class="cx"> </span><span class="cx"> For more details, see the project home page: </span><span class="lines">@@ -227,31 +230,38 @@ </span><span class="cx"> - BusyCursor can be used in a Ruby block to ensure the original cursor </span><span class="cx"> is always restored. </span><span class="cx"> </span><del>- </del><ins>+The core wxRuby project is focussed on providing a mostly +straightfo...
2005 Jul 31
5
SWIG compilation
The result of the compilation after installing swig results in lots of errors of the sort: WindowDisabler.obj : error LNK2001: unresolved external symbol _SWIG_Ruby_ConvertPtr I can see this is defined in rubydef.swg but I''m not sure why this isn''t just included in the files that need it. Can any swig experts tell me what I need to do to progress? I''m using
2006 Nov 06
3
HtmlWindow and friends
Hi Attached is a patch to add HtmlWindow and some of its friends, including HtmlEasyPrinting. Also a sample. I haven''t tried exposing the parsing and rendering API yet to allow custom tags etc - I just wanted to get basic HTML and the 0.6.0 compatibility classes first. There may well be some quite easy classes left. There''s one ugly kludge to get OnOpeningURL to compile -
2007 Feb 09
20
Hello Everyone
I have a bit of a problem with installation. I installed wxX11 in my linux box. I compiled the demos and all the demos, save dbbrowse, work. I think I have a functional wx. Now I''m trying to install wxRuby from source, since I have a 64 bit machine. I only have permission to my home directory so my installation is : /usr/people/stevenq/Applications/wxX11/
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
...pan class="cx"> </span><span class="cx"> </span><del>- def onLogDialog(event) </del><ins>+ def on_log_dialog(event) </ins><span class="cx"> </span><span class="cx"> # calling yield() (as ~BusyCursor does) shouldn''t result in messages </span><span class="cx"> # being flushed -- test it </span><span class="lines">@@ -263,10 +262,10 @@ </span><span class="cx"> Log::flush_active() </span><span class=&quot...
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...require ''wx'' + rescue LoadError + raise no_wx_err + end +end + +require ''net/http'' +require ''uri'' + +class MyHtmlWindow < Wx::HtmlWindow + attr_reader :html_src + def load_page_from_uri(uri) + case uri + when URI::HTTP + Wx::BusyCursor.busy do + res = Net::HTTP.start(uri.host, uri.port) do | http | + http.get(uri.path) + end + @loaded_uri = uri + set_page(res.body) + end + return @loaded_uri + when URI::Generic + if @loaded_uri and @loaded_uri.kind_of?(URI::HTTP) + ret...