# wxRuby

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

[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:** 8

---

## [How to ge the handle of a menu?](https://www.ruby-forum.com/t/how-to-ge-the-handle-of-a-menu/184681)

<div class="topic-metadata">

**Author:** [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Replies:** 6\
**Last updated:** [March 9, 2010, 4:54am UTC](https://www.ruby-forum.com/t/how-to-ge-the-handle-of-a-menu/184681 "2010-03-09T04:54:31Z")

</div>

The GetHMenuOf() macro seems not available …

---

## [Button height problem](https://www.ruby-forum.com/t/button-height-problem/184722)

<div class="topic-metadata">

**Author:** [@DeNigris\_S](https://www.ruby-forum.com/u/DeNigris_S)\
**Replies:** 3\
**Last updated:** [March 9, 2010, 1:31am UTC](https://www.ruby-forum.com/t/button-height-problem/184722 "2010-03-09T01:31:57Z")

</div>

Hi list, I just started with wxruby and I ran into something - not sure if it’s a bug. No matter what I set the buttons properties/options to, the height of the button doesn’t change. Even when I set the text size t…

---

## [GridCellNumberEditor peculiarities](https://www.ruby-forum.com/t/gridcellnumbereditor-peculiarities/183919)

<div class="topic-metadata">

**Author:** [@tony44](https://www.ruby-forum.com/u/tony44)\
**Replies:** 5\
**Last updated:** [March 8, 2010, 3:16pm UTC](https://www.ruby-forum.com/t/gridcellnumbereditor-peculiarities/183919 "2010-03-08T15:16:06Z")

</div>

Hi, I’m using wxruby 2.0.1 w/ Ruby 1.8.7 on OS X 10.6.2. So far I have successfully implemented a grid with bool, choice and text edit controls. To combine the edit code with my app, I have subclassed the editor cont…

---

## [Ending Application When Window Closes](https://www.ruby-forum.com/t/ending-application-when-window-closes/183463)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [March 8, 2010, 2:46pm UTC](https://www.ruby-forum.com/t/ending-application-when-window-closes/183463 "2010-03-08T14:46:50Z")

</div>

OK, I KNOW I’ve got a case of tunnel vision here. I’ve written apps that use wxRuby without a problem. Regardless, I don’t see what I’m doing wrong here. The code in my main routine looks like this: class MyApp \< Wx::…

---

## [Mouse wheel events in a grid cell editor?](https://www.ruby-forum.com/t/mouse-wheel-events-in-a-grid-cell-editor/184081)

<div class="topic-metadata">

**Author:** [@tony44](https://www.ruby-forum.com/u/tony44)\
**Replies:** 3\
**Last updated:** [March 7, 2010, 5:20pm UTC](https://www.ruby-forum.com/t/mouse-wheel-events-in-a-grid-cell-editor/184081 "2010-03-07T17:20:03Z")

</div>

I’m trying to do some advanced editing using Grids. I’ve created my own editors and updating view and model both works fine so far. Thanks to whoever made this possible. I like wxRuby more each day! Now I’d like to ca…

---

## [Wxruby gem loaded, but require 'wxruby' not found](https://www.ruby-forum.com/t/wxruby-gem-loaded-but-require-wxruby-not-found/184607)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 2\
**Last updated:** [March 5, 2010, 11:46am UTC](https://www.ruby-forum.com/t/wxruby-gem-loaded-but-require-wxruby-not-found/184607 "2010-03-05T11:46:19Z")

</div>

I have wxruby gem installed. This is confirmed by gem list command. But when I run the sample code below I get an error that states: trout.rb:1:in require': no such file to load -- wxruby (Load Error) from trout.rb:1:…

---

## [Troubleintalling wxruby with ruby gems 1.3.5](https://www.ruby-forum.com/t/troubleintalling-wxruby-with-ruby-gems-1-3-5/184587)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/troubleintalling-wxruby-with-ruby-gems-1-3-5/184587 "2010-03-04T22:07:04Z")

</div>

I’ve updated to Ruby Gems version 1.3.5. When I then run the command ‘gem install wxruby’ I get an error message that says ERROR: While executing gem … (TypeError) incompatible marshal file format (can’t be read) …

---

## [UpdateUIEvent.set\_mode doesn't work](https://www.ruby-forum.com/t/updateuievent-set-mode-doesnt-work/184266)

<div class="topic-metadata">

**Author:** [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 12:15am UTC](https://www.ruby-forum.com/t/updateuievent-set-mode-doesnt-work/184266 "2010-03-02T00:15:02Z")

</div>

irb(main):001:0\> require ‘wx’ =\> true irb(main):002:0\> include Wx =\> Object irb(main):003:0\> UpdateUIEvent.set\_mode 1 TypeError: Expected argument 0 of type wxUpdateUIMode, but got Fixnum 1 in SWIG method ‘wxUpdate…

---

## [Running... libwx\_gtk2u\_gl-2.8.so.0](https://www.ruby-forum.com/t/running-libwx-gtk2u-gl-2-8-so-0/184205)

<div class="topic-metadata">

**Author:** [@GugSSSSo](https://www.ruby-forum.com/u/GugSSSSo)\
**Replies:** 1\
**Last updated:** [March 1, 2010, 11:34pm UTC](https://www.ruby-forum.com/t/running-libwx-gtk2u-gl-2-8-so-0/184205 "2010-03-01T23:34:40Z")

</div>

Hi all, i´m new at wxruby on Linux so when i run my first program: require ‘rubygems’ require ‘wx’ include Wx class MyFrame \< Frame def initialize() super(nil, -1, ‘Hi’) end end $ ruby oi.rb /usr/lib/ruby/gems…

---

## [Can't capture key events](https://www.ruby-forum.com/t/cant-capture-key-events/184164)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 10:53pm UTC](https://www.ruby-forum.com/t/cant-capture-key-events/184164 "2010-02-25T22:53:58Z")

</div>

In the following example code, there is no response to pressing any key. The mouse button does produce the desired result: require ‘rubygems’ require ‘wx’ class EventFrame \< Wx::Frame def initialize() super(nil, -1…

---

## [How to make a Grid reread the number of rows in a Table?](https://www.ruby-forum.com/t/how-to-make-a-grid-reread-the-number-of-rows-in-a-table/179863)

<div class="topic-metadata">

**Author:** [@Svend\_Haugaard\_SSSS](https://www.ruby-forum.com/u/Svend_Haugaard_SSSS)\
**Replies:** 7\
**Last updated:** [February 24, 2010, 9:44pm UTC](https://www.ruby-forum.com/t/how-to-make-a-grid-reread-the-number-of-rows-in-a-table/179863 "2010-02-24T21:44:43Z")

</div>

I have used GridTableBase to make and display a Table using a Grid. But if I add a new row to the Table the Grid will not display a new row. So if I start with 9 rows in the table and add a row, so there is 10 rows in…

---

## [Refreshing Window](https://www.ruby-forum.com/t/refreshing-window/169677)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 5\
**Last updated:** [February 18, 2010, 9:37pm UTC](https://www.ruby-forum.com/t/refreshing-window/169677 "2010-02-18T21:37:25Z")

</div>

If a long (relatively) operation takes place after dismissing a dialog, the underlying window is in an indeterminate state until the operation is complete. It would be good to be able to periodically display a status …

---

## [Date time picker](https://www.ruby-forum.com/t/date-time-picker/183605)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 2\
**Last updated:** [February 17, 2010, 3:54pm UTC](https://www.ruby-forum.com/t/date-time-picker/183605 "2010-02-17T15:54:00Z")

</div>

Sorry, stupid question I know in Wx there is a date time picker (textbox with button to show calendar) I already create that using xrc file now i want to create it without using xrc What is the class name? I cannot…

---

## [Weird style error](https://www.ruby-forum.com/t/weird-style-error/183600)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 0\
**Last updated:** [February 17, 2010, 5:32am UTC](https://www.ruby-forum.com/t/weird-style-error/183600 "2010-02-17T05:32:21Z")

</div>

Dear all @text\_108 = TextCtrl.new(@panel\_106, -1, “”, DEFAULT\_POSITION, DEFAULT\_SIZE, TE\_PROCESS\_ENTER|TE\_RIGHT, DEFAULT\_VALIDATOR) Why is that line up there give me error uninitialized constant Main::TE\_RIGHT (Name…

---

## [Registering custom events](https://www.ruby-forum.com/t/registering-custom-events/183557)

<div class="topic-metadata">

**Author:** [@idanmiller](https://www.ruby-forum.com/u/idanmiller)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 3:21pm UTC](https://www.ruby-forum.com/t/registering-custom-events/183557 "2010-02-16T15:21:19Z")

</div>

Hi everyone, I’m using the following code to try and register custom events: When the commented line is uncommented, I the program crashes. I’m running on windows xp. Anyone know what am I doing wrong? Thanks, Idan…

---

## [Question about wxbutton?](https://www.ruby-forum.com/t/question-about-wxbutton/182950)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 4\
**Last updated:** [February 12, 2010, 2:03pm UTC](https://www.ruby-forum.com/t/question-about-wxbutton/182950 "2010-02-12T14:03:29Z")

</div>

hello, I have some question. when I use wxbutton. the button is a simple window system theme how can I change this button to window vista button style? and how can I remove cmd box in background? see picture for more…

---

## [Need some help with a text control event](https://www.ruby-forum.com/t/need-some-help-with-a-text-control-event/183055)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 1\
**Last updated:** [February 7, 2010, 4:13pm UTC](https://www.ruby-forum.com/t/need-some-help-with-a-text-control-event/183055 "2010-02-07T16:13:42Z")

</div>

If you have a static text control: @static\_text\_control … which extends into a module: module SomeModule def some\_event(label) self.set\_label(label) end end and you are firing off events from other text controls …

---

## [Wx::Choice in Windows](https://www.ruby-forum.com/t/wx-choice-in-windows/182913)

<div class="topic-metadata">

**Author:** [@valentin](https://www.ruby-forum.com/u/valentin)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/wx-choice-in-windows/182913 "2010-02-05T23:38:04Z")

</div>

Hi! While testing my wxRuby app on Windows, I found that Wx::Choice behaves differently under Linux and Windows. For this line of code @tpf\_choice = Wx::Choice.new(self, :choices =\> %w(1 8 16 32 64 256)) in Linux, th…

---

## [DC#draw\_bitmap with logical\_function on Windows](https://www.ruby-forum.com/t/dc-draw-bitmap-with-logical-function-on-windows/182912)

<div class="topic-metadata">

**Author:** [@valentin](https://www.ruby-forum.com/u/valentin)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 6:51pm UTC](https://www.ruby-forum.com/t/dc-draw-bitmap-with-logical-function-on-windows/182912 "2010-02-04T18:51:31Z")

</div>

Hi! While testing the app I developed (on Linux), I encountered strange behaviour on Windows for this method: def draw(dc, x, y) dc.pen = Wx::TRANSPARENT\_PEN dc.logical\_function = Wx::COPY if @bitmap dc.draw\_bitma…

---

## [Compiling problem on Ubuntu 9.10 64 bit](https://www.ruby-forum.com/t/compiling-problem-on-ubuntu-9-10-64-bit/182464)

<div class="topic-metadata">

**Author:** [@quintus](https://www.ruby-forum.com/u/quintus)\
**Replies:** 5\
**Last updated:** [February 1, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/compiling-problem-on-ubuntu-9-10-64-bit/182464 "2010-02-01T21:16:23Z")

</div>

Hello, I’m trying to compile wxruby for Ruby 1.9 on Ubuntu Karmic 64 bit, but I can’t get it to work. I’ve already done this for the 32 bit version (on another machine, of course), so I don’t see where’s the problem w…

---

## [Strange Issue with Wx\_Sugar and xml.load](https://www.ruby-forum.com/t/strange-issue-with-wx-sugar-and-xml-load/182648)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 6\
**Last updated:** [February 1, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/strange-issue-with-wx-sugar-and-xml-load/182648 "2010-02-01T17:42:31Z")

</div>

Hi everyone, I’m having a strange issue and I’m trying to wrap my head around it and unfortunately, I’m not having much luck. Let me simplify my directory structure and show you what’s happening: \\lib – app.rb – ma…

---

## [How do I add menu items from XRC source?](https://www.ruby-forum.com/t/how-do-i-add-menu-items-from-xrc-source/182359)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 5\
**Last updated:** [January 29, 2010, 11:20am UTC](https://www.ruby-forum.com/t/how-do-i-add-menu-items-from-xrc-source/182359 "2010-01-29T11:20:52Z")

</div>

I understand how to add normal menus and menu items by using append. However, when creating menus inside a designer and it’s output to source, I can’t figure out how to reference the menu from xrc to append items to. …

---

## [Where can I find a list of events for each widget?](https://www.ruby-forum.com/t/where-can-i-find-a-list-of-events-for-each-widget/182184)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 13\
**Last updated:** [January 29, 2010, 6:43am UTC](https://www.ruby-forum.com/t/where-can-i-find-a-list-of-events-for-each-widget/182184 "2010-01-29T06:43:50Z")

</div>

I’ve searched the documentation like crazy but I can’t seem to find the events for each of the widgets. Any info on this would be greatly appreciated.

---

## [Create Image](https://www.ruby-forum.com/t/create-image/182331)

<div class="topic-metadata">

**Author:** [@tejo](https://www.ruby-forum.com/u/tejo)\
**Replies:** 3\
**Last updated:** [January 28, 2010, 3:07am UTC](https://www.ruby-forum.com/t/create-image/182331 "2010-01-28T03:07:34Z")

</div>

I, i’m a problem with wx. I will do realized a software who take 8 piece of a photo frame and place a jpeg image on the middle of frame . How display them? How gem i will use ? I try with a Flex Grid Sizer but the re…

---

## [Is there anyway to enable MultiSelect in the StyledTextCtrl](https://www.ruby-forum.com/t/is-there-anyway-to-enable-multiselect-in-the-styledtextctrl/182171)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 3\
**Last updated:** [January 25, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/is-there-anyway-to-enable-multiselect-in-the-styledtextctrl/182171 "2010-01-25T16:43:16Z")

</div>

I’ve noticed that the StyledTextControl (Scintilla basically) in wxWidgets has a great feature that allows multi-selections of text, just like TextMate. However wxRuby seems to have the function calls to support that …

---

## [Transparency on WxStaticText background?](https://www.ruby-forum.com/t/transparency-on-wxstatictext-background/182159)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [January 24, 2010, 12:46am UTC](https://www.ruby-forum.com/t/transparency-on-wxstatictext-background/182159 "2010-01-24T00:46:18Z")

</div>

I’ve painted my gui and I like the background mesh for my gui. I want my static text to inherit the background paint of my gui. Instead I get a gray background around the static text. Here’s a picture: …

---

## [Question on using images on panels](https://www.ruby-forum.com/t/question-on-using-images-on-panels/182105)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 5\
**Last updated:** [January 22, 2010, 10:32pm UTC](https://www.ruby-forum.com/t/question-on-using-images-on-panels/182105 "2010-01-22T22:32:01Z")

</div>

I’m trying to place a simple logo on one of the panels within the center of my main gui. In DialogBlocks, the panel class is LogoPanel which when using xrcise to generate the ruby file from xrc, creates: @logo = find…

---

## [Does wxRuby include Gizmos controls?](https://www.ruby-forum.com/t/does-wxruby-include-gizmos-controls/181756)

<div class="topic-metadata">

**Author:** [@bdamour](https://www.ruby-forum.com/u/bdamour)\
**Replies:** 3\
**Last updated:** [January 22, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/does-wxruby-include-gizmos-controls/181756 "2010-01-22T17:44:25Z")

</div>

Hi, I’m starting to use wxRuby for personal projects. Originally, I used wxPython in my company because they don’t want to install the Ruby environment just for me… But at home, I still prefer the Ruby language… So,…

---

## [Need Help with understanding Threads, Timers, and Yield](https://www.ruby-forum.com/t/need-help-with-understanding-threads-timers-and-yield/182100)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 0\
**Last updated:** [January 22, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/need-help-with-understanding-threads-timers-and-yield/182100 "2010-01-22T16:40:36Z")

</div>

Hi Everyone, I’m posting this to the correct list now. I’m a new GUI developer that is having some difficulty understanding some of the nuances of GUI development with Ruby and want to hopefully get some of my ques…

---

## [Undefined reference to \`wxGraphicsRenderer::CreateBitmap(wxB](https://www.ruby-forum.com/t/undefined-reference-to-wxgraphicsrenderer-createbitmap-wxb/181928)

<div class="topic-metadata">

**Author:** [@waydotnet](https://www.ruby-forum.com/u/waydotnet)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 2:28pm UTC](https://www.ruby-forum.com/t/undefined-reference-to-wxgraphicsrenderer-createbitmap-wxb/181928 "2010-01-21T14:28:34Z")

</div>

Hi to all, i’ve compiled wxWidgets with this options: ./configure --enable-optimise --enable-stl --enable-unicode –disable-threads --enable-static --with-opengl --disable-shared –enable-monolithic --disable-debug --…

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

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