Displaying 15 results from an estimated 15 matches for "set_size_hints".
2007 Apr 30
0
[996] branches/wxruby2/wxwidgets_282: TopLevelWindow: add some 2.8 methods; document; add missing CentreOnScreen
...pan><span class="cx"> * "TopLevelWindow#set_left_menu":#TopLevelWindow_setleftmenu
</span><ins>+* "TopLevelWindow#set_max_size":#TopLevelWindow_setmaxsize
+* "TopLevelWindow#set_min_size":#TopLevelWindow_setminsize
+* "TopLevelWindow#set_size_hints":#TopLevelWindow_setsizehints
</ins><span class="cx"> * "TopLevelWindow#set_right_menu":#TopLevelWindow_setrightmenu
</span><span class="cx"> * "TopLevelWindow#set_shape":#TopLevelWindow_setshape
</span><span class="...
2006 Oct 19
0
[691] trunk/wxruby2/samples/calendar/calendar.rb: Placed controls within a panel so they appear on the correct themed background
...gt;@@ -167,11 +166,11 @@
</span><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def configure_window
</span><del>- @sizer.add(@calendar, 0)
- @sizer.add(@date, 1)
- @sizer.set_size_hints(self)
</del><ins>+ @sizer.add(@calendar, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5)
+ @sizer.set_size_hints(@panel)
</ins><span class="cx"> layout
</span><del>- set_sizer(@sizer)
</del><ins>+ @panel.set_sizer(@sizer)...
2004 Apr 21
2
Resizing a ListCtrl
...izer = BoxSizer.new(HORIZONTAL)
# File List {{{
@fileList = ListCtrl.new(self, -1, DEFAULT_POSITION, Size.new(250,
200),
LC_REPORT | LC_SINGLE_SEL)
fillListCtrl()
centerSizer.add(@fileList, 6, GROW|EXPAND)
# }}}
@dlgSizer.add(centerSizer, 1)
@dlgSizer.set_size_hints(self)
set_sizer(@dlgSizer)
# end main layout }}}
## global events {{{
evt_close {onClose}
evt_size() {|event| onSize(event) }
# }}}
end ## }}}
def onClose ## {{{
destroy()
end ## }}}
def onSize(event=nil)
frame_size = event.get_size
x = frame_si...
2004 Jun 19
4
FlexGridSizer question
...AST, 10)
button = Wx::Button.new(self, Wx::ID_CANCEL, ''Cancel'',
Wx::Point.new(0,0),Wx::Size.new(70,25))
button.evt_button(Wx::ID_CANCEL){|event| onDoCancel()}
sizer.add(button, 0, Wx::SOUTH|Wx::EAST, 10)
self.set_sizer(sizer)
sizer.set_size_hints(self)
sizer.fit(self)
end
def onDoOK()
end_modal(Wx::ID_OK)
end
def onDoCancel()
end_modal(Wx::ID_CANCEL)
end
end
class MyApp < Wx::App
def on_init
frame = Wx::Frame.new(nil, -1, "Test",
Wx::Point.new(10, 100),...
2008 Feb 01
0
[ wxruby-Bugs-17697 ] "puts Frame.show" crashes application
...ample < Frame
def initialize(*args)
super
panel = Panel.new(self)
sizer = BoxSizer.new(Wx::VERTICAL)
# comment the line below and the bug goes away
sizer.add(StaticText.new(panel, -1, ''Hi, im a weird bug example''), 0, GROW|ALL, 4)
panel.set_sizer(sizer)
sizer.set_size_hints(panel)
sizer.fit(self)
end
end
App.run do
f = BugExample.new(nil)
puts f.show
end
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=17697&group_id=35
2007 May 31
0
[1041] trunk/wxruby2/samples/calendar/calendar.rb: Remove deprecated call to set_best_fitting_size
...UTC (rev 1040)
+++ trunk/wxruby2/samples/calendar/calendar.rb        2007-05-31 21:17:41 UTC (rev 1041)
</span><span class="lines">@@ -169,7 +169,6 @@
</span><span class="cx"> @sizer.set_size_hints(@panel)
</span><span class="cx"> layout
</span><span class="cx"> @panel.set_sizer(@sizer)
</span><del>- set_best_fitting_size
</del><span class="cx"> end
</span><span class="cx&quo...
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.
...ENTER | ALL, 5)
</ins><span class="cx">
</span><del>- set_auto_layout(TRUE)
- set_sizer(sizerTop)
</del><ins>+ set_auto_layout(true)
+ set_sizer(sizer_top)
</ins><span class="cx">
</span><del>- sizerTop.set_size_hints(self)
- sizerTop.fit(self)
</del><ins>+ sizer_top.set_size_hints(self)
+ sizer_top.fit(self)
</ins><span class="cx">
</span><del>- @m_btnFocused.set_focus()
- @m_btnFocused.set_default()
</del><ins>+ @btn_focused.set_focus...
2009 Jan 29
6
Control Characters
I am attempting a text editor using wxRuby. I''m having character issues.
Strings are not binary-safe.
Some characters are not allowed.
- newline / line feed (\n), tab (\t) are displayed
- carraige return (\r) is stripped
- Other control characters and high-ascii cause control values to become
empty.
Affected controls include: Wx::TextCtrl, Wx::StaticText, Wx::Clipboard,
et al.
Most
2004 Jun 02
13
wxGrid Question
When operating with a wxGrid is there a way to get a reference to the
TextCtrl field that is created when you start typing in a cell.
Also is there a way to get mouse events to work with a wxGrid, so far I
can''t get any of them to work. I had tried various combo''s of:
@grid.evt_left_down(){ |event|
puts "Left mouse is down"; }
using evt_left_down, evt_left_up,
2004 May 24
9
Combo Box
...ALL, 3)
evt_combobox(ID_DRIVES_BOX) {on_cmbx_change}
@btn_test_cmbx = Button.new(self, ID_BTN1, "Test ComboBox")
evt_button(ID_BTN1) { on_cmbx_change }
dlgSizer.add(@btn_test_cmbx, 1, ALIGN_RIGHT | ALL, 3)
dlgSizer.add(@fileList)
dlgSizer.set_size_hints(self)
set_sizer(dlgSizer)
set_size(Size.new(600,300))
layout()
end
def on_cmbx_change
p @drives_box.get_label
end
end
class TestApp < App
def on_init
frm = TestFrame.new
set_top_window(frm)
frm.centre(BOTH)
frm.show(t...
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...t;
</span><span class="cx"> Sets the range of one of the built-in scrollbars.
</span><span class="lines">@@ -2466,7 +2463,7 @@
</span><span class="cx">
</span><span class="cx"> h3(#Window_setsizehints). Window#set_size_hints
</span><span class="cx">
</span><del>- *set_size_hints*(%(arg-type)Integer% minW, %(arg-type)Integer% minH, %(arg-type)Integer% maxW=-1,
</del><ins>+ *set_size_hints*(%(arg-type)Integer% minW, %(arg-type)Integer% minH, %(arg-type)Integer% maxW=-1,...
2007 Mar 18
0
[894] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Document changed Window methods in 2.6 -> 2.8 API
...t; * "Window#get_update_region":#Window_getupdateregion
</span><span class="cx"> * "Window#get_validator":#Window_getvalidator
</span><span class="lines">@@ -213,7 +210,6 @@
</span><span class="cx"> * "Window#set_size_hints":#Window_setsizehints
</span><span class="cx"> * "Window#set_sizer":#Window_setsizer
</span><span class="cx"> * "Window#set_sizer_and_fit":#Window_setsizerandfit
</span><del>-* "Window#set_title":#Window_sett...
2003 Oct 20
5
wxruby - ruby-gtk2
Hi!
Can anybody tell me basic differences using wxwindows and gtk2 GUI with
ruby?
Gergo
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
| http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy |
| Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" |
+-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...ot;>
</span><span class="cx"> h4. See also
</span><span class="cx">
</span><del>-"Window#get_best_size":window.html#Window_getbestsize, "Window#set_best_fitting_size":window.html#Window_setbestfittingsize, "Window#set_size_hints":window.html#Window_setsizehints
</del><ins>+"Window#get_best_size":window.html#Window_getbestsize, "Window#set_initial_size":window.html#Window_setinitialsize
</ins><span class="cx">
</span><span class="cx">
</sp...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...dd(s12)
+ grid_sizer.add(s6); grid_sizer.add(s9)
+ grid_sizer.add(s7); grid_sizer.add(s10)
+ grid_sizer.add(s8); grid_sizer.add(s11)
+
+ cont_sizer =Wx::BoxSizer.new(Wx::VERTICAL)
+ cont_sizer.add(grid_sizer, 1, Wx::EXPAND|Wx::ALL, 5)
+ self.set_sizer(cont_sizer)
+ get_sizer.set_size_hints(self)
+ update_colours
+
+ evt_spinctrl(ID_PaneBorderSize) { | e | on_pane_border_size(e) }
+ evt_spinctrl(ID_SashSize) { | e | on_sash_size(e) }
+ evt_spinctrl(ID_CaptionSize) { | e | on_caption_size(e) }
+ evt_button(ID_BackgroundColour) { | e | on_set_colour(e) }
+ evt_button(I...