Select items in a VBOX?

J

John Locke

Hi,
I would like to know how can I select items in a VBOX.
Right now I have a vertical box inside a scrolled window, where I push
items (I push progress bars into it).
So if I push for example 20 progress bars, I can scroll up and down and
see a vertical list of 20 progress bars.
What I would like to do is to select each one of those progress bars,
and be able to perform actions on them (such as stop/resume them, erase
them from the vbox, etc).
How can I do it?

Or is there some other structure that I can use to perform that kind of
actions? I mean, push widgets into it, and then be able to select those
widgets in order to perform actions on them.

Thanks.
 
J

John Locke

OR....... I've just thought something else: maybe there's no way to
select the items from the VBOX, nor any kind of list where you can
select its items, but it's the same item -the widget itself- who must
have the property of being selectionable.

Therefore I wonder, is there some way to make the Progress Bars
selectionables?

Dunno...........
 
P

Phillip Gawlowski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Locke wrote:

| Or is there some other structure that I can use to perform that kind of
| actions? I mean, push widgets into it, and then be able to select those
| widgets in order to perform actions on them.

Maybe, maybe not. Which GUI toolkit are you using?

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

~ - You know you've been hacking too long when...
...you get snail mail, and you think to your self "You have new mail on node
"your_address" from user "name_on_the_frank".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgxqaoACgkQbtAgaoJTgL83VwCfSeoI1MIEqiHBgfgH9JsbBUUi
eZYAn1LgEbggxFHe959i0HzYThXc+VGl
=dxLK
-----END PGP SIGNATURE-----
 
P

Phillip Gawlowski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Locke wrote:
| Hey!
| Thanks for your answer.
| The toolkit I use is Ruby GTK2, and all I write I get it from this
| website:
| http://ruby-gnome2.sourceforge.jp


This should have anything you need.

My memory of GTK2 and its Ruby bindings is a bit murky, but connecting
an on_click signal to the progress-bars should do the trick.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

Zmodem has bigger bits, softer blocks, and tighter ASCII.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgxsC4ACgkQbtAgaoJTgL/zcACgoxvPFcvsUk/5zLgmc3K+Nddp
cKQAnighNPY0aG2HLRIMsoTu4qiRZVil
=94s8
-----END PGP SIGNATURE-----
 
J

John Locke

Hey!
Thanks for your reply.
You mean "on_click" signal or "signal_connect("clicked")"?
Because for the buttons, I use "signal_connect("clicked")... but that is
because the buttons have got that function.
A progressbar has got the function "signal_connect"? I mean, it's able
to be clicked on it?


About "on_click" dunno exactly what do you mean.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,668
Latest member
SamiraShac

Latest Threads

Top