# wxRuby

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

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

---

## [wxStyledTextCtrl: how to set caret at begining of a selection?](https://www.ruby-forum.com/t/wxstyledtextctrl-how-to-set-caret-at-begining-of-a-selection/204572)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 12:06am UTC](https://www.ruby-forum.com/t/wxstyledtextctrl-how-to-set-caret-at-begining-of-a-selection/204572 "2011-03-16T00:06:17Z")

</div>

Hi there, I was trying to select text backwards in a StyledTextCtrl, i.e, want the caret to be in the front, not at the end of selection, however unsucessful. My code like this: set\_selection\_end(11) set\_selection\_…

---

## [Evt\_key\_down() { | event | }](https://www.ruby-forum.com/t/evt-key-down-event/204011)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 3, 2011, 9:14am UTC](https://www.ruby-forum.com/t/evt-key-down-event/204011 "2011-03-03T09:14:26Z")

</div>

Bonjour Mario Voici le code que j’utilise: evt\_key\_down :evenement\_clavier … def CreationTexteCtrl @calcul = TextCtrl.new(@l, -1, “”, Point.new(10, 10), Size.new(397, 30), TE\_RICH|TE\_READONLY) @calcul.set\_font(Fon…

---

## [Evt\_key\_down() { | event | }](https://www.ruby-forum.com/t/evt-key-down-event/203984)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 3, 2011, 1:29am UTC](https://www.ruby-forum.com/t/evt-key-down-event/203984 "2011-03-03T01:29:41Z")

</div>

Bonsoir Alex. J’ai un problème avec “evt\_key\_down() { | event | … }”. Je m’explique: Quand j’ouvre mon application, “evt\_key\_down() { | event | … }” fonctionne correctement, mais à partir du moment que je fait un cli…

---

## [KeyEvent#get\_key\_code](https://www.ruby-forum.com/t/keyevent-get-key-code/203931)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 1:34am UTC](https://www.ruby-forum.com/t/keyevent-get-key-code/203931 "2011-03-02T01:34:55Z")

</div>

Bonsoir Alex, en utilisant “event.get\_key\_code” avec les touches du pavé numérique(clavier azerty) j’obtient les résultats suivants: par exemple: 1 = 324 2 = 325 3 = 326 Est-ce que j’obtient les mêmes résultats av…

---

## [Waiting for user input without dialog](https://www.ruby-forum.com/t/waiting-for-user-input-without-dialog/203882)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 9:31am UTC](https://www.ruby-forum.com/t/waiting-for-user-input-without-dialog/203882 "2011-03-01T09:31:31Z")

</div>

I’m trying to make a wxruby dialog that will always be visible to the user, but occasionally require user input before continuing on. However, I’m having trouble trying to figure out how I can wait around for user inp…

---

## [Timing issue](https://www.ruby-forum.com/t/timing-issue/202917)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 9, 2011, 7:34pm UTC](https://www.ruby-forum.com/t/timing-issue/202917 "2011-02-09T19:34:20Z")

</div>

I believe I’ve run afoul of a timing issue in wxruby that might explain some peoples’ segfaults. I have a radio button page as part of a notebook that selects a file to read in, which triggers a whole lot of other c…

---

## [Yet Another Segmentation Fault](https://www.ruby-forum.com/t/yet-another-segmentation-fault/202856)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 8, 2011, 2:05am UTC](https://www.ruby-forum.com/t/yet-another-segmentation-fault/202856 "2011-02-08T02:05:47Z")

</div>

I’ve looked through the forum at the umpteen threads about segmentation faults, and none of them seem to address my problem. I’m hoping someone can point out what I need to do. Platform: Vista Ruby v#: 1.9.1 wxRuby…

---

## [Event syntax](https://www.ruby-forum.com/t/event-syntax/202770)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 6, 2011, 12:18am UTC](https://www.ruby-forum.com/t/event-syntax/202770 "2011-02-06T00:18:39Z")

</div>

Class A is a ruby file generated from XRC via xrcise. Class B is a child class that inherits from class A, and subsequently is where I have my event hook-ups defined (just in case I need to generate class A from XRC …

---

## [Wxmediactrl has no output on windows vista & seven](https://www.ruby-forum.com/t/wxmediactrl-has-no-output-on-windows-vista-seven/185748)

<div class="topic-metadata">

**Author:** [@Alex\_Beeck](https://www.ruby-forum.com/u/Alex_Beeck)\
**Replies:** 1\
**Last updated:** [January 28, 2011, 5:26pm UTC](https://www.ruby-forum.com/t/wxmediactrl-has-no-output-on-windows-vista-seven/185748 "2011-01-28T17:26:57Z")

</div>

Hi, I’ve just tried installing ruby + wxruby from the following installers and in every single one, the wxruby sample media/mediactrl.rb doesn’t do anything after loading an mp3 file under windows vista and windows se…

---

## [WxRuby Region clearing](https://www.ruby-forum.com/t/wxruby-region-clearing/202024)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 22, 2011, 9:12pm UTC](https://www.ruby-forum.com/t/wxruby-region-clearing/202024 "2011-01-22T21:12:10Z")

</div>

Hi ! I’m trying to understand how regions are working in wxRuby. For now, I tried only to draw a rectangle and to move it. In order to do that, I use a region to tell wxRuby to refresh only the rectangle and not the …

---

## [3-state checkbox](https://www.ruby-forum.com/t/3-state-checkbox/201513)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 18, 2011, 10:43am UTC](https://www.ruby-forum.com/t/3-state-checkbox/201513 "2011-01-18T10:43:07Z")

</div>

Hi There–Just wanted to see if anyone could confirm for me that the 3-state checkbox is not actually implemented, contrary to the documentation. The window style Wx::CHK\_3STATE does not appear to be available, nor an…

---

## [10.04 Ubuntu](https://www.ruby-forum.com/t/10-04-ubuntu/201756)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 13, 2011, 10:09pm UTC](https://www.ruby-forum.com/t/10-04-ubuntu/201756 "2011-01-13T22:09:36Z")

</div>

Hi, Chauk-Mean and all - I have just ported everything to 10.04 ubuntu, and I am pleased to note that I was able to use prepackaged stuff almost everywhere. Yes, it was painful before I figured it out. :slight\_smile: …

---

## [Static bitmap - set\_bitmap](https://www.ruby-forum.com/t/static-bitmap-set-bitmap/201230)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 6, 2011, 4:36pm UTC](https://www.ruby-forum.com/t/static-bitmap-set-bitmap/201230 "2011-01-06T16:36:10Z")

</div>

Hi all, I need to change at runtime the bitmap label of a Static Bitmap control. I use this code: def change\_img\_at\_click img = File.join(File.dirname(FILE), “/immagini/03\_muro\_RETT.png”) @m\_bitmap1.set\_bitmap(Wx::…

---

## [Wxwidgets 2.9.1](https://www.ruby-forum.com/t/wxwidgets-2-9-1/201269)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 5, 2011, 4:26am UTC](https://www.ruby-forum.com/t/wxwidgets-2-9-1/201269 "2011-01-05T04:26:23Z")

</div>

is released for a few monthes already. Dies anybody tried it with 64-bits mode (thus, cocoa) on mac with any wxruby? Need a portable modern gui framework bad :slight\_smile: and one that works in mac@64. Btw what hap…

---

## [Re: linking gem to wx on Linux NEW BUG](https://www.ruby-forum.com/t/re-linking-gem-to-wx-on-linux-new-bug/200883)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 9\
**Last updated:** [January 4, 2011, 4:21am UTC](https://www.ruby-forum.com/t/re-linking-gem-to-wx-on-linux-new-bug/200883 "2011-01-04T04:21:39Z")

</div>

On Thu, Dec 23, 2010 at 8:59 AM, Don W. removed\_email\_address@domain.invalid wrote: By compiling wxWidgets from source, enabling the shared library option and using 2.8.11 wxGTK as follows: I was able to get my syst…

---

## [Building wxRuby for Ubuntu (update)](https://www.ruby-forum.com/t/building-wxruby-for-ubuntu-update/201047)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 29, 2010, 2:08am UTC](https://www.ruby-forum.com/t/building-wxruby-for-ubuntu-update/201047 "2010-12-29T02:08:48Z")

</div>

Hi all, There have been several messages regarding the build of wxRuby on Ubuntu. I’ve written previously the detailed steps for building wxRuby on top of linux distribution’s wxWidgets packages. (http://rubyforge.o…

---

## [Re: linking gem to wx on Linux](https://www.ruby-forum.com/t/re-linking-gem-to-wx-on-linux/200877)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/re-linking-gem-to-wx-on-linux/200877 "2010-12-23T18:03:32Z")

</div>

By compiling wxWidgets from source, enabling the shared library option and using 2.8.11 wxGTK as follows: …/configure --enable-shared --with-gtk --enable-monolithic –enable-unicode --disable-debug --enable-catch\_seg…

---

## [Linking gem to wx on Linux](https://www.ruby-forum.com/t/linking-gem-to-wx-on-linux/200836)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 1:46am UTC](https://www.ruby-forum.com/t/linking-gem-to-wx-on-linux/200836 "2010-12-23T01:46:41Z")

</div>

Hi, Alex and Chauk-Mean - I see that holidays are happening, so I may have to bull my way through this, but here goes. On some systems, we get /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so: /usr/…

---

## [Layers](https://www.ruby-forum.com/t/layers/200498)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [December 20, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/layers/200498 "2010-12-20T16:06:51Z")

</div>

Is there a way to stack windows in Z dimension? I find that quite useful in Android, and it would be useful here. I don’t see it in the docs or the C++ book, so perhaps it’s a wish list item. For example, I have a g…

---

## [Work-for-hire](https://www.ruby-forum.com/t/work-for-hire/199720)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 27, 2010, 10:35am UTC](https://www.ruby-forum.com/t/work-for-hire/199720 "2010-11-27T10:35:24Z")

</div>

Calling all wxRuby developers, experts, and hackers! My company is looking to contract with one or more individuals to complete a pair of programming tasks as a work-for-hire. The tasks are improvements for an open-s…

---

## [Direct painting on bitmap](https://www.ruby-forum.com/t/direct-painting-on-bitmap/199664)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 26, 2010, 1:23am UTC](https://www.ruby-forum.com/t/direct-painting-on-bitmap/199664 "2010-11-26T01:23:02Z")

</div>

Hi, All - I’ve been getting closer and closer to a raw painting interface (see ‘Inserting RMagick RVG images in wxRuby’ for my starting point) and now what I’m working on (yes, I’m getting paid to work today; my kids…

---

## [Inserting RMagick RVG images in wxRuby](https://www.ruby-forum.com/t/inserting-rmagick-rvg-images-in-wxruby/199556)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 25, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/inserting-rmagick-rvg-images-in-wxruby/199556 "2010-11-25T19:12:45Z")

</div>

Hello, all - I’m having a grand time making cpu stats for an embedded board show up in my ruby app, but I have run into a roadblock. I used RMagick’s RVG graphics to create the graph, and it works fine when I just d…

---

## [Evt\_button + images\_click](https://www.ruby-forum.com/t/evt-button-images-click/199046)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 13\
**Last updated:** [November 25, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/evt-button-images-click/199046 "2010-11-25T16:33:19Z")

</div>

Hello. I have two questions. Here is my code: require “wx” class FFF \< Wx::Frame def initialize @b = Array.new super(nil, 2, “Bljllll”, \[5,5\], \[640,480\]) @mypanel = Wx::Panel.new(self) for i in 0…6 @b\[i\] = Wx::B…

---

## [On Mac: undefined method \`create\_popup\_menu' for #\<Wx::TaskBarIcon\>](https://www.ruby-forum.com/t/on-mac-undefined-method-create-popup-menu-for-wx-taskbaricon/198791)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 21, 2010, 9:49pm UTC](https://www.ruby-forum.com/t/on-mac-undefined-method-create-popup-menu-for-wx-taskbaricon/198791 "2010-11-21T21:49:41Z")

</div>

Hi there, I got the following error every time when I tried right clicking the app icon on Dock. Env: Mac OS X 10.6 wxRuby: wxruby-2.0.1-universal-darwin-9 Error: undefined method create\_popup\_menu' for #\<Wx::TaskB…

---

## [Regards to Building of wxRuby 2.0.1](https://www.ruby-forum.com/t/regards-to-building-of-wxruby-2-0-1/198237)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 6\
**Last updated:** [November 21, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/regards-to-building-of-wxruby-2-0-1/198237 "2010-11-21T15:17:50Z")

</div>

Hello All, In regards to Ron’s post, I have reviewed the gem created by the build process, and attempted to use it, and it is as you said, with Ruby 1.9.2 p0, when attempting to run most of the examples, it will caus…

---

## [Error with require "wx"](https://www.ruby-forum.com/t/error-with-require-wx/199091)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 20, 2010, 8:28am UTC](https://www.ruby-forum.com/t/error-with-require-wx/199091 "2010-11-20T08:28:15Z")

</div>

I have installed the wxruby gem, with no errors, but when I try to inclue the gem, I get this error: internal:lib/rubygems/custom\_require:29:in require': 126: The specified module could not be found. - C:/Ruby192/lib/r…

---

## [Sample Windows app. to evaluate](https://www.ruby-forum.com/t/sample-windows-app-to-evaluate/199228)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 16, 2010, 11:55pm UTC](https://www.ruby-forum.com/t/sample-windows-app-to-evaluate/199228 "2010-11-16T23:55:34Z")

</div>

I am new to Ruby and want to use it to write a production-level Windows app for Inventory & Invoicing. I heard about wxRuby but I haven’t seen any samples. Are there any such apps. that I can evaluate for performance …

---

## [Scrolling / wxPanel / wxFlexGridSizer](https://www.ruby-forum.com/t/scrolling-wxpanel-wxflexgridsizer/199050)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 16, 2010, 10:57pm UTC](https://www.ruby-forum.com/t/scrolling-wxpanel-wxflexgridsizer/199050 "2010-11-16T22:57:53Z")

</div>

I have a problem getting scroll bars to become active. Scrollbars appear but do not actually scroll. The problem I am trying to solve is to list a large number of key/value pairs. I looked to use PropertyGrid but d…

---

## [Force wxRuby/wxWidgets to Qt libs?](https://www.ruby-forum.com/t/force-wxruby-wxwidgets-to-qt-libs/199148)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [November 16, 2010, 4:46pm UTC](https://www.ruby-forum.com/t/force-wxruby-wxwidgets-to-qt-libs/199148 "2010-11-16T16:46:56Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, Being annoyed by the libpixman bug wxRuby has I wonder wheather I could just make wxRuby use the Qt libs instead of the GTK ones. I already have them installed…

---

## [How to reduce size of .exe file got from ocra](https://www.ruby-forum.com/t/how-to-reduce-size-of-exe-file-got-from-ocra/198851)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 5\
**Last updated:** [November 11, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/how-to-reduce-size-of-exe-file-got-from-ocra/198851 "2010-11-11T18:19:29Z")

</div>

Hi, I just create a simple WxRuby app and then try to turn it into .exe file using Ocra. The code is something like… require ‘wx’ class SimpleApp \< Wx:App def on\_init Wx::Frame.new(nil, -1, “Simple App”).show() en…

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

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