# wxRuby

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

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

---

## [My first wxRuby app doesn't work, please help!](https://www.ruby-forum.com/t/my-first-wxruby-app-doesnt-work-please-help/186036)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 11:52pm UTC](https://www.ruby-forum.com/t/my-first-wxruby-app-doesnt-work-please-help/186036 "2010-05-24T23:52:24Z")

</div>

Hi, I’m trying to learn wxRuby. This is program: require ‘wx’ include Wx class MyFrame \< Frame def initialize super(nil,-1,“Mi primera ventana Wx!”) @panel = Panel.new(self) @lbl1 = StaticText.new(@panel,-1,“Labe…

---

## [Import data from a txt.file to a trichtextbox - Help](https://www.ruby-forum.com/t/import-data-from-a-txt-file-to-a-trichtextbox-help/189065)

<div class="topic-metadata">

**Author:** [@iroupa](https://www.ruby-forum.com/u/iroupa)\
**Replies:** 4\
**Last updated:** [May 24, 2010, 11:11am UTC](https://www.ruby-forum.com/t/import-data-from-a-txt-file-to-a-trichtextbox-help/189065 "2010-05-24T11:11:25Z")

</div>

Hi all, I created a simple application with one button and one richtextbox. The purpose of the button is to open a FileDialog Common Dialogs to choose a .txt file: I created the button event: evt\_button(@button.get\_…

---

## [Need some advice : scientific scripting language project](https://www.ruby-forum.com/t/need-some-advice-scientific-scripting-language-project/188843)

<div class="topic-metadata">

**Author:** [@emmanuel](https://www.ruby-forum.com/u/emmanuel)\
**Replies:** 15\
**Last updated:** [May 21, 2010, 1:03am UTC](https://www.ruby-forum.com/t/need-some-advice-scientific-scripting-language-project/188843 "2010-05-21T01:03:31Z")

</div>

Hello, Ok, I am writing a (pretty big) project trying to use ruby as the main scripting language for performing math computation, scientific display and display interaction. Here is roughly what I want a terminal w…

---

## [Draw in C++ with wxRuby](https://www.ruby-forum.com/t/draw-in-c-with-wxruby/188740)

<div class="topic-metadata">

**Author:** [@emmanuel](https://www.ruby-forum.com/u/emmanuel)\
**Replies:** 7\
**Last updated:** [May 19, 2010, 8:01am UTC](https://www.ruby-forum.com/t/draw-in-c-with-wxruby/188740 "2010-05-19T08:01:51Z")

</div>

Hello, I want to draw using C++ wxWdiget in some windows created using wxRuby. Does anybody know if it is possible ? I tried one thing which is maybe very naive … but it does not work : 1- I created a Frame using wxR…

---

## [Preserve selections](https://www.ruby-forum.com/t/preserve-selections/188767)

<div class="topic-metadata">

**Author:** [@mszatanik](https://www.ruby-forum.com/u/mszatanik)\
**Replies:** 5\
**Last updated:** [May 18, 2010, 3:25pm UTC](https://www.ruby-forum.com/t/preserve-selections/188767 "2010-05-18T15:25:46Z")

</div>

hi, could any1 help me to figure out how to preserve selections in extended listbox please? f.e. i have a button to move up/down selected item(s), but after i click it and selection goes up or down i loose selections…

---

## [Application focus](https://www.ruby-forum.com/t/application-focus/187820)

<div class="topic-metadata">

**Author:** [@freaxmind](https://www.ruby-forum.com/u/freaxmind)\
**Replies:** 2\
**Last updated:** [May 3, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/application-focus/187820 "2010-05-03T22:09:03Z")

</div>

Hi there, I’m developping an application based on xmpp4r and WxRuby to download file between contacts. My application must handle incoming request and manage all the file upload proccess. Unfortunately, all proccess …

---

## [Loading icons on windows with icon index](https://www.ruby-forum.com/t/loading-icons-on-windows-with-icon-index/187654)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 7\
**Last updated:** [April 29, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/loading-icons-on-windows-with-icon-index/187654 "2010-04-29T23:13:51Z")

</div>

How do you load icons on windows in wxRuby? I know in wxWidgets you use wxIconLocation, but as far as I can see, it is not included in wxRuby. Any ideas? Thanks.

---

## [Some question, calendar and notification](https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 5\
**Last updated:** [April 29, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361 "2010-04-29T22:55:42Z")

</div>

Dear All, I have some question regarding on wxwidget Is there a way to add tooltip into a date in calendarctrl? Is there a build in way to do notification like notification in ubuntu or in thunderbird? Regards, He…

---

## [wxRuby documentation suggestion: include screen captures](https://www.ruby-forum.com/t/wxruby-documentation-suggestion-include-screen-captures/187480)

<div class="topic-metadata">

**Author:** [@rogerscardua](https://www.ruby-forum.com/u/rogerscardua)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 12:15pm UTC](https://www.ruby-forum.com/t/wxruby-documentation-suggestion-include-screen-captures/187480 "2010-04-28T12:15:41Z")

</div>

I was thinking that screen captures would benefit many of the explanations in the documentation of wxRuby. And as I work my way through different portions of the API, I’m willing to make some of those captures. Who i…

---

## [How to display ListCtrl\_virtual using xrcise](https://www.ruby-forum.com/t/how-to-display-listctrl-virtual-using-xrcise/187144)

<div class="topic-metadata">

**Author:** [@uraya](https://www.ruby-forum.com/u/uraya)\
**Replies:** 2\
**Last updated:** [April 24, 2010, 2:03pm UTC](https://www.ruby-forum.com/t/how-to-display-listctrl-virtual-using-xrcise/187144 "2010-04-24T14:03:16Z")

</div>

Hi, I’m trying to display text in a ListCtrl\_virtual using xrcise. To display text, I implemented on\_get\_item\_text() method in TestListCtrl module. However, no text displayed in my list. I’d appreciate it if you cou…

---

## [Mac OS X 10.5 installation and cross-platform questions](https://www.ruby-forum.com/t/mac-os-x-10-5-installation-and-cross-platform-questions/187476)

<div class="topic-metadata">

**Author:** [@rogerscardua](https://www.ruby-forum.com/u/rogerscardua)\
**Replies:** 4\
**Last updated:** [April 23, 2010, 10:59pm UTC](https://www.ruby-forum.com/t/mac-os-x-10-5-installation-and-cross-platform-questions/187476 "2010-04-23T22:59:07Z")

</div>

I’m just beginning to learn wxRuby. I’m working on a WinXP sp3 machine, and I expect to test Linux using VirtualBox and Ubuntu and to test Mac OS X 10.5 on my wife’s Mac mini. On her Mac, I got Ruby 1.9.1p376 installe…

---

## [Icon questions](https://www.ruby-forum.com/t/icon-questions/187472)

<div class="topic-metadata">

**Author:** [@rogerscardua](https://www.ruby-forum.com/u/rogerscardua)\
**Replies:** 1\
**Last updated:** [April 23, 2010, 10:32pm UTC](https://www.ruby-forum.com/t/icon-questions/187472 "2010-04-23T22:32:11Z")

</div>

I’m working on my first wxRuby project. Because the example files are on a different drive, I copied the wxruby.png icon file to the same directory as my ruby program. The titlebar icon and Taskbar icon (I’m on a WinX…

---

## [How to save window position on frame move?](https://www.ruby-forum.com/t/how-to-save-window-position-on-frame-move/187226)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 6\
**Last updated:** [April 22, 2010, 8:13am UTC](https://www.ruby-forum.com/t/how-to-save-window-position-on-frame-move/187226 "2010-04-22T08:13:07Z")

</div>

Dear All, I want my app to save it’s window position so next time I run it, the window will place at the last position But I cannot use close event to save position since it is a tray application I plan to use on mo…

---

## [Static gem of wxruby 2.0.1 for OS X Snow Leopard](https://www.ruby-forum.com/t/static-gem-of-wxruby-2-0-1-for-os-x-snow-leopard/178803)

<div class="topic-metadata">

**Author:** [@Antti\_Hakala](https://www.ruby-forum.com/u/Antti_Hakala)\
**Replies:** 18\
**Last updated:** [April 14, 2010, 5:09pm UTC](https://www.ruby-forum.com/t/static-gem-of-wxruby-2-0-1-for-os-x-snow-leopard/178803 "2010-04-14T17:09:41Z")

</div>

Hello, I have a static gem of wxruby 2.0.1 that works on OS X Snow Leopard, if somebody is interested. I’ve tried it only on my own comp. It’s about 9MB.

---

## [Numeric textbox](https://www.ruby-forum.com/t/numeric-textbox/186392)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 5:52am UTC](https://www.ruby-forum.com/t/numeric-textbox/186392 "2010-04-07T05:52:28Z")

</div>

Dear all, what is a good way to implement a textbox that can only receive number? when I tried to implement it using text\_updated event it runs so slow that it disturb overall process (my menu stop working) or even b…

---

## [Problem with the size of notebook pages](https://www.ruby-forum.com/t/problem-with-the-size-of-notebook-pages/186338)

<div class="topic-metadata">

**Author:** [@sdesbure](https://www.ruby-forum.com/u/sdesbure)\
**Replies:** 3\
**Last updated:** [April 6, 2010, 10:10am UTC](https://www.ruby-forum.com/t/problem-with-the-size-of-notebook-pages/186338 "2010-04-06T10:10:29Z")

</div>

Hi here, I have to make a school project in wxRuby and since 1-2 weeks, i am completely blocked because of a notebook display problem. I don’t manage to adapt the size of notebook pages with the content. The size is …

---

## [WxRuby and windows 7](https://www.ruby-forum.com/t/wxruby-and-windows-7/186140)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 1\
**Last updated:** [April 5, 2010, 4:23am UTC](https://www.ruby-forum.com/t/wxruby-and-windows-7/186140 "2010-04-05T04:23:02Z")

</div>

Hi, has anyone been able to use wxRuby on Windows 7. When I run a basic app I get an error saying that MSVCP71.dll is missing. Any ideas on how to solve this?

---

## [wxRuby menu item checkbox](https://www.ruby-forum.com/t/wxruby-menu-item-checkbox/185909)

<div class="topic-metadata">

**Author:** [@vanik](https://www.ruby-forum.com/u/vanik)\
**Replies:** 10\
**Last updated:** [March 30, 2010, 11:11pm UTC](https://www.ruby-forum.com/t/wxruby-menu-item-checkbox/185909 "2010-03-30T23:11:40Z")

</div>

I am using wxFormBuilder version 3.0.57 to produce an xrc file for my wxRuby GUI. I have used this successfully for some time now. However, I have been unable to get a checkbox menu item to function the way that I ex…

---

## [Column as boolean with wxgridtablebase](https://www.ruby-forum.com/t/column-as-boolean-with-wxgridtablebase/185595)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 4\
**Last updated:** [March 25, 2010, 4:12am UTC](https://www.ruby-forum.com/t/column-as-boolean-with-wxgridtablebase/185595 "2010-03-25T04:12:49Z")

</div>

Dear all, How do I set first column as boolean (shown as checkbox) if I prepare my data with wxgridtablebase? grid.set\_col\_format\_bool does not work Regards Hendra

---

## [wxRuby 2.0.1 on Fedora 11](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316)

<div class="topic-metadata">

**Author:** [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Replies:** 14\
**Last updated:** [March 24, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316 "2010-03-24T18:58:53Z")

</div>

I just installed wxruby and tryed to run the minimal test. This is the result i get ruby -rubygems minimal.rb /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so: /usr/lib/ruby/gems/1.8/gems/wxruby-2.0…

---

## [wxGrid merge cell](https://www.ruby-forum.com/t/wxgrid-merge-cell/185614)

<div class="topic-metadata">

**Author:** [@waydotnet](https://www.ruby-forum.com/u/waydotnet)\
**Replies:** 2\
**Last updated:** [March 23, 2010, 10:16pm UTC](https://www.ruby-forum.com/t/wxgrid-merge-cell/185614 "2010-03-23T22:16:00Z")

</div>

It’s possible merge two or more cell ??? ex: | LABEL 1 | LABEL 2 | LABEL 3 | | VALUE CELL MERGE | ANOTHER | | | | | Many Thanks Carlo Bertini

---

## [Number for id](https://www.ruby-forum.com/t/number-for-id/185513)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/number-for-id/185513 "2010-03-23T21:41:56Z")

</div>

what number is safe to be used for Id? you see, most of time I use -1 for id which means id is generated automatically also there is some fixed id like id for about dialog, or else but sometimes we need the id number…

---

## [wxAuiTabCtrl is not supported](https://www.ruby-forum.com/t/wxauitabctrl-is-not-supported/184778)

<div class="topic-metadata">

**Author:** [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 9:31pm UTC](https://www.ruby-forum.com/t/wxauitabctrl-is-not-supported/184778 "2010-03-23T21:31:24Z")

</div>

When calling AuiNotebook#children, I got an error: Error wrapping object: class wxAuiTabCtrl is not supported in wxRuby It’s exactly the object I want to set\_tool\_tip on. I don’t know how to use swig, I tried the foll…

---

## [Tab key traversal](https://www.ruby-forum.com/t/tab-key-traversal/185477)

<div class="topic-metadata">

**Author:** [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Replies:** 1\
**Last updated:** [March 22, 2010, 2:52am UTC](https://www.ruby-forum.com/t/tab-key-traversal/185477 "2010-03-22T02:52:08Z")

</div>

Below is my attempt at changing the focus from one text control to the next control after a person presses the tab key. The wxTE\_PROCESS\_TAB style property has been selected for each of the controls. What correction…

---

## [Exception propagation in wxruby](https://www.ruby-forum.com/t/exception-propagation-in-wxruby/185449)

<div class="topic-metadata">

**Author:** [@biospank](https://www.ruby-forum.com/u/biospank)\
**Replies:** 0\
**Last updated:** [March 20, 2010, 10:31am UTC](https://www.ruby-forum.com/t/exception-propagation-in-wxruby/185449 "2010-03-20T10:31:13Z")

</div>

Hi all, i don’t know if it’s a bug but at least, for me, incomprehensible. try this code (plain ruby): module A class MyException \< StandardError; end def raise\_ex raise MyException, “details…” rescue Exception =\> …

---

## [Events through XRC](https://www.ruby-forum.com/t/events-through-xrc/185372)

<div class="topic-metadata">

**Author:** [@ayanami](https://www.ruby-forum.com/u/ayanami)\
**Replies:** 4\
**Last updated:** [March 19, 2010, 4:13am UTC](https://www.ruby-forum.com/t/events-through-xrc/185372 "2010-03-19T04:13:52Z")

</div>

Hello. I’m very newbie, pardon in advance. I would like to know if events can be generated automatically using XRCise such as ruby\_glade\_create\_template does. When I use DialogBlocks or wxFormBuilder I see that, altho…

---

## [Using Ruby 1.9, but wxruby looking for msvcrt-ruby18.dll](https://www.ruby-forum.com/t/using-ruby-1-9-but-wxruby-looking-for-msvcrt-ruby18-dll/184626)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 1\
**Last updated:** [March 18, 2010, 12:30pm UTC](https://www.ruby-forum.com/t/using-ruby-1-9-but-wxruby-looking-for-msvcrt-ruby18-dll/184626 "2010-03-18T12:30:42Z")

</div>

I installed wxruby on Windows. When running a wxruby app I get a window that pops up saying “The program can’t start because msvcrt-ruby18.dll is missing from your computer!” I’m using Ruby 1.9, so why is it looking …

---

## [WxNotebook](https://www.ruby-forum.com/t/wxnotebook/185268)

<div class="topic-metadata">

**Author:** [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Replies:** 2\
**Last updated:** [March 17, 2010, 7:41am UTC](https://www.ruby-forum.com/t/wxnotebook/185268 "2010-03-17T07:41:18Z")

</div>

I am trying to create a notebook with tabs but have failed. What do I need to do get the tabbed notebook to display properly? Thanks. require ‘rubygems’ require ‘wx’ require ‘ratio1.rb’ class MyApp \< Wx::App def …

---

## [Gridtablebase with sql](https://www.ruby-forum.com/t/gridtablebase-with-sql/185145)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 2\
**Last updated:** [March 15, 2010, 8:43am UTC](https://www.ruby-forum.com/t/gridtablebase-with-sql/185145 "2010-03-15T08:43:30Z")

</div>

Dear all How do I use gridtablebase to display record I get from sql? I try to follow the help and sample, but I don’t understand how to combine the sql data sample code would be good Thank you Regards Hendra

---

## [\[BUG\] Menus on Snow Leopard not working correctly](https://www.ruby-forum.com/t/bug-menus-on-snow-leopard-not-working-correctly/185111)

<div class="topic-metadata">

**Author:** [@DeNigris\_S](https://www.ruby-forum.com/u/DeNigris_S)\
**Replies:** 3\
**Last updated:** [March 14, 2010, 4:55am UTC](https://www.ruby-forum.com/t/bug-menus-on-snow-leopard-not-working-correctly/185111 "2010-03-14T04:55:04Z")

</div>

I posted the following bug at http://rubyforge.org/tracker/index.php?func=detail&aid=27962&group\_id=35&atid=218. Is anyone else dealing with this?

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

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