PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > GUI Combobox
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
GUI Combobox

Réponse
 
LinkBack Outils de la discussion
Vieux 06/11/2007, 11h52   #1
lote
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut GUI Combobox

Hi everbody, i am newest at the Ruby/tk and i want to do something..i
want to use ComboBox but default tk does not contain combobox control.
How can i use it ? and What is the difference between TCL and TK ??

thanks...

  Réponse avec citation
Vieux 06/11/2007, 12h08   #2
Ron Fox
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI Combobox

Tcl is a scripting language quite a bit different from ruby,
tk is a GUI extension to that scripting language that has been
picked up by other scripting languages as well to serve as their
own GUI extension (for more on Tcl/Tk directly, see http://www.tcl.tk).

I could answer this question in Tcl by saying that the tile widget set
in Tk 8.5beta supports comboboxes, however I doubt that Ruby/Tk is that
up-to-date with respect to Tk versions.

Now ComboBox spelled in that way is a BWidget widget (a 'megawidget set'
that is an add on to Tk). Ruby/Tk at http://rubytk.jurijveresciaka.com/
says you make this by doing:

Tk::BWidget::ComboBox.new(root)

I believe to use this you'll have to get the BWidget extensions
installed to your Tk installation. See e.g.

http://blade.nagaokaut.ac.jp/cgi-bin...by-talk/143351

If you can tell me what operating system/distribution you are running on
I could probably you figure out how to do that.
Feel free to contact me off line if you prefer, as this is probably
wandering a bit off topic for the list (into the realm of Tcl/Tk from
Ruby).

Ron Fox



lote wrote:
> Hi everbody, i am newest at the Ruby/tk and i want to do something..i
> want to use ComboBox but default tk does not contain combobox control.
> How can i use it ? and What is the difference between TCL and TK ??
>
> thanks...
>

  Réponse avec citation
Vieux 06/11/2007, 16h30   #3
Hidetoshi NAGAI
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI Combobox

From: Ron Fox <fox@nscl.msu.edu>
Subject: Re: GUI Combobox
Date: Tue, 6 Nov 2007 21:12:04 +0900
Message-ID: <fgplgb$95e$1@aioe.org>
> I could answer this question in Tcl by saying that the tile widget set
> in Tk 8.5beta supports comboboxes, however I doubt that Ruby/Tk is that
> up-to-date with respect to Tk versions.


Current Ruby/Tk (require 'tkextlib/tile') can support many part of
Tile (Ttk) widgets on Tk8.5beta. But, for complete support, some
libraries (especially, 'tkextlib/tile/style.rb') need to be updated.

> Now ComboBox spelled in that way is a BWidget widget (a 'megawidget set'


See also <ruby source>/ext/tk/sample/tkcombobox.rb. ;-)
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h37.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13146 seconds with 11 queries