[#18226] Ruby 本ってば、うれしいなー — Atsuko Yoshida <atsuko@...>
こんにちは〜。久しぶりです。あつこです。
[#18233] [book] blade.nagaokaut.ac.jp/ruby/ruby-list/ — Shin-ichiro Hara <sinara@...>
原です。
けいじゅ@日本ラショナルソフトウェアです.
原です。
これつぐです。
けいじゅ@日本ラショナルソフトウェアです.
これつぐです。
けいじゅ@日本ラショナルソフトウェアです.
原です。
[#18265] アクセス制御について — Tadashige Morii <m_tada@...>
森井です。
[#18293] [book] 新宿紀伊國屋売り上げ情報 — Noritsugu Nakamura <nnakamur@...>
[#18332] rubyTk の Tk は何がお勧めですか? — Sakae Kobayashi <sakae@...>
小林栄と申します。
[#18338] オブジェクトの非同一性判定 — Ayanosuke <aya@...>
綾乃介です。
いわおかです。
綾乃介です。
[#18348] Is there ext/GD for gd-1.7.x — "OGAWA, Hiroshi Santa" <santa@...>
Ruby本買って目から鱗を落としながら読んでいます。
[#18361] Proc in a loop — ttate@...
立石です。
[#18374] regular pattern — Katsuya Tanaka <tanaka@...>
まつもと ゆきひろです
[#18420] bindrv on oracle — 中村暁史 Nakamura Akifumi <BXQ04723@...>
[#18447] mswin32 でのファイル名の大 / 小文字 — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
わたなべです.
[#18467] Array doesn't include Comparable — kjana@... (YANAGAWA Kazuhisa)
Array#<=> が定義されてるのに not Array < Comparable なのは何か理由があ
[#18476] paramclass — gotoken@... (GOTO Kentaro)
ごとけんです
[#18485] Linux magazine 12/1999 — WATANABE Tetsuya <tetsu@...>
渡辺哲也です。
なひです.
[#18494] `make test' failure on Cygwin build w/ --enable-shared — Mimpei MORISHITA <mimpei@...>
森下 @ CAC と申します。
[#18501] 関数 ` の動作 — Keisuke CHIBA <chiba@...>
ちばと申します.
[#18517] 自分の IP を獲得する方法 — Suguru Kakishita <kakky@...>
柿下です
[#18526] アイコンコンテスト(ファイル用) — Hoshino Hitoshi <zin@...>
星野(Zin)と申します。
[#18533] cover animal for Ruby book — Koretsugu Daigoro <tmmcross@...>
これつぐです。
[#18539] [book] $*, etc. — Yasuhiro Fukuma <yasuf@...>
福間@福岡 です。
ごとけんです
At Mon, 15 Nov 1999 17:49:27 +0900,
ごとけんです
小林です。
[#18545] 変数の型チェック — "Hideaki Takata" <hideakit@...3.dion.ne.jp>
高田です。
[#18580] — tokoma@... (中川 誠)
中川です。
もとの質問のかたとは別の中川です。
中川です。
中川です。長文で失礼します。
中川です。
まつもと ゆきひろです
中川です。
えぐち@エスアンドイー です。
中川です。
えぐち@エスアンドイー です。
中川です。
えぐち@エスアンドイー です。
まつもと ゆきひろです
えぐち@エスアンドイー です。
中川です。
えぐち@エスアンドイー です。
中川です。
えぐち@エスアンドイー です。
中川です。
えぐち@エスアンドイー です。
中川です。
えぐち@エスアンドイー です。
[#18582] Regexp source — Kazuhiro Nishiyama <nishiyama@...1.tiki.ne.jp>
こんばんは、ZnZです。
新井です。
[#18584] [REQ] [].grep(pat) #=> [] — gotoken@... (GOTO Kentaro)
ごとけんです
立石です。
[#18603] coding style — Shugo Maeda <shugo@...>
前田です。
[#18608] swigruby-0.3 — Masaki Fukushima <fukusima@...>
福嶋です。
[#18632] header output in eruby — TAKEUCHi Kahori <take-k@...>
こんにちは、たけうちと申します。
[#18637] constant? — Kazuhiro Yoshida <moriq.kazuhiro@...>
もりきゅうです。
わたなべです.
もりきゅうです。
まつもと ゆきひろです
原です。
まつもと ゆきひろです
原です。
まつもと ゆきひろです
あおきです。
[#18638] fibonacci — Kazuhiro Yoshida <moriq.kazuhiro@...>
もりきゅうです。
[#18666] FileTest on NT — Keisuke CHIBA <chiba@...>
ちばと申します.
[#18668] rand — Ito Kazumitsu <ito@...>
伊藤と申します。
[#18687] Re: header output in eruby — TAKEUCHi Kahori (竹内かほり) <take-k@...>
たけうちです。
[#18709] ADO にて datetime 型の取得 — Takashi SHIODA <tsio@...>
塩田です。
助田です.
オレンジソフト塩田です。
助田です.
わたなべです.
なひです.
[#18712] Re: header output in eruby — TAKEUCHi Kahori <take-k@...>
たけうちです。
なひです.
まつもと ゆきひろです
まつもと ゆきひろです
なひです.
[#18741] Re: Why Mix-in? (Re: [book] $*, etc.) — Toyofuku <toyofuku@...>
豊福です。
まつもと ゆきひろです
[#18773] [Q] mod_ruby を使用したスクリプトについて — Yamada Kenji <kyamada@...>
[#18788] super — Kazuhiro Nishiyama <nishiyama@...1.tiki.ne.jp>
こんばんは、ZnZです。
[#18801] Re: super — Kazuhiro Yoshida <moriq.kazuhiro@...>
もりきゅうです。ちょいと長文。
[#18807] protected なメソッドの再定義 — YAMASHITA Junji (山下 純司) <ys_jyunji@...>
山下 純司です。
[#18830] mod_ruby-0.1.4 — TAKAHASHI Masayoshi <maki@...>
高橋征義です。
In message "[ruby-list:18830] mod_ruby-0.1.4"
高橋征義です。
なひです.
高橋です。
[#18833] delete array member inside each block — Kikutani Makoto <kikutani@...>
たとえば、「整数の配列の偶数メンバーだけ消す」みたいのは
[#18852] Re: Why Mix-in? (Re: [book] $*, etc.) — Toyofuku <toyofuku@...>
豊福です。
[#18853] initializer polymorphism? — Takeyuki Watadani <watadani@...>
渡谷といいます。
In message "[ruby-list:18853] initializer polymorphism?"
渡谷です。すばやい回答ありがとうございます。
ごとけんです
福嶋です。
ごとけんです
石橋秀仁です。無用の情報です。
[#18868] Singleton の instance が複数になることがある — Kazuhiro Nishiyama <nishiyama@...1.tiki.ne.jp>
こんばんは、ZnZです。
[#18896] Database and Object Oriented Programming — Akihiro Yamauchi <aygoofy@...>
こんばんは。
[#18911] Re: eRuby 変換後の無駄 (?) な改行 — TAKEUCHi Kahori <take-k@...>
たけうちです。
松尾です。
前田です。
こんばんは、ZnZです。
前田です。
[#18914] Ruby standard GUI framework? — Hideto ISHIBASHI <s34204@...>
石橋秀仁です。
石橋秀仁です。
石橋秀仁です。
石橋秀仁です。
田中@ISASです。ruby-listの方は初めてです。よろしくおねがいします。
たかたです。
石橋秀仁です。
石橋秀仁%オープンソース原理主義者です。
In message <19991206121518W.s34204@vip.cis.kurume-nct.ac.jp>
[#18941] ruby-1.4.2 for Human68k について — IWATSUKI Hiroyuki <don@...>
はじめまして、岩月と申します。
[#18948] 他言語との比較 — とみたまさひろ <tommy@...>
とみたです。
[#18961] or と || の違い — Ayanosuke <aya@...>
館林と申します。
川戸と申します。はじめまして。
[#18994] ftplib で日付の詳細な list を得たい — Hiroshi Saito <HiroshiSaito@...>
こんにちは、サイトウです。
[ruby-list:18731] Re: Ruby/Gtk Tutorial; Toolbar
Hi,
Now I've translated chapter toolbar of the Ruby/GTK documentation
in <URL:http://ruby.freak.ne.jp/gtk/>. Check it out!
--
SUGIHARA Hiroshi
maili31s@clio.ne.jp
Ruby/Gtk Tutorial ToDo 19991119
#======================================================================
...skip
#======================================================================
/nextfile toolbar.html
/chap Toolbar
<u>Toolbar</u> has become standard in the recent GUI applications,
which have a set of common-use buttons, or so.<br>
On Gtk, the toolbar is a kind of the container widget, and it can
place the buttons with icon and/or the other optional widgets,
vertically or horizontally.
#----------------------------------------------------------------------
/section A sample of the toolbar
Here is a tiny sample of the toolbar. (Excuse its a-bit-small scale ;-)
<p>
/proginsert toolbar.rb
Execution result:<br>
<img src="imgs/toolbar.gif">
<p>
Illustration of the program above:<br>
<ul>
=c pix, mask = Gdk::Pixmap::create_from_xpm(window.window, nil, "test.xpm")
It generates an icon (pixmap) put on the button of the toolbar.
Only one icon is generated here and is common with all buttons,
but actually they each wants their own icons.
=c toolbar = Gtk::Toolbar.new(Gtk::ORIENTATION_HORIZONTAL, Gtk::TOOLBAR_BOTH)
It generates a toolbar widget.
First argument desinates the orientation of the toolbar widget.
Either of the two below will be chosen:
<ul>
<li>Gtk::ORIENTATION_HORIZONTAL (...horizontal)
<li>Gtk::ORIENTATION_VERTICAL (...vertical)
</ul>
Second argument specifies the style of the button,
and is either of the followings:
<ul>
<li>Gtk::TOOLBAR_TEXT (...only text)
<li>Gtk::TOOLBAR_ICONS (...only icons)
<li>Gtk::TOOLBAR_BOTH (...both)
</ul>
This style is applied to the button made by following `append_item'.<br>
[Example] The case to designate Gtk::TOOLBAR_TEXT<br>
<img src="imgs/toolbar-text.gif">
=c toolbar.append_item('Open', 'Open File', nil, Gtk::Pixmap::new(pix, mask), nil) {}
It appends an item to the toolbar.
Button is the item at here.
Each of the arguments (many) have a following role; from the head,
<ol>
<li>text on the button,
<li>string displayed as tooltips,
<li>discriminator (string) used on the tooltip;
although `nil' should be OK,
<li>`pixmap' used for the icon,
<li>and callback `proc' at the time the button is pushed.
</ol>
`append_item' is a iterator (but it doesn't forced to iterate...),
and it can give the callback closure as the block (it cannot skip)。
The first item `Open' is empty,
so nothing happens when the button is pushed.
<br>
Rest two buttons can be made in the same way, while this time
the following sentence is written in the block.<br>
<code>toolbar.set_button_relief(Gtk::RELIEF_NORMAL)</code><br>
`set_button_relief' is a method of the toolbar widget,
and change its relief style of the button on the item.<br>
<ul>
<li>Gtk::RELIEF_NORMAL (same as the normal button; default)
<li>Gtk::RELIEF_NONE (no relief)
</ul>
Push the button `Borders' or `Borderles', and
the relief style of the item of the toolbar changes.<br>
[Example] push `Borderless' button:<br>
<img src="imgs/toolbar-borderless.gif">
</ul>
#----------------------------------------------------------------------
/section Other methods
<dl>
=d <code><b>prepend_item</b></code>(<i>text, tooltip_text, tooltip_private_text, icon, callback</i>)
=d <code><b>insert_item</b></code>(<i>text, tooltip_text, tooltip_private_text, icon, callback, pos</i>)
<dd>
`prepend_item' is almost the same as `append_item',
but it appends the item before the location.
`insert_item' appends it on the location specified by `pos'.
=d <code><b>set_orientation</b></code>(<i>orientation</i>)
<dd>
It designates the orientation of the toolbar.
<i>orientation</i>
The argument is either of the followings:
<ul>
<li>Gtk::ORIENTATION_HORIZONTAL (...horizontal)
<li>Gtk::ORIENTATION_VERTICAL (...vertical)
</ul>
This designation will be promptly reflected on the toolbar.
=d <code><b>set_style</b></code>(<i>style</i>)
<dd>
Specify the style of the items (buttons).
The argument is either of the followings:
<ul>
<li>Gtk::TOOLBAR_TEXT (...only text)
<li>Gtk::TOOLBAR_ICONS (...only icons)
<li>Gtk::TOOLBAR_BOTH (...both)
</ul>
Each of these designations will be promptly reflected on the toolbar.
=d <code><b>set_tooltips</b></code>(<i>enable</i>)
<dd>
It designates whether tooltips should be effective or not.
The argument is either `true' or `false'.
This designation will be promptly reflected on the toolbar.
=d <code><b>append_space</b></code>
=d <code><b>prepend_space</b></code>
=d <code><b>insert_space</b></code>(<i>pos</i>)
<dd>
Each of them inserts the space as a pause of the items, where
`append_space': before; `prepend_space': after;
`insert_space': on the specified, location.
=d <code><b>set_space_size</b></code>(<i>space_size</i>)
<dd>
It designates the size of the space by integer value.
This designation will be promptly reflected on the toolbar.
=d <code><b>set_space_style</b></code>(<i>style</i>)
<dd>
Specify the style of the spaces.
<ul>
<li>Gtk::Toolbar::SPACE_EMPTY (...empty at all)
<li>Gtk::Toolbar::SPACE_LINE (...lined)
</ul>
=d <code><b>append_widget</b></code>(<i>widget, tooltips_text, tooltips_private_text</i>)
=d <code><b>prepend_widget</b></code>(<i>widget, tooltips_text, tooltips_private_text</i>)
=d <code><b>insert_widget</b></code>(<i>widget, tooltips_text, tooltips_private_text</i>, pos)
<dd>
Add an arbitrary widget (not an item).
</dl>
#/write
#======================================================================
/nextfile gtkrc.html