search for: get_height

Displaying 18 results from an estimated 18 matches for "get_height".

2005 Jan 22
9
Dragging images across the canvas
...lse) dc.free end def on_motion(event) x = event.get_x y = event.get_y move_region(x,y) if (@left_dn and (@reg.contains(x,y) == 0)) end def on_paint paint{|dc| dc.clear dc.draw_bitmap(@bitmap, 0, 0, false) } w,h = @bitmap.get_width, @bitmap.get_height @reg = Wx::Region.new(0,0,w,h) end end class ImagesApp < Wx::App def on_init frame = MyFrame.new("Simple Image Demo") frame.show end end Wx::init_all_image_handlers a = ImagesApp.new a.main_loop() __END__ _______________________________________________ w...
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
2009 Mar 23
3
How to put a background image on a panel
Well I''ve made a lot of progress on my app, but I''m stuck on figuring out how to add a bitmap. I have a notebook and a page panel. On this panel I want to put a backdrop image and scale it to the size of the panel. How do I do this? I looked at some of the samples related to bitmaps and I could not see how to apply that to my situation. Thanks, T.
2008 Nov 29
3
Can't run Evidence Scribe
...tem.NotImplementedException: The requested feature is not implemented [GDI+ status: NotImplemented] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] at System.Drawing.Font.GetHeight (Single dpi) [0x00000] at System.Drawing.Font.GetHeight () [0x00000] at System.Drawing.Font.get_Height () [0x00000] at (wrapper remoting-invoke-with-check) System.Drawing.Font:get_Height () at System.Windows.Forms.Form.GetAutoScaleSize (System.Drawing.Graphics g, System.Drawing.Font font) [0x00000] at System.Windows.Forms.Form..ctor () [0x00000] at ao..ctor () [0x00000] at (wrapper man...
2007 Aug 02
0
2 commits - libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c
...er *player = SWFDEC_PLAYER (cx); - if (player->stage_width > -1) { - SWFDEC_AS_VALUE_SET_INT (ret, player->stage_width); - } else { - SWFDEC_AS_VALUE_SET_INT (ret, player->width); - } + SWFDEC_AS_VALUE_SET_INT (ret, player->internal_width); } SWFDEC_AS_NATIVE (666, 7, get_height) @@ -148,11 +144,7 @@ get_height (SwfdecAsContext *cx, SwfdecA { SwfdecPlayer *player = SWFDEC_PLAYER (cx); - if (player->stage_height > -1) { - SWFDEC_AS_VALUE_SET_INT (ret, player->stage_height); - } else { - SWFDEC_AS_VALUE_SET_INT (ret, player->height); - } + SWFDEC_...
2007 May 22
0
[1030] trunk/wxruby2/samples/printing/printing.rb: Fix so will print again.
...t;> max_y += (2*margin_y) </span><span class="cx"> </span><span class="cx"> # Get the size of the DC in pixels </span><del>- w, h = dc.get_size </del><ins>+ size = dc.get_size + w = size.get_width + h = size.get_height </ins><span class="cx"> </span><span class="cx"> # Calculate a suitable scaling factor </span><span class="cx"> scale_x=(w/max_x) </span><span class="lines">@@ -306,7 +308,9 @@ </span><span cla...
2004 Jan 08
3
pictorG
...========================= class MyImageFrame < Dialog # -- opens a dialog to show a picture def initialize parent, title, filename super(parent, -1, title) @bitmap=Bitmap.new(filename,BITMAP_TYPE_ANY) # why should I say BITMAP_TYPE_ANY? set_client_size_wh(@bitmap.get_width,@bitmap.get_height) evt_paint {on_paint()} 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...
2006 Oct 03
0
IconBundle and ListView
...con is viewed in taskbar, menubar or when alt-tabbing. Unfortunately I can''t test this because OS X doesn''t use application icons in this way. The key methods seem to return the right thing - although Wx::Icon itself seems to be returning broken (double-typemapped?) values for get_height etc. ListView is just a simple interface facade onto ListCtrl alex _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2004 Feb 02
0
the sample
...umentacio: http://hu.php.net --+ -------------- next part -------------- #!/usr/bin/ruby require ''wxruby'' include Wx class MyImageFrame < Dialog def initialize parent, title, bmap super(parent, -1, title) @bitmap=bmap set_client_size_wh(@bitmap.get_width,@bitmap.get_height) evt_paint {|what| on_paint(what)} evt_left_down {on_click()} end def on_click close end def on_paint what dc = PaintDC.new(self) dc.draw_bitmap(@bitmap,0,0,true) end end class MyFrame < Wx::Frame def initialize(title) super(nil, -1, title) b=Button.new...
2007 Jan 03
0
[823] trunk/wxruby2/doc/textile: Remove docs for some deprecated classes
...- -h2. See also - -Tab classes overviewwxtaboverview - -<div id="methods"> - -h2. Methods - -* "TabControl.new":#TabControl_new -* "TabControl#get_col_position":#TabControl_getcolposition -* "TabControl#get_font":#TabControl_getfont -* "TabControl#get_height":#TabControl_getheight -* "TabControl#get_id":#TabControl_getid -* "TabControl#get_label":#TabControl_getlabel -* "TabControl#get_row_position":#TabControl_getrowposition -* "TabControl#get_selected":#TabControl_getselected -* "TabControl#get_width&...
2007 Mar 22
0
[911] trunk/wxsugar/lib/wx_sugar/wx_classes: Added default? method for size and position
...amp;nbsp&nbsp&nbsp&nbsp2007-03-22 09:26:31 UTC (rev 911) </span><span class="lines">@@ -0,0 +1,7 @@ </span><ins>+class Wx::Size + # Checks if this equal to Wx::DEFAULT_SIZE (i.e. no explicit + # dimensions set) + def default? + get_width == -1 and get_height == -1 + end +end </ins></span></pre> </div> </div> </body> </html>
2006 Nov 24
0
[755] trunk/wxruby2/lib/wx/classes: Nicer more meaningful string representations of objects; hide Wxruby2
...unk/wxruby2/lib/wx/classes/size.rb&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-11-24 16:29:08 UTC (rev 755) </span><span class="lines">@@ -0,0 +1,5 @@ </span><ins>+class Wx::Size + def to_s + "#<Wx::Size: (#{get_width}, #{get_height})>" + end +end </ins></span></pre> </div> </div> </body> </html>
2007 May 10
11
wxRuby2 0.0.40
Congratulations, wxRuby2 0.0.40 but,where is 0.0.40 mswin32.gem? _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Jul 26
0
6 commits - libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c test/trace
...gc, SwfdecAsValue *argv, SwfdecAsValue *ret) +{ + SwfdecPlayer *player = SWFDEC_PLAYER (cx); + + if (player->stage_width > -1) { + SWFDEC_AS_VALUE_SET_INT (ret, player->stage_width); + } else { + SWFDEC_AS_VALUE_SET_INT (ret, player->width); + } +} + +SWFDEC_AS_NATIVE (666, 7, get_height) +void +get_height (SwfdecAsContext *cx, SwfdecAsObject *object, + guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) +{ + SwfdecPlayer *player = SWFDEC_PLAYER (cx); + + if (player->stage_height > -1) { + SWFDEC_AS_VALUE_SET_INT (ret, player->stage_height); + } else { + SWFDE...
2012 Aug 17
0
Wine release 1.5.11
...ved Invoke(DISPID_ENABLED) invocation to separated function. mshtml: Added IHTMLObjectElement::put_width implementation. mshtml: Added IHTMLObjectElement::get_width implementation. mshtml: Added IHTMLObjectElement::put_height implementation. mshtml: Added IHTMLObjectElement::get_height implementation. mshtml: Added more IHTMLObjectElement tests. Jan Beich (2): ntdll: Prefer a portable function to get thread id. ntdll: Fetch thread id on NetBSD. Julian R?ger (1): po: Update German translation. J?zef Kucia (18): d3dx9/tests: Clean up device state af...
2012 Apr 13
0
Wine release 1.5.2
...MLMetaElement::get_name implementation. mshtml: Added IHTMLMetaElement::get_content implementation. mshtml: Added IHTMLMetaElement::get_httpEquiv implementation. mshtml: Use helpers for IHTMLStyle::put_verticalAlign property implementation. mshtml: Use helper for IHTMLStyle::get_height implementation. mshtml: Use helper for IHTMLStyle::get_top implementation. mshtml: Use helper for IHTMLStyle::get_left implementation. mshtml: Use helper for IHTMLStyle::put_zIndex implementation. devenum: Removed useless structs. mshtml: Added IHTMLWindow2::onerror se...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...er); } @@ -136,7 +137,7 @@ get_width (SwfdecAsContext *cx, SwfdecAsObject *object, { SwfdecPlayer *player = SWFDEC_PLAYER (cx); - SWFDEC_AS_VALUE_SET_INT (ret, player->internal_width); + SWFDEC_AS_VALUE_SET_INT (ret, player->priv->internal_width); } SWFDEC_AS_NATIVE (666, 7, get_height) @@ -146,7 +147,7 @@ get_height (SwfdecAsContext *cx, SwfdecAsObject *object, { SwfdecPlayer *player = SWFDEC_PLAYER (cx); - SWFDEC_AS_VALUE_SET_INT (ret, player->internal_height); + SWFDEC_AS_VALUE_SET_INT (ret, player->priv->internal_height); } /* FIXME: do this smarter */ di...
2009 Dec 04
0
Wine release 1.1.34
...ttpSendRequestW. shdocvw: Use CoTaskMemFree to free url. mshtml: Added IHTMLWindow2::get_screen implementation. mshtml.idl: Added DispHTMLScreen declaration and use it in HTMLScreen object. mshtml: Added IHTMLScreen::get_width implementation. mshtml: Added IHTMLScreen::get_height implementation. mshtml: Added IHTMLScreen::get_colorDepth implementation. mshtml: Forward setting window.location to window.location.href. mshtml: Added IHTMLElement2::get_readyState implementation. mshtml: Added IHTMLElement2::get_readyState test. mshtml: Always set u...