# wxRuby

**URL:** https://www.ruby-forum.com/c/desktop/wxruby/29.md?page=15

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 16

---

## [Set the background to a bitmap](https://www.ruby-forum.com/t/set-the-background-to-a-bitmap/157614)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 5\
**Last updated:** [January 13, 2009, 10:17pm UTC](https://www.ruby-forum.com/t/set-the-background-to-a-bitmap/157614 "2009-01-13T22:17:55Z")

</div>

Hi, any ideas whether you can set the background of a dialog to use an image?

---

## [Mind checking my code?](https://www.ruby-forum.com/t/mind-checking-my-code/157611)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [January 13, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/mind-checking-my-code/157611 "2009-01-13T18:17:03Z")

</div>

I’m trying to get a project done: Making a GUI for my MUD client. I seem to be having some sort of bug, but I don’t understand why. Perhaps someone could take a look at my code? It is at http://pastie.org/359700 –Tha…

---

## [ListCtrl unexpected behavior](https://www.ruby-forum.com/t/listctrl-unexpected-behavior/157334)

<div class="topic-metadata">

**Author:** [@biospank](https://www.ruby-forum.com/u/biospank)\
**Replies:** 4\
**Last updated:** [January 10, 2009, 1:03am UTC](https://www.ruby-forum.com/t/listctrl-unexpected-behavior/157334 "2009-01-10T01:03:52Z")

</div>

Hi, using ListCtrl, I realized that, capturing the selection event by using the macro evt\_list\_item\_selected, I get mistaken event of type ListItem instead of type ListEvent. I noticed that this occurs when i use t…

---

## [New problem: Newlines](https://www.ruby-forum.com/t/new-problem-newlines/157244)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 10\
**Last updated:** [January 9, 2009, 9:35am UTC](https://www.ruby-forum.com/t/new-problem-newlines/157244 "2009-01-09T09:35:36Z")

</div>

I have this: test2 = TextCtrl.new(frame, 10, "Output here!", Point.new(0, 501), Size.new(500, 25), TE\_PROCESS\_ENTER) display.write\_text " \\n You entered: #{str}" But the ‘\\n’ isn’t… calculated? Inserted? It reads tha…

---

## [Errors with TextCtrl.new!](https://www.ruby-forum.com/t/errors-with-textctrl-new/157227)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 3\
**Last updated:** [January 8, 2009, 8:04pm UTC](https://www.ruby-forum.com/t/errors-with-textctrl-new/157227 "2009-01-08T20:04:58Z")

</div>

Here is my code: require ‘rubygems’ require ‘wx’ include Wx class GuiMudClientApp \< App def on\_init frame = Frame.new(nil, -1, “GMC: Incoming”).show test = TextCtrl.new(frame, -1, “-----Mud stuff here-----”, Poin…

---

## [Wxruby 1.9.9 menu - strange corruption](https://www.ruby-forum.com/t/wxruby-1-9-9-menu-strange-corruption/156773)

<div class="topic-metadata">

**Author:** [@rmcghee](https://www.ruby-forum.com/u/rmcghee)\
**Replies:** 7\
**Last updated:** [January 5, 2009, 1:04pm UTC](https://www.ruby-forum.com/t/wxruby-1-9-9-menu-strange-corruption/156773 "2009-01-05T13:04:51Z")

</div>

Environment: Windows XP Pro + SP3 ruby (1.8.6) wxruby (1.9.9) Please see attached code (smallest code to reproduce). I’d like to know if others can reproduce this problem. I completely removed and then re-installed…

---

## [CalendarCtrl - Weekdays names - Month names](https://www.ruby-forum.com/t/calendarctrl-weekdays-names-month-names/156504)

<div class="topic-metadata">

**Author:** [@Carlos\_Troncoso\_Phi](https://www.ruby-forum.com/u/Carlos_Troncoso_Phi)\
**Replies:** 1\
**Last updated:** [December 31, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/calendarctrl-weekdays-names-month-names/156504 "2008-12-31T17:12:43Z")

</div>

Hi there! I’ve been using wxRuby for some days, and already done some quite neat apps, but (there is always a but) even though I thought WeekDays names and month names where governed by the OS (and local localization)…

---

## [Ruby and Excel Issue](https://www.ruby-forum.com/t/ruby-and-excel-issue/155857)

<div class="topic-metadata">

**Author:** [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/ruby-and-excel-issue/155857 "2008-12-17T19:00:28Z")

</div>

All, It seems that Ruby has a problem with using variables in certain scenarios. Previously, I was passing a parameter to a class named ‘Test’ with a function in it named ‘go’. This is the syntax that I used, Test.…

---

## [Moving text on a window](https://www.ruby-forum.com/t/moving-text-on-a-window/155774)

<div class="topic-metadata">

**Author:** [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 8:53pm UTC](https://www.ruby-forum.com/t/moving-text-on-a-window/155774 "2008-12-16T20:53:24Z")

</div>

All, I am new to WxRuby, and I am reading the online WxRuby Documentation for help. I want to add a control to my application that can move text between two text controls on a window. For example, let’s say that I …

---

## [StyledTextCtrl not receiving all entered keys](https://www.ruby-forum.com/t/styledtextctrl-not-receiving-all-entered-keys/155653)

<div class="topic-metadata">

**Author:** [@robinr](https://www.ruby-forum.com/u/robinr)\
**Replies:** 4\
**Last updated:** [December 16, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/styledtextctrl-not-receiving-all-entered-keys/155653 "2008-12-16T14:52:29Z")

</div>

Hi, i am working on a little editor based on the StyledTextCtrl. The problem: The keys “wrtzfy.-#+124780” are not being received by the control, so there is no output within the control and no events are being trigge…

---

## [How do i refresh a window](https://www.ruby-forum.com/t/how-do-i-refresh-a-window/154787)

<div class="topic-metadata">

**Author:** [@ramo](https://www.ruby-forum.com/u/ramo)\
**Replies:** 4\
**Last updated:** [December 11, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/how-do-i-refresh-a-window/154787 "2008-12-11T21:19:10Z")

</div>

wel, I’m back with another newbee question. the problem i’m having and that i coldn’t find it on the internet is how to refresh a window, but someting more explained, maybe a tutorial or some doc? when i put muy wind…

---

## [MenuBar doesn't show](https://www.ruby-forum.com/t/menubar-doesnt-show/155256)

<div class="topic-metadata">

**Author:** [@Luc\_T](https://www.ruby-forum.com/u/Luc_T)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/menubar-doesnt-show/155256 "2008-12-09T23:59:00Z")

</div>

Hi all, I am totally new to Ruby and Wx so i’d appreciate it if someone could tell me why my menubar doesn’t show Here is the code (running on Vista…): class MinimalApp \< App def on\_init @frame = Frame.new(nil, -1,…

---

## [Static line is not drawn](https://www.ruby-forum.com/t/static-line-is-not-drawn/153784)

<div class="topic-metadata">

**Author:** [@ramo](https://www.ruby-forum.com/u/ramo)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/static-line-is-not-drawn/153784 "2008-12-03T22:56:41Z")

</div>

Hello there, My next problem is with a wx::StaticLine ok, in the code, i’m using a notebook and i’m putting a panel in it. I declare and initialize comboboxes, grids, lavels (static texts), textctrl, buttons, etc, an…

---

## [wxComboBox and wxTE\_PROCESS\_ENTER](https://www.ruby-forum.com/t/wxcombobox-and-wxte-process-enter/154475)

<div class="topic-metadata">

**Author:** [@biospank](https://www.ruby-forum.com/u/biospank)\
**Replies:** 7\
**Last updated:** [December 1, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/wxcombobox-and-wxte-process-enter/154475 "2008-12-01T21:04:02Z")

</div>

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 lo…

---

## [RFC on cleaning Wx::App](https://www.ruby-forum.com/t/rfc-on-cleaning-wx-app/154373)

<div class="topic-metadata">

**Author:** [@phi](https://www.ruby-forum.com/u/phi)\
**Replies:** 1\
**Last updated:** [November 29, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/rfc-on-cleaning-wx-app/154373 "2008-11-29T16:24:45Z")

</div>

Hi, I added a missing feature in Wx::App that let’s you handle in one place exceptions raised in any event handler (without exiting the main\_loop, so that these exceptions may be not fatal to the app). At that time I…

---

## [wxRuby 1.9.9 released](https://www.ruby-forum.com/t/wxruby-1-9-9-released/152305)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 13\
**Last updated:** [November 24, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/wxruby-1-9-9-released/152305 "2008-11-24T14:47:03Z")

</div>

Hello I’m happy to announce that wxRuby version 1.9.9 is now available for download and gem installation: http://rubyforge.org/frs/?group\_id=35&release\_id=27842 gem install wxruby On Linux, the default binary gem is…

---

## [Xrc Q ; using mulitple layouts(Frames , dialogs , panels)](https://www.ruby-forum.com/t/xrc-q-using-mulitple-layouts-frames-dialogs-panels/153658)

<div class="topic-metadata">

**Author:** [@jnruby](https://www.ruby-forum.com/u/jnruby)\
**Replies:** 4\
**Last updated:** [November 21, 2008, 4:04am UTC](https://www.ruby-forum.com/t/xrc-q-using-mulitple-layouts-frames-dialogs-panels/153658 "2008-11-21T04:04:34Z")

</div>

Hi , I am developing a simple GUI with wxruby. I am using wxFormbuilder to get the xrc file. I need a simple Frame with menu item file and submenu open,save and exit. And when I click on open(submenu) it should launc…

---

## [StaticBitmap](https://www.ruby-forum.com/t/staticbitmap/153387)

<div class="topic-metadata">

**Author:** [@cyrill](https://www.ruby-forum.com/u/cyrill)\
**Replies:** 3\
**Last updated:** [November 20, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/staticbitmap/153387 "2008-11-20T22:45:55Z")

</div>

How can I take image from Rmagick object? I try image.set\_data(blob), but this wrong… Is possible make scrollable StaticBitmap?

---

## [Making a frame stay on top sometimes](https://www.ruby-forum.com/t/making-a-frame-stay-on-top-sometimes/153725)

<div class="topic-metadata">

**Author:** [@erubin](https://www.ruby-forum.com/u/erubin)\
**Replies:** 4\
**Last updated:** [November 20, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/making-a-frame-stay-on-top-sometimes/153725 "2008-11-20T16:39:20Z")

</div>

I’m using STAY\_ON\_TOP in the style when I create my Frame app so it is always on top, and it works fine. What I want, though, is for the Frame to stay on top under some conditions, but behave normally under other co…

---

## [\[Fwd: Survey Invitation : Ruby + GUI\]](https://www.ruby-forum.com/t/fwd-survey-invitation-ruby-gui/153670)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 0\
**Last updated:** [November 19, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/fwd-survey-invitation-ruby-gui/153670 "2008-11-19T23:47:34Z")

</div>

Hi I’m running a short survey on GUI programming in Ruby. If you have a few spare minutes, please consider filling it out. I’m not suggesting you all vote for wxRuby, but all the better if you have nice things to say…

---

## [Xrcise question](https://www.ruby-forum.com/t/xrcise-question/153312)

<div class="topic-metadata">

**Author:** [@heinrich1208](https://www.ruby-forum.com/u/heinrich1208)\
**Replies:** 13\
**Last updated:** [November 18, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/xrcise-question/153312 "2008-11-18T16:37:36Z")

</div>

Hi all, where can I find a tutorial like “How to use wxFormbuilder with ruby”? I want to transform xrcise code into ruby code and don’t know how to do this. Thanks! bye Henry

---

## [GenericDirCtrl#re\_create\_tree behaviour](https://www.ruby-forum.com/t/genericdirctrl-re-create-tree-behaviour/153264)

<div class="topic-metadata">

**Author:** [@Mathias\_Bruce](https://www.ruby-forum.com/u/Mathias_Bruce)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/genericdirctrl-re-create-tree-behaviour/153264 "2008-11-14T12:27:51Z")

</div>

Hi When GenericDirCtrl#re\_create\_tree is called in order to refresh the tree with any possible changes made to the file system since it was loaded, it doesn’t re-expand all the tree items that were expanded prior to …

---

## [How to refresh a panel?](https://www.ruby-forum.com/t/how-to-refresh-a-panel/153258)

<div class="topic-metadata">

**Author:** [@ramo](https://www.ruby-forum.com/u/ramo)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 1:58am UTC](https://www.ruby-forum.com/t/how-to-refresh-a-panel/153258 "2008-11-14T01:58:22Z")

</div>

Hello again This time i have a problem with this code Well, what i’m trying to do is, through a menu, to change panels. The problem is that i can’t find a way to change the panel, or refresh or delete, or whatever sh…

---

## [Text color](https://www.ruby-forum.com/t/text-color/153228)

<div class="topic-metadata">

**Author:** [@cyrill](https://www.ruby-forum.com/u/cyrill)\
**Replies:** 2\
**Last updated:** [November 14, 2008, 1:33am UTC](https://www.ruby-forum.com/t/text-color/153228 "2008-11-14T01:33:10Z")

</div>

Hello. I can’t change text color (on vista). How can I do this? http://pastie.org/313982 I try mingw too…

---

## [A grid without row labels?](https://www.ruby-forum.com/t/a-grid-without-row-labels/153092)

<div class="topic-metadata">

**Author:** [@ramo](https://www.ruby-forum.com/u/ramo)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 10:39pm UTC](https://www.ruby-forum.com/t/a-grid-without-row-labels/153092 "2008-11-12T22:39:25Z")

</div>

Hello there I’m working on a grid of many rows and one column For example: if I want to show the name of the states, I only need their names and nothing more, so the grid will be a many rows(number of states) and one…

---

## [TE\_CENTRE not defined in Windows](https://www.ruby-forum.com/t/te-centre-not-defined-in-windows/153134)

<div class="topic-metadata">

**Author:** [@erubin](https://www.ruby-forum.com/u/erubin)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/te-centre-not-defined-in-windows/153134 "2008-11-12T15:48:17Z")

</div>

When I try to create a TextCtrl with the TE\_CENTRE style I get the message “uninitialized constant Wxruby2::TE\_CENTRE”. I have the same problem with TE\_RIGHT, but TE\_LEFT and all the other TE\_\* styles seem to work f…

---

## [Can't subclass AuiDockArt](https://www.ruby-forum.com/t/cant-subclass-auidockart/153029)

<div class="topic-metadata">

**Author:** [@phi](https://www.ruby-forum.com/u/phi)\
**Replies:** 3\
**Last updated:** [November 12, 2008, 1:16pm UTC](https://www.ruby-forum.com/t/cant-subclass-auidockart/153029 "2008-11-12T13:16:59Z")

</div>

Hi, I’m using wxRuby with the Aui classes. Everything is fine (Manager, ToolBars, Panes, …) and now i want to override the default drawing for the manager. Thus I want to use #set\_art\_provider to give my implementati…

---

## [wxRuby error: Image file is not of type 9](https://www.ruby-forum.com/t/wxruby-error-image-file-is-not-of-type-9/151201)

<div class="topic-metadata">

**Author:** [@ramo](https://www.ruby-forum.com/u/ramo)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 1:35am UTC](https://www.ruby-forum.com/t/wxruby-error-image-file-is-not-of-type-9/151201 "2008-11-12T01:35:38Z")

</div>

Hello I’m having problems with rhis error, I couldnt found the solution (or even mention) on the internet I’m doing a toolbar, called @toolBarPrincipal, then I add the tool,and finally the #realize() method. This er…

---

## [GenericDirCtrl Bus Error crash on OSX](https://www.ruby-forum.com/t/genericdirctrl-bus-error-crash-on-osx/153002)

<div class="topic-metadata">

**Author:** [@Mathias\_Bruce](https://www.ruby-forum.com/u/Mathias_Bruce)\
**Replies:** 3\
**Last updated:** [November 11, 2008, 3:44am UTC](https://www.ruby-forum.com/t/genericdirctrl-bus-error-crash-on-osx/153002 "2008-11-11T03:44:51Z")

</div>

Hi all and thanks to everyone working on this project =o) I have a problem, and I suspect it has its origins in WxRuby… In my program I use a GenericDirCtrl and handle its corresponding TreeCtrl item selection event w…

---

## [HtmlEasyPrinting](https://www.ruby-forum.com/t/htmleasyprinting/152790)

<div class="topic-metadata">

**Author:** [@biospank](https://www.ruby-forum.com/u/biospank)\
**Replies:** 1\
**Last updated:** [November 7, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/htmleasyprinting/152790 "2008-11-07T13:31:53Z")

</div>

Hi all, in HtmlEasyPrinting how can i use PAGENUM and PAGESCNT macros? I’ve tried to use them into an html text: Wx::PAGENUM and Wx::PAGESCNT using set\_header and set\_footer but i get them undefined. Any suggestion…

[Previous page](https://www.ruby-forum.com/c/desktop/wxruby/29.md?page=14)

[Next page](https://www.ruby-forum.com/c/desktop/wxruby/29.md?page=16)
