Proposal for "Gtk2_EntryDialog"

» Metadata » Status
» Description
Gtk2 message box with text entry field.
As there is no default widget in PHP-Gtk2, I decided to write this class to make it as easy as possible to get simple input from the user.

There are three ways to get the text:
- Normal constructor with (somewhat complicated) parameters as known from GtkMessageDialog. Run the dialog and use getText() to get the text.
- new_simple() static method constructor with only one required parameter for the text. Run the dialog and use getText() to retrieve the text.
- Static get() method that just returns the inputted text instead of the dialog itself. This is the most convenient and code-saving method to get an input.
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2006-03-03
  • Proposal: 2006-03-03
  • Call for Votes: 2006-03-11
  • Christian Weiske
    [2006-03-04 07:29 UTC]

    Added two convenience methods.
  • Christian Weiske
    [2006-03-11 12:11 UTC]

    - Changed name to Gtk2_EntryDialog
    - PEAR compatible camelCase method aliases
    - get() returns false if the user cancelled