search for: add_tool

Displaying 8 results from an estimated 8 matches for "add_tool".

2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...some toolbars + def setup_toolbars + tb1 = Wx::ToolBar.new( self, Wx::ID_ANY, + Wx::DEFAULT_POSITION, + Wx::DEFAULT_SIZE, + Wx::TB_FLAT|Wx::TB_NODIVIDER) + tb1.set_tool_bitmap_size( Wx::Size.new(48,48) ) + tb1.add_tool( 101, "Test", + Wx::ArtProvider::get_bitmap(Wx::ART_ERROR) ) + tb1.add_separator + tb1.add_tool( 102, "Test", + Wx::ArtProvider::get_bitmap(Wx::ART_QUESTION) ) + tb1.add_tool( 103, "Test", + Wx::ArtProvider...
2008 May 26
0
[ wxruby-Feature Requests-20367 ] wxToolBarTool (wxToolBarToolBase) missing, thus anti-OO
...ject represent a tool in a toolbar) makes it anti-OO and thus less rubyesque to manage toolbars. Toolbars are the last component (as I''v seen) that requires concrete ID''s. This is a pain to handle in ruby. We want objects (propaganda). Example: tb = Wx::Toolbar.new(frame) tb.add_tool(1000, "Click me", fancy_bitmap) tb.add_tool(1001, "Don''t click here", fancy_bitmap) evt_tool(1000) { puts "Great job" } evt_tool(1001) { puts "I warned you" } Those IDs: 1000, 1001 may clash with other toolbars on the same frame. For a fixed...
2008 Mar 07
9
copy & paste event
hi. now I have problem about copy and paste text in my application I make copy and paste button in toolbar and I have fuction of them but I don''t know how to make it can copy only selection text and paste into other textCtrl. see my picture for more info. thank you :) Attachments: http://www.ruby-forum.com/attachment/1526/untitled.JPG -- Posted via http://www.ruby-forum.com/.
2007 Jun 22
0
[1059] trunk/wxruby2/doc/textile/toolbar.txtl: Update ToolBar documentation to reflect recent changes in API
...;<span class="cx"> </span><span class="cx"> See also "window styles overview":windowstyles.html. Note that the Win32 </span><span class="lines">@@ -114,12 +113,14 @@ </span><span class="cx"> * "ToolBar#add_tool":#ToolBar_addtool </span><span class="cx"> * "ToolBar#add_check_tool":#ToolBar_addchecktool </span><span class="cx"> * "ToolBar#add_radio_tool":#ToolBar_addradiotool </span><ins>+* "ToolBar#clear_tools":#Tool...
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
....rb, I understood the whole thing :-). I just reused and modified slightly the method args_as_list. The new Sizer#add_item combines the features of add and insert in addition to the support of keyword arguments. Let me know what do you think about this proposal as this can be applicable to ToolBar#add_tool as well. So here is the proposal with a simple test application : require ''wx'' module Wx # Return the real arguments from the specified arguments definition and # the supplied mixed arguments # args_def : the ordered list of arguments with default value # e.g. [ [:pr...
2008 Sep 27
3
Problems with ToolBar Sintaxis
...uby and so is for wxruby,also this is my first time working with a GUI so please, please, be patient. I''m having problems with the code for a toolbar, i want to add an item, but a don''t know how. this is my code for now: @toolBarPrincipal=ToolBar.new(@panel) @toolBarPrincipal.add_tool(-1, ''&Bonzai'', Bitmap.new("/home/....... icon.ico")) I''ve already red the http://wxruby.rubyforge.org/doc/toolbar.html page (mi code is basically what comes there. I want to put it into a panel, named panel. At this point, a litle dot is drawn on the top-l...
2007 Jun 19
5
Wx::ToolBar#insert_tool
...toolId, Bitmap bitmap1, Bitmap bitmap2 = NullBitmap, Boolean isToggle = false, Object clientData = nil, String shortHelpString = "", String longHelpString = "") Should have a reference also in the parameters to String label just after Integer toolId, to conform with Wx::ToolBar#add_tool(). Just thought I''d give you guys a heads up on some of the stuff I found. More to come when I find it. Mario Steele -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-development/attachments/20070619/46f0cc9c/attachment...
2004 Jan 08
3
pictorG
...m information") # the Menubar menuBar = MenuBar.new menuBar.append menuFile, "&File" menuBar.append menuHelp, "&Help" set_menu_bar menuBar # Toolbar toolBar = create_tool_bar TB_HORIZONTAL&TB_FLAT&TB_TEXT, ID_TOOLBAR toolBar.add_tool ID_ABOUT, "Help", Bitmap.new("bitmaps/help.xpm"), "Get help" toolBar.realize() ToolTip.enable true # Frame (splitter inside) splitter=SplitterWindow.new(self,-1) # Categories @cat=Categories.new(splitter) @cat.evt_tree_item_activated(@cat...