search for: set_font

Displaying 20 results from an estimated 34 matches for "set_font".

2004 Jun 19
4
FlexGridSizer question
...MAN_12 = Wx::Font.new(12, Wx::ROMAN, Wx::NORMAL, Wx::NORMAL) class MyDialog < Wx::Dialog def initialize(parent) super( parent, -1, ''FlexGridSizer'') sizer = Wx::FlexGridSizer.new(4,2,0,5) week = Wx::StaticText.new(self, -1, ''Week'') week.set_font(ROMAN_10B) sizer.add(week,0, Wx::ALIGN_CENTRE_VERTICAL|Wx::ALIGN_RIGHT, 10) @week = Wx::TextCtrl.new(self, -1, ''week'') @week.set_font(ROMAN_12) sizer.add(@week, 0, Wx::ALL, 5) day = Wx::StaticText.new(self, -1, ''Day'') day.set_font(ROMAN_1...
2004 Aug 07
1
end_modal question
Really stupid question, but have you wrapped this all in an App class? If you don''t have a wxApp subclass driving your applications then all sorts of badness would happen. > I''m writing a custom little application for my boss''s high school > football team to track there stats play by play. > > My problem is that when I start the application, it
2007 Aug 24
2
setting the font in FXText
...# Ok button ok = FXButton.new(button, "OK", nil, self, ID_CANCEL, FRAME_RAISED|FRAME_THICK|LAYOUT_CENTER_X|LAYOUT_CENTER_Y|LAYOUT_FILL_X) ok.setDefault ok.setFocus end end However, when I add the following method to FXTextDialog and call it I get a Seg Fault!: def set_font() @fxtext.font = FXFont.new(getApp(), "courier", 8) end Usage in my application: def onTableHex(sender, sel, ptr) @dialog = FXTextDialog.new(self) @dialog.set_font() @dialog.show end How do I set my font once I have already created the dialog box or is this possi...
2007 Apr 29
0
[981] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Don''t call PaintDC.new; just refresh() instead of duplicating paint code
...lass="cx"> caret.hide </span><span class="cx"> end </span><span class="cx"> </span><del>- dc = PaintDC.new(self) - prepare_dc(dc) - dc.clear </del><ins>+ paint do | dc | + dc.clear + dc.set_font(@font) </ins><span class="cx"> </span><del>- dc.set_font(@font) - - for y in 0 ... @y_chars - line = @text[@x_chars * y,@x_chars] - dc.draw_text( line, @x_margin, @y_margin + y * @height_char ) </del><ins>+ for y in 0 ... @y_chars...
2007 Nov 18
4
set background label to transparent??
I just use wxRuby and I have problem I use background image on my app and when I create label it seem look background of label is gray, how can I change it into transparent???? -- Posted via http://www.ruby-forum.com/.
2005 Sep 02
2
About.rbw.patch
This patch file allows the About menu item in the bigdemo sample to work. _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Nov 13
0
[739] trunk/wxruby2/samples/dialogs/dialogs.rb: Changed back to using block version of paint in on_paint method.
...+138,11 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_paint(event) </span><del>- dc = PaintDC.new(self) - dc.set_text_foreground( get_app.canvas_text_colour ) - dc.set_font( get_app.canvas_font ) - dc.draw_text("Windows common dialogs test application", 10, 10) </del><ins>+ paint do |dc| + dc.set_text_foreground( get_app.canvas_text_colour ) + dc.set_font( get_app.canvas_font ) + dc.draw_text("Windows common dialogs test...
2007 Apr 30
0
[999] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Use paint() instead of ClientDC.new() in caret sample
...</span><span class="lines">@@ -107,16 +107,17 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def create_caret </span><del>- dc = ClientDC.new(self) - dc.set_font(@font) - @height_char = dc.get_char_height - @width_char = dc.get_char_width </del><ins>+ paint do | dc | + dc.set_font(@font) + @height_char = dc.get_char_height + @width_char = dc.get_char_width </ins><span class="cx"> </span><de...
2007 Mar 27
0
[922] branches/wxruby2/wxwidgets_282: Changes, additions and deprecations 2.6 -> 2.8 Wx API
...lines">@@ -99,6 +109,7 @@ </span><span class="cx"> * "DC#set_clipping_region":#DC_setclippingregion </span><span class="cx"> * "DC#set_device_origin":#DC_setdeviceorigin </span><span class="cx"> * "DC#set_font":#DC_setfont </span><ins>+* "DC#set_layout_direction":#DC_setlayoutdirection </ins><span class="cx"> * "DC#set_logical_function":#DC_setlogicalfunction </span><span class="cx"> * "DC#set_map_mode":#DC_setmapm...
2007 May 07
9
0.0.40 tagged
I''ve tagged 0.0.40 in subversion and created the release on rubyforge. Roy, Sean, please could you compile and upload the binary gems when you have a moment - thanks in advance. Drop me a line off list so I know when to make an announcement. cheers alex
2007 Apr 13
0
[952] branches/wxruby2/wxwidgets_282/doc/textile/gridcellattr.txtl: Doc fix from Wx 2.8
...Colour% colBack) </span><span class="cx"> </span><span class="cx"> Sets the background colour. </span><span class="cx"> </span><ins>+ </ins><span class="cx"> h3(#GridCellAttr_setfont). GridCellAttr#set_font </span><span class="cx"> </span><span class="cx"> *set_font*(%(arg-type)Font% font) </span><span class="cx"> </span><span class="cx"> Sets the font. </span><span class="cx"> </span&...
2004 May 12
8
New tutorial added!
Hey guys, It''s been awhile, but I''ve put up a new tutorial page on Wx::Frame. It''s the first half of the tutorial on Frame, the rest will come a little later. Let me know what you guys think. Any comments or criticisms are welcome. Let me know what was good and what could have been better, so that future tutorials will be able to incorporate those improvements.
2004 May 13
1
Ruby-style attribute accessors
Hi (think this got lost in the post) Bill Atkins wrote: > Are there any plans to replace the setter/getter methods with Ruby > attribute accessors? > e.g. "tree.set_font font" becomes "tree.font = font" I think I might prefer this style too. To see what this syntax looks like, you can fake it in Ruby fairly easily. Try the following (not extensively tested) just after you do "require ''wxruby''" cheers alex wx_classes =...
2004 May 13
0
Suggestions
My 2 cents... >> e.g. "tree.set_font font" becomes "tree.font = font" > No specific plans, although we have discussed it. There is some question > about whether they should be aliases for the "normal" C++ style, or if > they should replace the current approach. I really like the idea BUT if you...
2007 Jan 03
0
[823] trunk/wxruby2/doc/textile: Remove docs for some deprecated classes
...dth -* "TabControl#get_x":#TabControl_getx -* "TabControl#get_y":#TabControl_gety -* "TabControl#hit_test":#TabControl_hittest -* "TabControl#on_draw":#TabControl_ondraw -* "TabControl#set_col_position":#TabControl_setcolposition -* "TabControl#set_font":#TabControl_setfont -* "TabControl#set_id":#TabControl_setid -* "TabControl#set_label":#TabControl_setlabel -* "TabControl#set_position":#TabControl_setposition -* "TabControl#set_row_position":#TabControl_setrowposition -* "TabControl#set_selected...
2004 Sep 01
2
wxruby swig progress
I''ve checked a number of new .i files into the wxruby-swig tree. Not all of them are fully tested, but I thought it would be better for them to be there than to have somebody start duplicating the work. I''ve also added the ''caret'' and ''image'' samples, as well as the generic etc/test.rb. These need the unreleased SWIG-1.3.22. The current
2007 Feb 12
0
[866] trunk/wxruby2/doc/textile/htmlwindow.txtl: Added missing methods section
...t;:#HtmlWindow_selectall +* "HtmlWindow#selection_to_text":#HtmlWindow_selectiontotext +* "HtmlWindow#select_line":#HtmlWindow_selectline +* "HtmlWindow#select_word":#HtmlWindow_selectword +* "HtmlWindow#set_borders":#HtmlWindow_setborders +* "HtmlWindow#set_fonts":#HtmlWindow_setfonts +* "HtmlWindow#set_page":#HtmlWindow_setpage +* "HtmlWindow#set_related_frame":#HtmlWindow_setrelatedframe +* "HtmlWindow#set_related_status_bar":#HtmlWindow_setrelatedstatusbar +* "HtmlWindow#to_text":#HtmlWindow_totext +* "H...
2008 Aug 24
2
Missing ids in documentation
...;DC#set_axis_orientation</h3> dc.html:<h3>DC#set_background</h3> dc.html:<h3>DC#set_background_mode</h3> dc.html:<h3>DC#set_brush</h3> dc.html:<h3>DC#set_clipping_region</h3> dc.html:<h3>DC#set_device_origin</h3> dc.html:<h3>DC#set_font</h3> dc.html:<h3>DC#set_layout_direction</h3> dc.html:<h3>DC#set_logical_function</h3> dc.html:<h3>DC#set_map_mode</h3> paneltabview.html:<h3>PanelTabView#clear_windows</h3> paneltabview.html:<h3>PanelTabView#get_current_window</h3>...
2006 Oct 21
6
Window#paint patch
Attached is a patch and some extra files to fix our ObjectPreviouslyDeleted crasher with the paint method. As discussed, it just re-implements the method in Ruby. I created a directory lib/wx/classes as a place to hold Ruby extensions to the API. The attached app.rb and window.rb files should be added to it. When this patch is applied, files in that directory are automatically required on
2006 Oct 23
0
[709] trunk/wxruby2/samples/dialogs/dialogs.rb: Use paint method again, remove unnecessary global (Alex Fenton)
...gt;<ins>+ def on_paint(event) </ins><span class="cx"> paint do | dc | </span><del>- p dc </del><span class="cx"> dc.set_text_foreground( get_app.canvas_text_colour ) </span><span class="cx"> dc.set_font( get_app.canvas_font ) </span><span class="cx"> dc.draw_text("Windows common dialogs test application", 10, 10) </span><span class="lines">@@ -229,15 +223,15 @@ </span><span class="cx"> </span><span class=&q...