These patches better implement ArtProvider and add the demo for it. I also expanded the bigdemo window a little bit. I really think we should go larger but I suppose there might be some people at 800x600 still. Note that creating your own art provider still doesn''t quite work correctly. I didn''t have time to get into that. The RubyConstants.i.patch file looks weird. Not sure why SVN did that. If it doesn''t apply, let me know. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Roy Sutton
2006-Sep-14 21:34 UTC
[Wxruby-users] Patch to fix ArtProvider and ArtProvider sample
Fixed RubyConstants.i.patch. No idea why SVN did that. It messed up the file on disk. Roy Roy Sutton wrote:> These patches better implement ArtProvider and add the demo for it. I > also expanded the bigdemo window a little bit. I really think we > should go larger but I suppose there might be some people at 800x600 > still. Note that creating your own art provider still doesn''t quite > work correctly. I didn''t have time to get into that. > > The RubyConstants.i.patch file looks weird. Not sure why SVN did > that. If it doesn''t apply, let me know. > > Roy > ------------------------------------------------------------------------ > > Index: wxruby2/swig/RubyConstants.i > ==================================================================> --- wxruby2/swig/RubyConstants.i (revision 534) > +++ wxruby2/swig/RubyConstants.i (working copy) > @@ -2049,6 +2049,11 @@ > > %constant const char *FILE_SELECTOR_DEFAULT_WILDCARD_STR = "*.*"; > > +<<<<<<< .mine > +// Hack: SWIG Ruby doesn''t handle unicode constants, so we redeclare as ASCII > +#define wxART_MAKE_CLIENT_ID(id) #id "_C" > +#define wxART_MAKE_ART_ID(id) #id > +======> %constant wxArtClient ART_TOOLBAR = wxART_TOOLBAR; > %constant wxArtClient ART_MENU = wxART_MENU; > %constant wxArtClient ART_FRAME_ICON = wxART_FRAME_ICON; > @@ -2056,7 +2061,18 @@ > %constant wxArtClient ART_HELP_BROWSER = wxART_HELP_BROWSER; > %constant wxArtClient ART_MESSAGE_BOX = wxART_MESSAGE_BOX; > %constant wxArtClient ART_OTHER = wxART_OTHER; > +>>>>>>> .r534 > > +<<<<<<< .mine > +%constant /* wxArtClient */ const char * ART_TOOLBAR = wxART_MAKE_CLIENT_ID(wxART_TOOLBAR); > +%constant /* wxArtClient */ const char * ART_MENU = wxART_MAKE_CLIENT_ID(wxART_MENU); > +%constant /* wxArtClient */ const char * ART_FRAME_ICON = wxART_MAKE_CLIENT_ID(wxART_FRAME_ICON); > +%constant /* wxArtClient */ const char * ART_CMN_DIALOG = wxART_MAKE_CLIENT_ID(wxART_CMN_DIALOG); > +%constant /* wxArtClient */ const char * ART_HELP_BROWSER = wxART_MAKE_CLIENT_ID(wxART_HELP_BROWSER); > +%constant /* wxArtClient */ const char * ART_MESSAGE_BOX = wxART_MAKE_CLIENT_ID(wxART_MESSAGE_BOX); > +%constant /* wxArtClient */ const char * ART_BUTTON = wxART_MAKE_CLIENT_ID(wxART_BUTTON); > +%constant /* wxArtClient */ const char * ART_OTHER = wxART_MAKE_CLIENT_ID(wxART_OTHER); > +======> %constant wxArtID ART_ADD_BOOKMARK = wxART_ADD_BOOKMARK; > %constant wxArtID ART_DEL_BOOKMARK = wxART_DEL_BOOKMARK; > %constant wxArtID ART_HELP_SIDE_PANEL = wxART_HELP_SIDE_PANEL; > @@ -2088,6 +2104,7 @@ > %constant wxArtID ART_WARNING = wxART_WARNING; > %constant wxArtID ART_INFORMATION = wxART_INFORMATION; > %constant wxArtID ART_MISSING_IMAGE = wxART_MISSING_IMAGE; > +>>>>>>> .r534 > %constant wxArtID ART_COPY = wxART_COPY; > %constant wxArtID ART_CUT = wxART_CUT; > %constant wxArtID ART_PASTE = wxART_PASTE; > @@ -2099,7 +2116,60 @@ > %constant wxArtID ART_FIND = wxART_FIND; > %constant wxArtID ART_FIND_AND_REPLACE = wxART_FIND_AND_REPLACE; > > +<<<<<<< .mine > +%constant /* wxArtID */ const char * ART_ADD_BOOKMARK = wxART_MAKE_ART_ID(wxART_ADD_BOOKMARK); > +%constant /* wxArtID */ const char * ART_DEL_BOOKMARK = wxART_MAKE_ART_ID(wxART_DEL_BOOKMARK); > +%constant /* wxArtID */ const char * ART_HELP_SIDE_PANEL = wxART_MAKE_ART_ID(wxART_HELP_SIDE_PANEL); > +%constant /* wxArtID */ const char * ART_HELP_SETTINGS = wxART_MAKE_ART_ID(wxART_HELP_SETTINGS); > +%constant /* wxArtID */ const char * ART_HELP_BOOK = wxART_MAKE_ART_ID(wxART_HELP_BOOK); > +%constant /* wxArtID */ const char * ART_HELP_FOLDER = wxART_MAKE_ART_ID(wxART_HELP_FOLDER); > +%constant /* wxArtID */ const char * ART_HELP_PAGE = wxART_MAKE_ART_ID(wxART_HELP_PAGE); > +%constant /* wxArtID */ const char * ART_GO_BACK = wxART_MAKE_ART_ID(wxART_GO_BACK); > +%constant /* wxArtID */ const char * ART_GO_FORWARD = wxART_MAKE_ART_ID(wxART_GO_FORWARD); > +%constant /* wxArtID */ const char * ART_GO_UP = wxART_MAKE_ART_ID(wxART_GO_UP); > +%constant /* wxArtID */ const char * ART_GO_DOWN = wxART_MAKE_ART_ID(wxART_GO_DOWN); > +%constant /* wxArtID */ const char * ART_GO_TO_PARENT = wxART_MAKE_ART_ID(wxART_GO_TO_PARENT); > +%constant /* wxArtID */ const char * ART_GO_HOME = wxART_MAKE_ART_ID(wxART_GO_HOME); > +%constant /* wxArtID */ const char * ART_FILE_OPEN = wxART_MAKE_ART_ID(wxART_FILE_OPEN); > +%constant /* wxArtID */ const char * ART_FILE_SAVE = wxART_MAKE_ART_ID(wxART_FILE_SAVE); > +%constant /* wxArtID */ const char * ART_FILE_SAVE_AS = wxART_MAKE_ART_ID(wxART_FILE_SAVE_AS); > +%constant /* wxArtID */ const char * ART_PRINT = wxART_MAKE_ART_ID(wxART_PRINT); > +%constant /* wxArtID */ const char * ART_HELP = wxART_MAKE_ART_ID(wxART_HELP); > +%constant /* wxArtID */ const char * ART_TIP = wxART_MAKE_ART_ID(wxART_TIP); > +%constant /* wxArtID */ const char * ART_REPORT_VIEW = wxART_MAKE_ART_ID(wxART_REPORT_VIEW); > +%constant /* wxArtID */ const char * ART_LIST_VIEW = wxART_MAKE_ART_ID(wxART_LIST_VIEW); > +%constant /* wxArtID */ const char * ART_NEW_DIR = wxART_MAKE_ART_ID(wxART_NEW_DIR); > +%constant /* wxArtID */ const char * ART_HARDDISK = wxART_MAKE_ART_ID(wxART_HARDDISK); > +%constant /* wxArtID */ const char * ART_FLOPPY = wxART_MAKE_ART_ID(wxART_FLOPPY); > +%constant /* wxArtID */ const char * ART_CDROM = wxART_MAKE_ART_ID(wxART_CDROM); > +%constant /* wxArtID */ const char * ART_REMOVABLE = wxART_MAKE_ART_ID(wxART_REMOVABLE); > +%constant /* wxArtID */ const char * ART_FOLDER = wxART_MAKE_ART_ID(wxART_FOLDER); > +%constant /* wxArtID */ const char * ART_FOLDER_OPEN = wxART_MAKE_ART_ID(wxART_FOLDER_OPEN); > +%constant /* wxArtID */ const char * ART_GO_DIR_UP = wxART_MAKE_ART_ID(wxART_GO_DIR_UP); > +%constant /* wxArtID */ const char * ART_EXECUTABLE_FILE = wxART_MAKE_ART_ID(wxART_EXECUTABLE_FILE); > +%constant /* wxArtID */ const char * ART_NORMAL_FILE = wxART_MAKE_ART_ID(wxART_NORMAL_FILE); > +%constant /* wxArtID */ const char * ART_TICK_MARK = wxART_MAKE_ART_ID(wxART_TICK_MARK); > +%constant /* wxArtID */ const char * ART_CROSS_MARK = wxART_MAKE_ART_ID(wxART_CROSS_MARK); > +%constant /* wxArtID */ const char * ART_ERROR = wxART_MAKE_ART_ID(wxART_ERROR); > +%constant /* wxArtID */ const char * ART_QUESTION = wxART_MAKE_ART_ID(wxART_QUESTION); > +%constant /* wxArtID */ const char * ART_WARNING = wxART_MAKE_ART_ID(wxART_WARNING); > +%constant /* wxArtID */ const char * ART_INFORMATION = wxART_MAKE_ART_ID(wxART_INFORMATION); > +%constant /* wxArtID */ const char * ART_MISSING_IMAGE = wxART_MAKE_ART_ID(wxART_MISSING_IMAGE); > +%constant /* wxArtID */ const char * ART_COPY = wxART_MAKE_ART_ID(wxART_COPY); > +%constant /* wxArtID */ const char * ART_CUT = wxART_MAKE_ART_ID(wxART_CUT); > +%constant /* wxArtID */ const char * ART_PASTE = wxART_MAKE_ART_ID(wxART_PASTE); > +%constant /* wxArtID */ const char * ART_DELETE = wxART_MAKE_ART_ID(wxART_DELETE); > +%constant /* wxArtID */ const char * ART_NEW = wxART_MAKE_ART_ID(wxART_NEW); > +%constant /* wxArtID */ const char * ART_UNDO = wxART_MAKE_ART_ID(wxART_UNDO); > +%constant /* wxArtID */ const char * ART_REDO = wxART_MAKE_ART_ID(wxART_REDO); > +%constant /* wxArtID */ const char * ART_QUIT = wxART_MAKE_ART_ID(wxART_QUIT); > +%constant /* wxArtID */ const char * ART_FIND = wxART_MAKE_ART_ID(wxART_FIND); > +%constant /* wxArtID */ const char * ART_FIND_AND_REPLACE = wxART_MAKE_ART_ID(wxART_FIND_AND_REPLACE); > + > %constant const int LAYOUT_UNCONSTRAINED = wxUnconstrained; > +======> +%constant const int LAYOUT_UNCONSTRAINED = wxUnconstrained; > +>>>>>>> .r534 > %constant const int LAYOUT_AS_IS = wxAsIs; > %constant const int LAYOUT_PERCENT_OF = wxPercentOf; > %constant const int LAYOUT_ABOVE = wxAbove; > > ------------------------------------------------------------------------ > > Index: wxruby2/swig/typedefs.i > ==================================================================> --- wxruby2/swig/typedefs.i (revision 534) > +++ wxruby2/swig/typedefs.i (working copy) > @@ -12,3 +12,5 @@ > enum wxCalendarDateBorder; > typedef signed char wxDash; > typedef long wxTextPos; > +typedef wxString wxArtClient; > +typedef wxString wxArtID; > > ------------------------------------------------------------------------ > > Index: wxruby2/swig/classes/ArtProvider.i > ==================================================================> --- wxruby2/swig/classes/ArtProvider.i (revision 534) > +++ wxruby2/swig/classes/ArtProvider.i (working copy) > @@ -5,10 +5,6 @@ > > %module(directors="1") wxArtProvider > > -# The following are not yet compatible with SWIG 1.3.29 > -%ignore GetBitmap; > -%ignore GetIcon; > - > %rename(ArtProvider) wxRubyArtProvider; > > %import "include/wxObject.h" > @@ -47,6 +43,20 @@ > return wxNullBitmap; > return result; > } > + > + static wxBitmap GetBitmap(const wxArtID& id, > + const wxArtClient& client, > + const wxSize& size) > + { > + return wxArtProvider::GetBitmap(id, client, size); > + } > + > + static wxIcon wxRubyArtProvider::GetIcon(const wxArtID& id, > + const wxArtClient& client, > + const wxSize& size) > + { > + return wxArtProvider::GetIcon(id, client, size); > + } > }; > > > > ------------------------------------------------------------------------ > > require ''wx'' > > ArtClients = [ "Wx::ART_TOOLBAR", > "Wx::ART_MENU", > "Wx::ART_FRAME_ICON", > "Wx::ART_CMN_DIALOG", > "Wx::ART_HELP_BROWSER", > "Wx::ART_MESSAGE_BOX", > "Wx::ART_OTHER", > ] > > ArtIDs = [ "Wx::ART_ADD_BOOKMARK", > "Wx::ART_DEL_BOOKMARK", > "Wx::ART_HELP_SIDE_PANEL", > "Wx::ART_HELP_SETTINGS", > "Wx::ART_HELP_BOOK", > "Wx::ART_HELP_FOLDER", > "Wx::ART_HELP_PAGE", > "Wx::ART_GO_BACK", > "Wx::ART_GO_FORWARD", > "Wx::ART_GO_UP", > "Wx::ART_GO_DOWN", > "Wx::ART_GO_TO_PARENT", > "Wx::ART_GO_HOME", > "Wx::ART_FILE_OPEN", > "Wx::ART_FILE_SAVE", > "Wx::ART_FILE_SAVE_AS", > "Wx::ART_PRINT", > "Wx::ART_HELP", > "Wx::ART_TIP", > "Wx::ART_REPORT_VIEW", > "Wx::ART_LIST_VIEW", > "Wx::ART_NEW_DIR", > "Wx::ART_HARDDISK", > "Wx::ART_FLOPPY", > "Wx::ART_CDROM", > "Wx::ART_REMOVABLE", > "Wx::ART_FOLDER", > "Wx::ART_FOLDER_OPEN", > "Wx::ART_GO_DIR_UP", > "Wx::ART_EXECUTABLE_FILE", > "Wx::ART_NORMAL_FILE", > "Wx::ART_TICK_MARK", > "Wx::ART_CROSS_MARK", > "Wx::ART_ERROR", > "Wx::ART_QUESTION", > "Wx::ART_WARNING", > "Wx::ART_INFORMATION", > "Wx::ART_MISSING_IMAGE", > "Wx::ART_COPY", > "Wx::ART_CUT", > "Wx::ART_PASTE", > "Wx::ART_DELETE", > "Wx::ART_NEW", > "Wx::ART_UNDO", > "Wx::ART_REDO", > "Wx::ART_QUIT", > "Wx::ART_FIND", > "Wx::ART_FIND_AND_REPLACE", > ] > > class MyArtProvider < Wx::ArtProvider > def initialize(log) > super() > @log = log > end > > def CreateBitmap(artid, client, size) > # You can do anything here you want, such as using the same > # image for any size, any client, etc., or using specific > # images for specific sizes, whatever... > > # See end of file for the image data > > bmp = Wx::Bitmap.new > # use this one for all 48x48 images > if size.width == 48: > bmp = make_bitmap("smile48.png") > > # but be more specific for these > elsif size.width == 16 and artid == wx.ART_ADD_BOOKMARK: > bmp = make_bitmap("smile16.png") > elsif size.width == 32 and artid == wx.ART_ADD_BOOKMARK: > bmp = make_bitmap("smile32.png") > > # and just ignore the size for these > elsif artid == Wx::ART_GO_BACK: > bmp = make_bitmap("left.png") > #elsif artid == Wx::ART_GO_FORWARD: > # bmp = make_bitmap("right.png") > #elsif artid == Wx::ART_GO_UP: > # bmp = make_bitmap("up.png") > elsif artid == Wx::ART_GO_DOWN: > bmp = make_bitmap("down.png") > elsif artid == Wx::ART_GO_TO_PARENT: > bmp = make_bitmap("back.png") > > #elsif artid == Wx::ART_CROSS_MARK: > # bmp = make_bitmap("cross.png") > #elsif artid == Wx::ART_TICK_MARK: > # bmp = make_bitmap("tick.png") > end > > if bmp.ok > @log.write_text("MyArtProvider: providing #{artid}:#{client} at #{size.x}x#{size.y}") > end > bmp > end > > def make_bitmap(f) > Wx::Bitmap.new(Wx::Image.new(f)) > end > end > > class TestPanel < Wx::Panel > def initialize(parent, log) > super(parent, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::NO_FULL_REPAINT_ON_RESIZE) > @log = log > > sizer = Wx::BoxSizer.new(Wx::VERTICAL) > > title = Wx::StaticText.new(self, -1, "ArtProvider") > title.set_font(Wx::Font.new(18, Wx::SWISS, Wx::NORMAL, Wx::BOLD)) > sizer.add(title, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > > line = Wx::StaticLine.new(self, -1, Wx::DEFAULT_POSITION, Wx::Size.new(20,-1), Wx::LI_HORIZONTAL) > sizer.add(line, 0, Wx::GROW|Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 5) > > fgs = Wx::FlexGridSizer.new(0, 3, 10, 10) > > combo = Wx::ComboBox.new(self, -1, "", Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, > ArtClients, Wx::CB_DROPDOWN|Wx::CB_READONLY) > fgs.add(combo, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > evt_combobox(combo.get_id) { |event| on_select_client(event) } > combo.set_selection(0) > > combo = Wx::ComboBox.new(self, -1, "", Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, > ArtIDs, Wx::CB_DROPDOWN|Wx::CB_READONLY) > fgs.add(combo, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > evt_combobox(combo.get_id) { |event| on_select_id(event) } > combo.set_selection(0) > > # Custom provider not currently working > #cb = Wx::CheckBox.new(self, -1, "Use custom provider") > #fgs.add(cb, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > #evt_checkbox(cb.get_id) { |event| on_use_custom(event) } > # One extra spacer to account for missing checkbox > fgs.add(10, 10, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > > fgs.add(10, 10, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > fgs.add(10, 10, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > fgs.add(10, 10, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > > box = Wx::BoxSizer.new(Wx::VERTICAL) > bmp = Wx::Bitmap.new(16,16) > @bmp16 = Wx::StaticBitmap.new(self, -1, bmp, Wx::DEFAULT_POSITION) > box.add(@bmp16, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > text = Wx::StaticText.new(self, -1, "16x16") > box.add(text, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > > fgs.add(box, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > > box = Wx::BoxSizer.new(Wx::VERTICAL) > bmp = Wx::Bitmap.new(32,32) > @bmp32 = Wx::StaticBitmap.new(self, -1, bmp, Wx::DEFAULT_POSITION) > box.add(@bmp32, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > text = Wx::StaticText.new(self, -1, "32x32") > box.add(text, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > > fgs.add(box, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > > box = Wx::BoxSizer.new(Wx::VERTICAL) > bmp = Wx::Bitmap.new(48,48) > @bmp48 = Wx::StaticBitmap.new(self, -1, bmp, Wx::DEFAULT_POSITION) > box.add(@bmp48, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > text = Wx::StaticText.new(self, -1, "48x48") > box.add(text, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > > fgs.add(box, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5) > sizer.add(fgs, 0, Wx::ALL, 5) > set_sizer(sizer) > > @client = eval(ArtClients[0]) > @artid = eval(ArtIDs[0]) > get_art > end > > def on_select_client(evt) > @log.write_text("on_select_client") > @client = eval(evt.get_string) > get_art > end > > > def on_select_id(evt) > @log.write_text("on_select_id") > @artid = eval(evt.get_string) > get_art > end > > > def on_use_custom(evt) > if evt.is_checked > @log.write_text("Images will now be provided by MyArtProvider") > Wx::ArtProvider.push_provider( MyArtProvider.new(@log) ) > else > @log.write_text("MyArtProvider deactivated\n") > Wx::ArtProvider.pop_provider > end > get_art > end > > > def get_art > @log.write_text("Getting art for #{@client}:#{@artid}") > > bmp = Wx::ArtProvider.get_bitmap(@artid, @client, Wx::Size.new(16,16)) > > if not bmp.ok > bmp = Wx::Bitmap.new(16,16) > clear_bmp(bmp) > end > > @bmp16.set_bitmap(bmp) > > bmp = Wx::ArtProvider::get_bitmap(@artid, @client, Wx::Size.new(32,32)) > > if not bmp.ok > bmp = Wx::Bitmap.new(32,32) > clear_bmp(bmp) > end > > @bmp32.set_bitmap(bmp) > > bmp = Wx::ArtProvider::get_bitmap(@artid, @client, Wx::Size.new(48,48)) > > if not bmp.ok > bmp = Wx::Bitmap.new(48,48) > clear_bmp(bmp) > end > > @bmp48.set_bitmap(bmp) > end > > > def clear_bmp(bmp) > dc = Wx::MemoryDC.new > dc.select_object(bmp) > dc.set_background(Wx::WHITE_BRUSH) > dc.clear > end > end > > module Demo > > def Demo.run(frame, nb, log) > win = TestPanel.new(nb, log) > return win > end > > def Demo.overview > return ''Wx::ArtProvider class can be used to customize the look of wxWindows > applications. When wxWindows internal classes need to display an icon > or a bitmap (e.g. in the standard file dialog), it does not use a > hard-coded resource but asks Wx::ArtProvider for it instead. This way > the users can plug in their own Wx::ArtProvider class and easily replace > standard art with his/her own version. It is easy thing to do: all > that is needed is to derive a class from Wx::ArtProvider, override its > CreateBitmap method and register the provider with > Wx::ArtProvider.push_provider. > > This class can also be used to get the platform native icons as > provided by Wx::ArtProvider.get_bitmap or Wx::ArtProvider.get_icon methods.'' > > end > > end > > ------------------------------------------------------------------------ > > Index: wxruby2/samples/bigdemo/bigdemo.rb > ==================================================================> --- wxruby2/samples/bigdemo/bigdemo.rb (revision 528) > +++ wxruby2/samples/bigdemo/bigdemo.rb (working copy) > @@ -155,14 +155,14 @@ > #~ ]], > > # Images > - #[''Using Images'', [ > + [''Using Images'', [ > # ''Throbber'', > - # ''wxArtProvider'', > + ''wxArtProvider'', > # ''wxDragImage'', > # ''wxImage'', > # ''wxImageFromStream'', > # ''wxMask'', > - # ]], > + ]], > > # Other stuff > #[''Miscellaneous'', [ > @@ -313,7 +313,7 @@ > @log.set_max_length(0) > Wx::Log::set_active_target(Wx::LogTextCtrl.new(@log)) > > - splitter2.split_horizontally(@nb, @log, 0) > + splitter2.split_horizontally(@nb, @log, 350) > splitter.split_vertically(@tree, splitter2, 190) > > splitter.set_minimum_pane_size(20) > @@ -546,7 +546,7 @@ > def on_init > frame = WxRubyDemo.new("WxRuby BIG combined demo", > Wx::DEFAULT_POSITION, > - Wx::Size.new(700, 400)) > + Wx::Size.new(750, 550)) > > frame.show(true) > end > > ------------------------------------------------------------------------ > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users-------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: RubyConstants.i.patch Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20060914/7e99af59/attachment-0001.pl
Possibly Parallel Threads
- RubyConstants.i.patch
- [838] trunk/wxruby2/doc/textile/artprovider.txtl: Add methods listing; rubyify examples; distinguish class methods
- ArtProvider.i.patch
- [1006] trunk/wxruby2/samples/bigdemo/wxArtProvider.rbw: ok method name changed to is_ok
- [ wxruby-Bugs-7773 ] ObjectPreviouslyDeleted error when using custom ArtProvider