search for: default_size

Displaying 20 results from an estimated 65 matches for "default_size".

2013 Jan 24
1
[PATCH 35/35] x86: Don't panic if can not alloc buffer for swiotlb
...panic, and use -ENOMEM return value according to Eric. panic early instead of using swiotlb_full to panic...according to Eric/Konrad. -v3: make swiotlb_init to be notpanic, but will affect: arm64, ia64, powerpc, tile, unicore32, x86. -v4: cleanup swiotlb_init by removing swiotlb_init_with_default_size. Suggested-by: Eric W. Biederman <ebiederm at xmission.com> Signed-off-by: Yinghai Lu <yinghai at kernel.org> Cc: Konrad Rzeszutek Wilk <konrad.wilk at oracle.com> Cc: Joerg Roedel <joro at 8bytes.org> Cc: Ralf Baechle <ralf at linux-mips.org> Cc: Jeremy Fitzhardinge...
2013 Jan 24
1
[PATCH 35/35] x86: Don't panic if can not alloc buffer for swiotlb
...panic, and use -ENOMEM return value according to Eric. panic early instead of using swiotlb_full to panic...according to Eric/Konrad. -v3: make swiotlb_init to be notpanic, but will affect: arm64, ia64, powerpc, tile, unicore32, x86. -v4: cleanup swiotlb_init by removing swiotlb_init_with_default_size. Suggested-by: Eric W. Biederman <ebiederm at xmission.com> Signed-off-by: Yinghai Lu <yinghai at kernel.org> Cc: Konrad Rzeszutek Wilk <konrad.wilk at oracle.com> Cc: Joerg Roedel <joro at 8bytes.org> Cc: Ralf Baechle <ralf at linux-mips.org> Cc: Jeremy Fitzhardinge...
2007 Aug 24
2
SURVEY: wxRuby API style
...as frame.get_title 2) Allow keyword constructors for window classes. This means you can write frame = Wx::Frame.new(parent, :title => ''foo'', :style => Wx::DEFAULT_FRAME_STYLE) as well as frame = Wx::Frame.new(parent, -1, ''foo'', Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::DEFAULT_FRAME_STYLE) In both cases, these would be based on the current wxSugar implementation, which is 100% backwards compatible - no existing code would need to be changed. Please feel free to comment on this thread here also thanks alex
2007 Mar 21
4
Bug in TextCtrl constructor
...structor for TextCtrl (originally uncovered while using WxSugar but it appears to apply to WxRuby itself as well). Here''s the output from irb: # ------ irb(main):001:0> require ''wx''; irb(main):002:0* ctl = Wx::TextCtrl.new(nil,-1,"",Wx::DEFAULT_POSITION,Wx::DEFAULT_SIZE,0,Wx::DEFAULT_VALIDATOR,"my_name") => #<Wx::TextCtrl:0x2e7a188> irb(main):003:0> puts ctl.get_name => nil # That should have printed "my_name" # ----- It''s not a show-stopper, though, as you can just assign to ctl.name. This bug shows up when you are t...
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...def initialize(parent) - super(parent, -1) - set_auto_layout(true) - evt_button(100) {|event| on_button(event)} - - set_background_colour(Wx::Colour.new("MEDIUM ORCHID")) - - @panelA = Wx::Window.new(self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::SIMPLE_BORDER) - @panelA.set_background_colour(Wx::BLUE) - txt = Wx::StaticText.new(@panelA, -1, "Resize the window and see\nwhat happens... Notice that\nthere is no OnSize handler.", - Wx::Point.new(5,5), Wx::Size.new(-1,50)) -...
2010 Mar 16
0
[ wxruby-Bugs-27976 ] Wx::ControlWithItems.select behavior is diferent than the documentation
...ithitems.html#ControlWithItems_select): >ControlWithItems#select > select(Integer n) >This is the same as set_selection and exists only because it is slightly more natural for controls >which support multiple selection. Code: > c = Wx::Choice.new self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, (''1''..''5'').to_a > c.select 2 Output: > in `select'': Swig director pure virtual method called wxControlWithItems::Select (RuntimeError) VS. Code: > c = Wx::Choice.new self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, (''1''..&...
2004 Jan 27
2
The flicker of the status bar.
...-------------------------------- 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 ) @status_bar = create_status_bar(3) set_status_bar( @status_bar ) end end a = RbApp.new a.main_loop #------------------------------------- Thanks for any answer in advance. -- Pavel. mailto:papushev@inp.nsk.s...
2007 Sep 03
1
API survey results & update
...can be created using keyword args. This is really handy, for example, if you mainly use Sizers to manage layouts, and so rarely need to set an explicit size or position for a window. So, for a multiline TextCtrl, before, this was necessary Wx::TextCtrl.new(parent, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TE_MULTILINE) now this is enough: Wx::TextCtrl.new(parent, :style => Wx::TE_MULTILINE) 2) One of the keyword constructor aspects is to allow a shorter notation for Size and Position arguments, using a two-element array: Wx::TextCtrl.new(parent, :size => [200, 100]) For consistency...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...close { | e | on_pane_close(e) } + evt_auinotebook_page_close(Wx::ID_ANY) { | e | on_notebook_page_close(e) } + end + + # create 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", +...
2006 Dec 01
0
[768] trunk/wxruby2/doc/textile/checklistbox.txtl: Corrected constructor method signature
...</span><span class="cx"> *CheckListBox.new*(%(arg-type)Window% parent, %(arg-type)Integer% id, </span><span class="cx"> %(arg-type)Point% pos = DEFAULT_POSITION, </span><del>- %(arg-type)Size% size = DEFAULT_SIZE, %(arg-type)Integer% n, - %(arg-type)String% choices[] = nil, </del><ins>+ %(arg-type)Size% size = DEFAULT_SIZE, + %(arg-type)Array% choices = [], </ins><span class="cx"> %(arg-type)Intege...
2008 Nov 30
7
wxComboBox and wxTE_PROCESS_ENTER
Hi all, i am trying to use wxComboBox (instead of wxChoice) to capture wxTE_PROCESS_ENTER event. If i enable TE_PROCESS_ENTER flag on the resulting xrc file, i get an ''Unknown style flag wxTE_PROCESS_ENTER'' on app loading. Probably wxComboBox doesn''t reconize this kind of event. How do i catch this event for the wxComboBox widget? Thank you all. bio.
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...array'', -1, -1, %w|foo bar baz|) + GC.start + assert_equal(%w|foo bar baz|, + f.control.get_item_data(id) ) + + f.close(true) + end + + def test_choice_itemdata + f = CtrlContainerFrame.new(Wx::Choice, Wx::DEFAULT_POSITION, + Wx::DEFAULT_SIZE, %w[hash string float]) + do_control_with_items_assertions(f) + f.close(true) + end + + def test_listbox_itemdata + f = CtrlContainerFrame.new(Wx::ListBox, Wx::DEFAULT_POSITION, + Wx::DEFAULT_SIZE, %w[hash string float]) + do_control_with_items_asser...
2004 Jan 08
3
pictorG
...evt_left_down {on_click()} end def on_click @bitmap.destroy() self.destroy() end def on_paint dc = PaintDC.new(self) dc.draw_bitmap(@bitmap,0,0,true) end end class Pictures < ListCtrl # -- show the pictures def initialize parent super parent,-1,DEFAULT_POSITION,DEFAULT_SIZE,LC_ICON|LC_AUTOARRANGE assign_image_list(@imageList=ImageList.new(THM_WIDTH,THM_HEIGHT),IMAGE_LIST_NORMAL) # evt_list_begin_drag(self.get_id) {|e| log_status "Oh, dragging"; dragsrc = DropSource.new(self); true } evt_list_item_activated(self.get_id) {|e| fn=e.get_item.ge...
2007 Apr 14
0
[966] branches/wxruby2/wxwidgets_282/doc/textile/listbox.txtl: Fix methods which don''t need a ''n'' item for arrays in Ruby
..."> </span><span class="cx"> Boolean *create*(%(arg-type)Window% parent, %(arg-type)Integer% id, </span><span class="cx"> %(arg-type)Point% pos = DEFAULT_POSITION, </span><del>- %(arg-type)Size% size = DEFAULT_SIZE, %(arg-type)Integer% n, - %(arg-type)String% choices[] = nil, %(arg-type)Integer% style = 0, </del><ins>+ %(arg-type)Size% size = DEFAULT_SIZE, + %(arg-type)String% choices[] = nil, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&a...
2007 Jan 04
3
grid control example doesn''t work on osx.4
...on my system. I copied the code below from the tutorial---------- #!/usr/bin/env ruby -w require ''rubygems'' require ''wx'' app = Wx::App.new frame = Wx::Frame.new( nil , -1 , "MiniApp" ) #grid = Wx::Grid.new( frame , 2000, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::WANTS_CHARS,"this the panel name" ) tgrid = Wx::Grid.new(frame, -1) tgrid.create_grid( 19 , 16 ) frame.show() app.main_loop() --------- Any help would be appreciated I have to get a little utility running on my mac and a windows machine before the 18th. Sincerely, Hawley
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...n><span class="cx"> *ListCtrl.new*(%(arg-type)Window% parent, %(arg-type)Integer% id, </span><span class="cx"> %(arg-type)Point% pos = DEFAULT_POSITION, </span><span class="cx"> %(arg-type)Size% size = DEFAULT_SIZE, </span><del>- %(arg-type)Integer% style = LC_ICON, </del><ins>+ %(arg-type)Integer% style = @LC_ICON@, </ins><span class="cx"> %(arg-type)Validator% validator = DEFAULT_VALIDATOR, </span><span cla...
2006 Sep 14
2
Patch to fix ArtProvider and ArtProvider sample
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
2006 Oct 19
0
[690] trunk/wxruby2/samples/text/unicode.rb: Placed controls within a panel so they appear on the correct themed background
...;cx"> </span><span class="cx"> " << File.read( $utf8_file ) </span><span class="cx"> </span><span class="lines">@@ -24,9 +24,6 @@ </span><span class="cx"> Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TE_MULTILINE) </span><span class="cx"> end </span><span class="cx"> </span><del>- # more ruby-ish - alias :<< :append_text - </del><span class="cx"> # run through a few useful methods of textctrl and rep...
2007 Jun 26
0
[1082] trunk/wxruby2/doc/textile/hyperlinkctrl.txtl: Added HyperlinkCtrl and HyperlinkEvent documentation
...gt; + + +h3(#HyperlinkCtrl_new). HyperlinkCtrl#hyper_link + + *_hyper_link*(%(arg-type)Window% parent, %(arg-type)Integer% id, %(arg-type)String% label, + %(arg-type)String% url, + %(arg-type)Point% pos = DEFAULT_POSITION, + %(arg-type)Size% size = DEFAULT_SIZE, + %(arg-type)Integer% style, + %(arg-type)String% name = "hyperlink") + +Constructor. See "Create":hyperlinkctrlcreate.html for more info. + + +h3(#HyperlinkCtrl_create). HyperlinkCtrl#create + + Boolean *create*(%(arg-type)Window% parent, %(arg...
2006 Nov 21
0
[746] trunk/wxruby2/doc/textile/listbox.txtl: Correct ruby method signature for methods that accept an array of strings
...ot;cx"> </span><span class="cx"> *ListBox.new*(%(arg-type)Window% parent, %(arg-type)Integer% id, </span><span class="cx"> %(arg-type)Point% pos = DEFAULT_POSITION, </span><del>- %(arg-type)Size% size = DEFAULT_SIZE, %(arg-type)Integer% n, - %(arg-type)String% choices[] = nil, %(arg-type)Integer% style = 0, </del><ins>+ %(arg-type)Size% size = DEFAULT_SIZE, + %(arg-type)Array% choices = nil, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...