# wxRuby

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

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

---

## [How to set exit on close?](https://www.ruby-forum.com/t/how-to-set-exit-on-close/131169)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 2\
**Last updated:** [March 6, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/how-to-set-exit-on-close/131169 "2008-03-06T18:08:27Z")

</div>

I want to set close window when press ‘X’ in top-right I make wxruby GUI from Farpy guie but I can’t close it (when I close I must press close in cmd and the return -1) how can I set it??

---

## [Processus](https://www.ruby-forum.com/t/processus/130950)

<div class="topic-metadata">

**Author:** [@beusse](https://www.ruby-forum.com/u/beusse)\
**Replies:** 1\
**Last updated:** [March 5, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/processus/130950 "2008-03-05T21:11:36Z")

</div>

Salut Alex. J’avait dÃ©jÃ tester ce que tu ma conseiller pour changer la prioritÃ© de mon application, mais Ã§a ne marche pas. VoilÃ le message d’erreur que j’obtient par exemple: “uninitialized constant Process::P…

---

## [Wxruby effect like fxshutter](https://www.ruby-forum.com/t/wxruby-effect-like-fxshutter/130044)

<div class="topic-metadata">

**Author:** [@gerapcik](https://www.ruby-forum.com/u/gerapcik)\
**Replies:** 4\
**Last updated:** [March 4, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/wxruby-effect-like-fxshutter/130044 "2008-03-04T22:12:37Z")

</div>

hi, i was searching for an efect in wxruby like fxshutter from fxruby. http://www.fxruby.org/doc/examples.html is it possible to build an skeleton like this in wxruby? i am ruby beginner

---

## [Processus](https://www.ruby-forum.com/t/processus/130827)

<div class="topic-metadata">

**Author:** [@beusse](https://www.ruby-forum.com/u/beusse)\
**Replies:** 1\
**Last updated:** [March 4, 2008, 1:02am UTC](https://www.ruby-forum.com/t/processus/130827 "2008-03-04T01:02:17Z")

</div>

Salut Alex. Peut tu me conseiller pour que je puisse renomer le processus et changer la prioritÃ© de mon application. merci. sebastien http://beusse.liveror.com/

---

## [Problem with Gauge on windows xp](https://www.ruby-forum.com/t/problem-with-gauge-on-windows-xp/129384)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 28\
**Last updated:** [March 2, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/problem-with-gauge-on-windows-xp/129384 "2008-03-02T16:26:48Z")

</div>

I am new to wxRuby and just built a simple app with a frame containing a static text control and two gauges … I used DialogBlocks to design the ui, and wx\_sugar to generate a base class via xrcise, etc… All of this wo…

---

## [A bug in wxRuby. Segmentation fault in random situations](https://www.ruby-forum.com/t/a-bug-in-wxruby-segmentation-fault-in-random-situations/129363)

<div class="topic-metadata">

**Author:** [@Jacek\_Nowak](https://www.ruby-forum.com/u/Jacek_Nowak)\
**Replies:** 15\
**Last updated:** [March 1, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/a-bug-in-wxruby-segmentation-fault-in-random-situations/129363 "2008-03-01T19:02:13Z")

</div>

Hello, I wrote an application in wxRuby: ruby 1.8.6 wxruby 1.9.4 installed from gem windows xp sp2 After several minutes of running it crashes with the following error: "c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/cust…

---

## [Xrc loading in xrcise-generated base classes](https://www.ruby-forum.com/t/xrc-loading-in-xrcise-generated-base-classes/130573)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 3\
**Last updated:** [February 29, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/xrc-loading-in-xrcise-generated-base-classes/130573 "2008-02-29T23:35:11Z")

</div>

Just a small suggestion… after generating a dialog base class with xrcise, I end up having to modify the line to load the xrc file to the following: xml.load(File.join(File.dirname(\_\_FILE\_\_), “progress\_dialog\_base.xr…

---

## [More Adventures with Wx::GridTableBase](https://www.ruby-forum.com/t/more-adventures-with-wx-gridtablebase/225994)

<div class="topic-metadata">

**Author:** [@echobinary](https://www.ruby-forum.com/u/echobinary)\
**Replies:** 2\
**Last updated:** [February 28, 2008, 11:03am UTC](https://www.ruby-forum.com/t/more-adventures-with-wx-gridtablebase/225994 "2008-02-28T11:03:28Z")

</div>

The saga continues! I have tried linking a grid to a gridtablebase and gotten mixed results but nothing like what i wanted. results have ranged from, nothing to crashing the ruby interpreter. It seems to me you canno…

---

## [Use of sqlite](https://www.ruby-forum.com/t/use-of-sqlite/130401)

<div class="topic-metadata">

**Author:** [@gerapcik](https://www.ruby-forum.com/u/gerapcik)\
**Replies:** 2\
**Last updated:** [February 28, 2008, 4:42am UTC](https://www.ruby-forum.com/t/use-of-sqlite/130401 "2008-02-28T04:42:59Z")

</div>

hi, well, i have another problem. i would like to use a sqlite based database in my application. do i need only sqlite gem and binaries or also wxsqlite? and how to use it? maybe some tutorial or some guidelines… t…

---

## [Missing evt\_tree\_item\_menu method for TreeCtrl?](https://www.ruby-forum.com/t/missing-evt-tree-item-menu-method-for-treectrl/130340)

<div class="topic-metadata">

**Author:** [@chauk-mean](https://www.ruby-forum.com/u/chauk-mean)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/missing-evt-tree-item-menu-method-for-treectrl/130340 "2008-02-27T17:24:12Z")

</div>

Hi, The documentation mentions the evt\_tree\_item\_menu method for TreeCtrl but it seems that this method is not defined (wxRuby 1.9.4 on Windows). As a workaround, I’m currently using evt\_tree\_item\_right\_click. Cheer…

---

## [Draw\_poly\_polygon](https://www.ruby-forum.com/t/draw-poly-polygon/130005)

<div class="topic-metadata">

**Author:** [@doncarlosx](https://www.ruby-forum.com/u/doncarlosx)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/draw-poly-polygon/130005 "2008-02-27T12:12:18Z")

</div>

Hey everyone, I keep getting in \`draw\_poly\_polygon’: in method ‘DrawPolyPolygon’, argument 3 of type ‘int \[\]’ (TypeError) from the docs I think it wants g.draw\_poly\_polygon 2, \[1, 2, 3, 4, 5, 6\], \[Wx::Point.new(25, …

---

## [Re: wxruby 1.9.4 crashes with ruby 1.9.0](https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/186767)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/186767 "2008-02-25T22:09:13Z")

</div>

Ok. That could be the problem then since I did not compile wxruby. I’ll check out how to do “compile wxruby against 1.9.0” and see if it works better. Thanks! ----- Original Message ---- From: Alex F. removed\_email\_…

---

## [Re: wxruby 1.9.4 crashes with ruby 1.9.0](https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/130156)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/130156 "2008-02-25T21:46:50Z")

</div>

Ok. That could be the problem then since I did not compile wxruby. I’ll check out how to do “compile wxruby against 1.9.0” and see if it works better. Thanks! ----- Original Message ---- From: Alex F. removed\_email\_…

---

## [Re: wxruby 1.9.4 crashes with ruby 1.9.0](https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/130113)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/re-wxruby-1-9-4-crashes-with-ruby-1-9-0/130113 "2008-02-25T15:42:34Z")

</div>

No. I don’t have any “evt\_foo :on\_foo” construct in my code. What else might cause the problem? Thanks! ----- Original Message ---- From: Alex F. removed\_email\_address@domain.invalid To: General discussion of wxRuby…

---

## [Wxruby 1.9.4 crashes with ruby 1.9.0](https://www.ruby-forum.com/t/wxruby-1-9-4-crashes-with-ruby-1-9-0/129997)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/wxruby-1-9-4-crashes-with-ruby-1-9-0/129997 "2008-02-25T13:15:05Z")

</div>

I downloaded ruby 1.9.0 and do “make” and “make install” ruby to /usr/local … When I tried to run my wxruby code, I got the following message … Any idea what I did wrong? \[BUG\] unknown type 0x22 (0x12 given) ruby 1.…

---

## [Re: hang on leopard](https://www.ruby-forum.com/t/re-hang-on-leopard/129865)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 5:09am UTC](https://www.ruby-forum.com/t/re-hang-on-leopard/129865 "2008-02-22T05:09:17Z")

</div>

Hi Mario, Alex and you are great ! I’ll try not to bother you guys too much :slight\_smile: :slight\_smile: :slight\_smile: I’m going to restructure my program and not use ruby threads in WxDialog based class, and use W…

---

## [Re: hang on leopard](https://www.ruby-forum.com/t/re-hang-on-leopard/129803)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 3:15am UTC](https://www.ruby-forum.com/t/re-hang-on-leopard/129803 "2008-02-22T03:15:27Z")

</div>

Hi Mario, Thanks for the explanation. I appreciate it. The only reason I was trying out scripting language is because of the “cross platform” (write once and use everywhere). I’m going to give another try of not usin…

---

## [XRCise says "Cannot create wrapper for subclass of wxWizard"](https://www.ruby-forum.com/t/xrcise-says-cannot-create-wrapper-for-subclass-of-wxwizard/119907)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 21, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/xrcise-says-cannot-create-wrapper-for-subclass-of-wxwizard/119907 "2008-02-21T23:38:13Z")

</div>

I have created a very simple DialogBlocks project that consists of a very simple wxWizard. I have exported the project to XRC and am trying to get XRCise to process it. XRCise produces the message “Cannot create wrapp…

---

## [Re: hang on leopard](https://www.ruby-forum.com/t/re-hang-on-leopard/129790)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/re-hang-on-leopard/129790 "2008-02-21T16:10:04Z")

</div>

Hi Alex, Thank you so much for taking time to give me the guidance! I’ll try your suggestion and remove the threads and see what happens … Thanks again! ----- Original Message ---- From: Alex F. removed\_email\_addres…

---

## [Re: hang on leopard](https://www.ruby-forum.com/t/re-hang-on-leopard/129718)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 2\
**Last updated:** [February 21, 2008, 6:00am UTC](https://www.ruby-forum.com/t/re-hang-on-leopard/129718 "2008-02-21T06:00:52Z")

</div>

Thanks for the explanation, Alex. If it is a thread issue, I wonder why I couldn’t duplicate it on XP? Since I can’t duplicate it on XP, I was thinking that it is not just a pure thread issue, but Wx for OSX + ruby th…

---

## [Re: hang on leopard](https://www.ruby-forum.com/t/re-hang-on-leopard/129630)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 1\
**Last updated:** [February 20, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/re-hang-on-leopard/129630 "2008-02-20T22:14:46Z")

</div>

Hi Alex, Finally, I got my code to work properly by not using the show(true) and show(false) pair within a thread in the classes that subclass from Dialog. The symptoms I experienced if you put the show(true/false) p…

---

## [Make frame dynamically size to contents?](https://www.ruby-forum.com/t/make-frame-dynamically-size-to-contents/129551)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 4\
**Last updated:** [February 20, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/make-frame-dynamically-size-to-contents/129551 "2008-02-20T21:51:57Z")

</div>

What magic and/or code should I use to cause a frame to adjust to fit the contents? When I change label text, for example… The docs led me to believe this is done automatically but that doesn’t seem to be the case… Su…

---

## [Re: hang on leopard](https://www.ruby-forum.com/t/re-hang-on-leopard/129601)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 12:25am UTC](https://www.ruby-forum.com/t/re-hang-on-leopard/129601 "2008-02-20T00:25:20Z")

</div>

Yes. I already use frame as the parent. Can I send you the zip file? I isolate it to about 350 lines … the part that is in question is less than 50 lines. Most of the lines are from the xrc file and setup window/fram…

---

## [Re: hang on leopard](https://www.ruby-forum.com/t/re-hang-on-leopard/129515)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 1\
**Last updated:** [February 19, 2008, 9:52am UTC](https://www.ruby-forum.com/t/re-hang-on-leopard/129515 "2008-02-19T09:52:08Z")

</div>

Hi Alex, An update: The error messages do not happen if I do not do show/hide the 2 dialog boxes. Is there anything that I should do before calling show(false) and show(true)? Thanks in advance! ----- Original Mes…

---

## [Re: hang on leopard](https://www.ruby-forum.com/t/re-hang-on-leopard/129481)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/re-hang-on-leopard/129481 "2008-02-18T23:11:28Z")

</div>

Hi Alex, Thanks. I’ll look into it. BTW, just an FYI: The “hang” problem disappears after I restart my leopard machine, and I’m back to my original issues where I kept getting the following message at random times (…

---

## [Re: hang on leopard](https://www.ruby-forum.com/t/re-hang-on-leopard/129445)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 1\
**Last updated:** [February 18, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/re-hang-on-leopard/129445 "2008-02-18T18:25:13Z")

</div>

Hi Alex, Thanks for the quick reply. I appreciate it. My apps has 3 user threads: A dialog box that shows numbers in flashing fashion. This dialog has a number thread that shows a number, sleep, show next number, s…

---

## [Hang on leopard](https://www.ruby-forum.com/t/hang-on-leopard/129429)

<div class="topic-metadata">

**Author:** [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Replies:** 1\
**Last updated:** [February 18, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/hang-on-leopard/129429 "2008-02-18T15:43:17Z")

</div>

Hello … I’m a newbie to ruby and wxruby. I’m trying to create 1 frame (the app) that creates 2 dialog boxes. Each dialog box has wxtextctrl, and 1 dialog class has 1 thread and the other has 2 threads. At first, I…

---

## [\[OT\] Rice 1.0.0 - Ruby Interface for C++ Extensions](https://www.ruby-forum.com/t/ot-rice-1-0-0-ruby-interface-for-c-extensions/128791)

<div class="topic-metadata">

**Author:** [@Alec\_R](https://www.ruby-forum.com/u/Alec_R)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/ot-rice-1-0-0-ruby-interface-for-c-extensions/128791 "2008-02-11T16:04:17Z")

</div>

I guess that some folks might not have seen: http://tinyurl.com/2uzh4k yet, but would be interested. Regards, Alec

---

## [Grid vs GridTableBase| + Sequel + SQLite3](https://www.ruby-forum.com/t/grid-vs-gridtablebase-sequel-sqlite3/128003)

<div class="topic-metadata">

**Author:** [@EchoB](https://www.ruby-forum.com/u/EchoB)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/grid-vs-gridtablebase-sequel-sqlite3/128003 "2008-02-06T15:33:23Z")

</div>

Hey all, Wondering if i could get an example of working code that ties Sequel (or any other database layer) into a GridTableBase and then into a Grid. I am just now trying it and i cant seem to get it to work - no err…

---

## [Wxruby2 problems](https://www.ruby-forum.com/t/wxruby2-problems/127811)

<div class="topic-metadata">

**Author:** [@eliben](https://www.ruby-forum.com/u/eliben)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/wxruby2-problems/127811 "2008-02-01T14:22:12Z")

</div>

Thanks for the repacking directions with rs2exe ! \[warning: this is bizarre!\] While running a script with a wxruby GUI, my mouse (trackball, actually) becomes much slower. It’s configured to be quite fast because I…

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

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