shoes

Does Shoes have a list view control?

I was taking a look at Shoes which seems like a very nice tool for quick GUI applications. The common elements/controls, however, don't seem to include the equivalent of a list/report view (e.g., ListView in Windows, NSTableView in OS X). Did I just miss this, or does it not (yet) exist? ...

How to position editbox's cursor in shoes?

Shoes is very handy GUI tool. I would like to do a search form so that a user is helped to navigate through larger texts for editing. For this I need to move the cursor within an editbox element. Here you'll see my question in code: Shoes.app do stack do p=para "After pressing 'search' a question will arise" box=edit_box ...

In shoes, how do I dock a stack to the bottom of the window?

In shoes, how would I dock a stack to the bottom of the window? For example I have the following snippet. Shoe.app do stack :height => 100 do background red end stack :height => 100 do background blue end end I would like the blue stack to dock to the bottom of the window, and stay there whenever I resize the win...

When does the finish event get called in shoes?

Using Shoes, I would like to have a block executed upon window destruction. I thought I could use the finish event, but in the following piece of code, "Starting" is displayed, but "Finished" is never shown. Shoes.app(:title => "Test") do flow do start do |obj| alert("Starting") end finish do |obj| ale...

Is Shoes' idea of window dimensions broken on the Mac, or am I crazy?

Full disclosure: I'm very new to Ruby. The following code seems like it should update the para's text with the app's current dimensions as you resize it. Shoes.app do stack do @para = para end animate 1 do @para.text = "%d x %d" % [ app.width, app.height] end end But it never changes. I ...

Using Ruby libraries and gems with a Shoes app

I am writing a little Shoes app that requires a library I wrote with my regular Ruby installation. My library uses the 'net-ssh' gem and a bunch of other Ruby libraries. When I run my library directly with regular ruby (it has its own command-line interface) like this: ruby my_lib.rb ...all is fine. But when I try to require it withi...

How can I access a 'Browse...' dialog in Shoes?

Okay so I want to use Shoes for some of my programs, but what I absolutely need is a "Browse..." dialog so the user can browse for a directory/file locally. How can I do that? ...

Shoes and Gems

Code: Shoes.setup do gem 'mechanize' end require 'rubygems' require 'mechanize' Running Shoes on it says: no such file to load -- mechanize Thank you. ...

Alignment of edit_line

I am using Shoes 0.r1134, on Mac OS X 10.4 When running the following code, Shoes.app do edit_line("Something") edit_line("Something Else") end the second edit_line control seems to be placed 4 pixels lower than the first one, in such a way that they are not flush with each other. Why is this? ...

Why is keypress not called after clicking on native controls?

Shoes.app do keypress do |k| if k==:f1 alert("Foo bar") end end button "foo" end Pressing F1 causes the alert box to pop up but. Once i click the button "foo" i.e. if the focus changes to a native control in the app. the keypress events are no longer captured. any way to get around it? I am using windows xp. ...

Do threads work in Ruby Shoes yet?

Any work going on to get other ruby threads working with Shoes? ...

Masks and transparency

Hi, I'm fairly new to Shoes and ran into two problems. First I want to set a mask using a partially transparent png, like this: mask do image "images/stencilMask.png" end Is this possible somehow or can only vector shapes be used? Apart from that, I noticed a small bug(?) when trying to set a transparent color as a stroke on ...

Removing events in Shoes

The is any way to remove the events in Shoes? I searched around many websites and references but I can't found any way to remove a event... I minding that I will need to create my own event manager... its really nescessary? or there is a way to desattach event listeners? ...

Removing a slot on a child button click

I've been trying to remove a slot from a child button click, but I can't seem to get it to work. E.G. flow do button("X") {parent.remove} end Any suggestions? ...

How do I enable text selection, copying, and pasting in a Shoes app?

Hi Shoesers, Is there any way to allow text selection, copying and pasting in a Shoes app? I'm making a little utility, and it would be great if it could support this functionality. I know shoes uses Pango/Cairo for text rendering, so I imagine there's a way to turn this on. Anyone? _why? Also, _why, thanks for the great toolkit! ...

will shoes support GTK on windows? can we use all ruby-gnome2 APIs in shoes?

I know neither is true for now, but I really want these to be true. I heard that ruby-gnome2 and shoes are the top most used desktop libraries for ruby. since shoes and gtk depends on some common things, and shoes give a higher abstraction for UI, why not go a step further to merge them? make shoes totally on top of GTK. I respect diffe...

How do I get shoes executable into my path?

I'm getting started with shoes and the nks docs tell me two write a script and then launch it like this: > shoes myapp.rb the shoes executable is in the Shoes.app I installed. Thus, shoes is not in my path so I can't do this. Tried symlinking shoes into /usr/local/bin but I get this error when I try to start it. > shoes myapp.rb FSP...

Click event in Shoes

On clicking a slot , I change the contents of the slot to provide user feed back, then call some code which takes several seconds to run. However the changes to the slot do not render until after the 'slow' process has completed. Is there any way I can force the rendering to happen before the 'slow' code runs. In the following example t...

Method for building lightweight, cross-platform, text editor

I'm planning to build a simple, lightweight text editor that combines a great look with keyboard focused input. I want to have a lot of control over things like antialiasing and all the graphics in general, but I don't care about having a whole library of widgets. Almost the entire UI will be text-based and in the main canvas/window of ...

gedit cannot open shoes2.run

hello i've just downloaded shoes but can't get them out the box. double clicked on shoes2.run in ubuntu intrepid and gedit opened with the following message: " Could not open the file /home/mark/Marks files/2…ng/Programming/shoes2.run using the Unicode (UTF-8) character coding. Please check that you are not trying to open a binary fi...