Displaying 5 results from an estimated 5 matches for "on_erase_background".
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.
2009 Jan 13
5
set the background to a bitmap
Hi,
any ideas whether you can set the background of a dialog to use an
image?
--
Posted via http://www.ruby-forum.com/.
2006 Oct 21
0
[697] trunk/wxruby2/samples/bigdemo: Fixed loading of other files so the sample can be run from another directory
...nbsp    2006-10-21 14:05:22 UTC (rev 697)
</span><span class="lines">@@ -38,7 +38,9 @@
</span><span class="cx"> @bg_bmp =
</span><span class="cx"> evt_erase_background {|event| on_erase_background(event)}
</span><span class="cx"> end
</span><del>- load "wxScrolledWindow.rbw"
</del><ins>+ scrollwin_demo_file = File.join(File.dirname(__FILE__),
+ "wxScrolledWindow.rbw"...
2006 Oct 21
0
[698] trunk/wxruby2/samples/bigdemo/MDIDemo.rbw: Removed broken background stuff to stop crash on OS X (tho still crashes
...ss="cx"> evt_menu(5000) {|event| on_new_window(event)}
</span><span class="cx"> evt_menu(5001) {|event| on_exit(event)}
</span><del>-
- if SHOW_BACKGROUND
- @bg_bmp =
- evt_erase_background {|event| on_erase_background(event)}
- end
</del><span class="cx"> scrollwin_demo_file = File.join(File.dirname(__FILE__),
</span><span class="cx"> "wxScrolledWindow.rbw")
</span><span class="cx">...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...uot;)
+ mb.append(@perspectives_menu, "Perspectives")
+ mb.append(options_menu, "Options")
+ mb.append(notebook_menu, "Notebook")
+ mb.append(help_menu, "Help")
+
+ set_menu_bar(mb)
+ end
+
+ def setup_events
+ evt_erase_background { | e | on_erase_background(e) }
+ evt_size{ | e | on_size(e) }
+
+ evt_menu(ID_CreateTree) { | e | on_create_tree }
+ evt_menu(ID_CreateGrid) { | e | on_create_grid }
+ evt_menu(ID_CreateText) { | e | on_create_text }
+ evt_menu(ID_CreateHTML) { | e | on_create_html }
+ evt_menu(ID_CreateSizeReport) { |...