constructor Gtk2_EntryDialog (Previous) (Next) Gtk2_EntryDialog::get

View this page in Last updated: Sun, 24 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Gtk2_EntryDialog::new_simple()

Gtk2_EntryDialog::new_simple()  -- あまりパラメータを使用しない、シンプルなコンストラクタ

説明

あまりパラメータを使用しない、シンプルなコンストラクタです。

メッセージの型は Gtk::MESSAGE_QUESTION、 親が設定されている場合はフラグが Gtk::DIALOG_MODAL、 そして OK ボタンのみが表示されるようになります。


<?php
require_once 'Gtk2/EntryDialog.php';

$id Gtk2_EntryDialog::new_simple(
    'What\'s your name?',       //メッセージ
    'Don\'t know'               //デフォルトのテキスト
);

$answer $id->run();
$id->destroy();
if ($answer == Gtk::RESPONSE_OK) {
    echo 'The name is: ';
    var_dump($id->get_text());
} else {
    echo "You cancelled\r\n";
}
?>

パラメータ

string $message

表示するメッセージ。

string $default

入力欄のデフォルトのテキスト。

GtkWindow $parent

親ウィンドウ (null でも可)。

constructor Gtk2_EntryDialog (Previous) (Next) Gtk2_EntryDialog::get

Download Documentation Last updated: Sun, 24 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.