# wxRuby

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

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

---

## [Enter key issue with RichTextCtrl](https://www.ruby-forum.com/t/enter-key-issue-with-richtextctrl/152685)

<div class="topic-metadata">

**Author:** [@chauk-mean](https://www.ruby-forum.com/u/chauk-mean)\
**Replies:** 3\
**Last updated:** [November 6, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/enter-key-issue-with-richtextctrl/152685 "2008-11-06T14:00:17Z")

</div>

Hi, I’m trying to use RichTextCtrl available with wxRuby 1.9.9 instead of TextCtrl and the Enter key does not work (as what I expect). With TextCtrl (with Wx::TE\_MULTILINE), the Enter key creates a new line of text. …

---

## [More rubish API](https://www.ruby-forum.com/t/more-rubish-api/152597)

<div class="topic-metadata">

**Author:** [@Kirill\_L](https://www.ruby-forum.com/u/Kirill_L)\
**Replies:** 3\
**Last updated:** [November 5, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/more-rubish-api/152597 "2008-11-05T18:44:38Z")

</div>

Hi, Sometimes I find places in WxRuby API which seem to me not quite Ruby way compatible. :slight\_smile: I know (it’s written somewhere on the wxruby site), that there is an acvity to make WxRuby more Rubish. I do…

---

## [How to deselect the text](https://www.ruby-forum.com/t/how-to-deselect-the-text/152584)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 5, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/how-to-deselect-the-text/152584 "2008-11-05T18:14:16Z")

</div>

Hi, I’m using TextCtrl and initially set some text in it. And all the text is selected by default. How can I deselect it? By the way, TextCtrl#set\_selection() doesn’t work… What am I doing wrong? Thanks a lot, Ki…

---

## [Paint\_buffered](https://www.ruby-forum.com/t/paint-buffered/152414)

<div class="topic-metadata">

**Author:** [@mrillo](https://www.ruby-forum.com/u/mrillo)\
**Replies:** 4\
**Last updated:** [November 4, 2008, 2:01am UTC](https://www.ruby-forum.com/t/paint-buffered/152414 "2008-11-04T02:01:55Z")

</div>

Hello, In order to reduce flicker in my paint-intense app I’ve switched from paint |dc| to paint\_buffered |dc|. Unfortunately, there is no difference after switching. Does anyone know why? Are there any other workarou…

---

## [Sorting Grid by column](https://www.ruby-forum.com/t/sorting-grid-by-column/151920)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 2\
**Last updated:** [November 3, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/sorting-grid-by-column/151920 "2008-11-03T20:46:06Z")

</div>

What would be the best way to sort a grid by the column the user clicks on? I have a bunch of database info being represented in grids (via GridTableBase) that I would like to be sortable by different columns. I did…

---

## [Aui notebook problem with glossy tabs](https://www.ruby-forum.com/t/aui-notebook-problem-with-glossy-tabs/151817)

<div class="topic-metadata">

**Author:** [@Henrik\_Sarvell](https://www.ruby-forum.com/u/Henrik_Sarvell)\
**Replies:** 2\
**Last updated:** [October 26, 2008, 11:53am UTC](https://www.ruby-forum.com/t/aui-notebook-problem-with-glossy-tabs/151817 "2008-10-26T11:53:14Z")

</div>

Hi everyone, I’ve got a problem with tabs in the AUI Notebook. I just implemented a light on dark GTK theme. It seems like the glossy tabs are trying to fade a gradient with light towards dark (see attachement), on to…

---

## [Wx::Font.new fails in a Runtime Error](https://www.ruby-forum.com/t/wx-font-new-fails-in-a-runtime-error/150801)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [October 25, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/wx-font-new-fails-in-a-runtime-error/150801 "2008-10-25T23:08:40Z")

</div>

I can’t construct a Wx::Font object, because it leads to a Runtime Error, though it seems that I use it as per documentation of WxRuby. Strangely, many mistakes lead to such an error instead of a verbose Ruby excepti…

---

## [Wx::Bitmap causes segfaults](https://www.ruby-forum.com/t/wx-bitmap-causes-segfaults/150797)

<div class="topic-metadata">

**Author:** [@granden](https://www.ruby-forum.com/u/granden)\
**Replies:** 2\
**Last updated:** [October 25, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/wx-bitmap-causes-segfaults/150797 "2008-10-25T15:49:22Z")

</div>

Instantiating a Wx::Bitmap with width and height causes a segmentation fault. This is the minimal example I could find where the behaviour is exhibited: require ‘rubygems’ require ‘wx’ Wx::Bitmap.new(1, 1) Results …

---

## [Recommended cross platform deployment methods?](https://www.ruby-forum.com/t/recommended-cross-platform-deployment-methods/151459)

<div class="topic-metadata">

**Author:** [@marke](https://www.ruby-forum.com/u/marke)\
**Replies:** 11\
**Last updated:** [October 23, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/recommended-cross-platform-deployment-methods/151459 "2008-10-23T17:45:04Z")

</div>

Hey all, I’m just getting started with wxRuby but I really like it. I have felt the joy of writing a simple app (using DialogBlocs & xrcise) and running it on Windows and Linux. Ahh. Peace. Oh, and it didn’t suck lik…

---

## [ListCtrl selection](https://www.ruby-forum.com/t/listctrl-selection/151365)

<div class="topic-metadata">

**Author:** [@biospank](https://www.ruby-forum.com/u/biospank)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/listctrl-selection/151365 "2008-10-20T18:38:52Z")

</div>

Hi all, to select an item into a listCtrl i’m doing this: list\_ctrl#set\_item\_state(0, Wx::LIST\_STATE\_SELECTED, Wx::LIST\_MASK\_STATE) but nothing happen. is this the right way? thank you. bio.

---

## [FW: BoolEditor and renderer in Grid](https://www.ruby-forum.com/t/fw-booleditor-and-renderer-in-grid/151309)

<div class="topic-metadata">

**Author:** [@IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/u/IrlwegS_Franz_SZNT)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/fw-booleditor-and-renderer-in-grid/151309 "2008-10-20T18:01:16Z")

</div>

Hello togheter, I’m using the Wx::Grid, with GridTableBase. (wxruby 1.9.5 and wxruby 1.9.8) The GridCellBoolEditor and GridCellBoolRenderer doesn’t work. How can I solve the problem? I have atached a file with an e…

---

## [ListCtrl loading data](https://www.ruby-forum.com/t/listctrl-loading-data/151210)

<div class="topic-metadata">

**Author:** [@biospank](https://www.ruby-forum.com/u/biospank)\
**Replies:** 3\
**Last updated:** [October 20, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/listctrl-loading-data/151210 "2008-10-20T16:34:54Z")

</div>

Hi all, I’m using a ListCtrl on LC\_REPORT mode. using set\_item(index, col, ‘value’) the list does’t get populated. Is it a bug? which is the method to call? i’m using ruby 1.8.6 wxruby 1.9.8 mswin32 on winXP attach…

---

## [LC\_VIRTUAL with Wx::ListCtrl](https://www.ruby-forum.com/t/lc-virtual-with-wx-listctrl/151341)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/lc-virtual-with-wx-listctrl/151341 "2008-10-20T15:33:39Z")

</div>

Wx::ListCtrl#set\_item\_count appears to be broken. If I pass it anything but a Fixnum (is\_a Integer), it crashes and says it needs a “long” (which Fixnum should appease), but if I pass it a Fixnum it crashes with “cann…

---

## [Fresh install problem](https://www.ruby-forum.com/t/fresh-install-problem/150838)

<div class="topic-metadata">

**Author:** [@Svend\_Haugaard\_SSSS](https://www.ruby-forum.com/u/Svend_Haugaard_SSSS)\
**Replies:** 1\
**Last updated:** [October 14, 2008, 2:31am UTC](https://www.ruby-forum.com/t/fresh-install-problem/150838 "2008-10-14T02:31:29Z")

</div>

So my old computer fried a motherboard. So after bying, building and installing my new computer. I return to wxruby and install it via ‘gem install wxruby’ and run my old programs. BUT they don’t work. They return th…

---

## [Wxruby example with more than one window](https://www.ruby-forum.com/t/wxruby-example-with-more-than-one-window/150316)

<div class="topic-metadata">

**Author:** [@IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/u/IrlwegS_Franz_SZNT)\
**Replies:** 2\
**Last updated:** [October 13, 2008, 9:52am UTC](https://www.ruby-forum.com/t/wxruby-example-with-more-than-one-window/150316 "2008-10-13T09:52:59Z")

</div>

Hello together, can somebody send me a example with more than one window (frame) ? I’m using wxruby 1.9.5 I have the following problem: from the first window i open the second window (which contains a grid, with Ta…

---

## [WX::Dialog won't close](https://www.ruby-forum.com/t/wx-dialog-wont-close/150048)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 8\
**Last updated:** [October 11, 2008, 12:18am UTC](https://www.ruby-forum.com/t/wx-dialog-wont-close/150048 "2008-10-11T00:18:44Z")

</div>

I have an interesting problem. I have a dialog which refuses to go away once it has finished it’s associated code. Here is the code: class DBPopulateDialog \< Wx::Dialog def initialize(parent, id, title, pos, size, s…

---

## [Error: undefined method 'calc\_min' for #\<Wx::UpdateUIEvent:0](https://www.ruby-forum.com/t/error-undefined-method-calc-min-for-wx-0/150511)

<div class="topic-metadata">

**Author:** [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Replies:** 0\
**Last updated:** [October 9, 2008, 10:50am UTC](https://www.ruby-forum.com/t/error-undefined-method-calc-min-for-wx-0/150511 "2008-10-09T10:50:36Z")

</div>

My application has been running fine for weeks, just today got this error twice: Error: undefined method ‘calc\_min’ for #Wx::UpdateUIEvent:0xb18f9c4 OS: WXMSW Ruby Version: 1.8.6 Backtrace: E:/work/iTest2/app/main.…

---

## [StdDialogButtonSizer default button](https://www.ruby-forum.com/t/stddialogbuttonsizer-default-button/150243)

<div class="topic-metadata">

**Author:** [@biospank](https://www.ruby-forum.com/u/biospank)\
**Replies:** 2\
**Last updated:** [October 6, 2008, 6:24pm UTC](https://www.ruby-forum.com/t/stddialogbuttonsizer-default-button/150243 "2008-10-06T18:24:28Z")

</div>

Hi all, How do i set the default button for a Wx::StdDialogButtonSizer? Any hints would be appreciated. regards. bio.

---

## [wxSugar](https://www.ruby-forum.com/t/wxsugar/150221)

<div class="topic-metadata">

**Author:** [@beusse](https://www.ruby-forum.com/u/beusse)\
**Replies:** 0\
**Last updated:** [October 6, 2008, 7:53am UTC](https://www.ruby-forum.com/t/wxsugar/150221 "2008-10-06T07:53:31Z")

</div>

Bonjour. A propos de “wxSugar”, quel est son efficacitÃ© ? Pouvez-vous me donnez un bout de code sans et avec “wxSugar”, que je puisse voir la diffÃ©rence ? Y a t’il des tutoriels assez explicatif ? merci sebastien …

---

## [Number input type](https://www.ruby-forum.com/t/number-input-type/150084)

<div class="topic-metadata">

**Author:** [@biospank](https://www.ruby-forum.com/u/biospank)\
**Replies:** 2\
**Last updated:** [October 3, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/number-input-type/150084 "2008-10-03T13:26:23Z")

</div>

Hi all, is there any option to limit input type (wxTextCtrl) to accept only number? thanks, regards. bio.

---

## [Undefined method 'end\_edit\_label' in Wx::TreeCtrl](https://www.ruby-forum.com/t/undefined-method-end-edit-label-in-wx-treectrl/149918)

<div class="topic-metadata">

**Author:** [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Replies:** 2\
**Last updated:** [October 2, 2008, 4:54am UTC](https://www.ruby-forum.com/t/undefined-method-end-edit-label-in-wx-treectrl/149918 "2008-10-02T04:54:12Z")

</div>

Hi, Maybe a documentation update. #\<NoMethodError: undefined method ‘end\_edit\_label’ for #Wx::TreeCtrl:0xb381da4\> I raised the following issue (similar) before, sometimes a Wx::Rect object sometimes passed as an eve…

---

## [How can I find out the state of capslock?](https://www.ruby-forum.com/t/how-can-i-find-out-the-state-of-capslock/149956)

<div class="topic-metadata">

**Author:** [@rossgoodell](https://www.ruby-forum.com/u/rossgoodell)\
**Replies:** 2\
**Last updated:** [October 1, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/how-can-i-find-out-the-state-of-capslock/149956 "2008-10-01T17:18:07Z")

</div>

Although I can use KeyEvent#shift\_down to find out if the shift key was held down when a key is pressed, I don’t know how to find out if the capslock key is in effect (the capslock key was pressed the capslock LED is …

---

## [Brain freeze on how to program](https://www.ruby-forum.com/t/brain-freeze-on-how-to-program/149931)

<div class="topic-metadata">

**Author:** [@joseph\_edelstein](https://www.ruby-forum.com/u/joseph_edelstein)\
**Replies:** 1\
**Last updated:** [October 1, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/brain-freeze-on-how-to-program/149931 "2008-10-01T17:01:42Z")

</div>

I have come to a complete brick wall in my mind. I am trying to write a game where the user has to hit the space bar as close to a sound that plays every second. If the user hits the space bar and releases it before…

---

## [Problems with ToolBar Sintaxis](https://www.ruby-forum.com/t/problems-with-toolbar-sintaxis/149636)

<div class="topic-metadata">

**Author:** [@ramo](https://www.ruby-forum.com/u/ramo)\
**Replies:** 3\
**Last updated:** [September 29, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/problems-with-toolbar-sintaxis/149636 "2008-09-29T21:49:09Z")

</div>

First of all, it’s my first week learnig ruby and so is for wxruby,also this is my first time working with a GUI so please, please, be patient. I’m having problems with the code for a toolbar, i want to add an item, b…

---

## [Sample desktop app](https://www.ruby-forum.com/t/sample-desktop-app/149365)

<div class="topic-metadata">

**Author:** [@nmotter](https://www.ruby-forum.com/u/nmotter)\
**Replies:** 4\
**Last updated:** [September 24, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/sample-desktop-app/149365 "2008-09-24T16:54:31Z")

</div>

Hi all, I’m trying to develop a desktop application, and since I’ve done a fair bit of work with RoR before, I figured ruby is a good way to go about it. My application will be largely database driven. I’m looking fo…

---

## [TAB\_TRAVERSAL within a dialog box](https://www.ruby-forum.com/t/tab-traversal-within-a-dialog-box/148938)

<div class="topic-metadata">

**Author:** [@carluva](https://www.ruby-forum.com/u/carluva)\
**Replies:** 1\
**Last updated:** [September 18, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/tab-traversal-within-a-dialog-box/148938 "2008-09-18T15:01:49Z")

</div>

Hi, Is there any known issue with using a Panel with TAB\_TRAVERSAL within a Dialog? I’m having an issue my app freezing up when I enable the TAB\_TRAVERSAL style on a panel within a dialog box, and before I go throug…

---

## [Wxruby - compile trouble on 64bit linux (ubuntu)](https://www.ruby-forum.com/t/wxruby-compile-trouble-on-64bit-linux-ubuntu/148670)

<div class="topic-metadata">

**Author:** [@rperrier](https://www.ruby-forum.com/u/rperrier)\
**Replies:** 5\
**Last updated:** [September 18, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/wxruby-compile-trouble-on-64bit-linux-ubuntu/148670 "2008-09-18T12:12:06Z")

</div>

hi, i’d like to give an report how i managed to get wxruby-1.9.8 installed on ubuntu 8.04. think this could be usefull for others. after several errors during wxruby compilation i decided to get rid of wxwidgets-lib…

---

## [Re: load\_panel\_subclass help](https://www.ruby-forum.com/t/re-load-panel-subclass-help/148823)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 12:57pm UTC](https://www.ruby-forum.com/t/re-load-panel-subclass-help/148823 "2008-09-17T12:57:00Z")

</div>

Fabio proxy class: that’s the reason i used ‘load\_panel\_subclass’ Use Ruby Modules instead of Classes to encapsulate the behaviour of the inner windows, such as your Panel. After the layout has been loaded from XR…

---

## [Where is Wx::Execute?](https://www.ruby-forum.com/t/where-is-wx-execute/148810)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 9:47am UTC](https://www.ruby-forum.com/t/where-is-wx-execute/148810 "2008-09-17T09:47:26Z")

</div>

wxExecute is in wxwidgets. but where is Wx::Execute? How can I execute a command in the operating system?

---

## [Argument type error in StyledTextControl 'LineFromPosition'](https://www.ruby-forum.com/t/argument-type-error-in-styledtextcontrol-linefromposition/148671)

<div class="topic-metadata">

**Author:** [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Replies:** 2\
**Last updated:** [September 17, 2008, 8:53am UTC](https://www.ruby-forum.com/t/argument-type-error-in-styledtextcontrol-linefromposition/148671 "2008-09-17T08:53:13Z")

</div>

I got the following error when I was randomly clicking margins and lines in a StyledTextControl (3 margins). It doesn’t occur often, usually happens after many clicks (20 or so). Expected argument 1 of type int, but g…

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

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