Changes between Initial Version and Version 1 of GUI_-_Input


Ignore:
Timestamp:
Feb 23, 2008, 4:19:00 AM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GUI_-_Input

    v1 v1  
     1{{Template:GUI_Object|input|[wiki:GUI_-_Properties#buffer_zone buffer_zone], [wiki:GUI_-_Properties#caption caption], [wiki:GUI_-_Properties#cell_id cell_id], [wiki:GUI_-_Properties#font font], [wiki:GUI_-_Properties#max_length max_length], [wiki:GUI_-_Properties#multiline multiline], [wiki:GUI_-_Properties#sprite sprite], [wiki:GUI_-_Properties#sprite_disabled sprite_disabled]'''*''', [wiki:GUI_-_Properties#sprite_selectarea sprite_selectarea],  [wiki:GUI_-_Properties#textcolor textcolor], [wiki:GUI_-_Properties#textcolor_selected textcolor_selected], [wiki:GUI_-_Properties#textcolor_disabled textcolor_disabled]'''*''', [wiki:GUI_-_Properties#tooltip tooltip], [wiki:GUI_-_Properties#tooltip_style tooltip_style]|none}}
     2
     3An input box allows the user to enter text, that can be used by the application, like a Windows edit box.
     4
     5It can have a sprite filling all of its size, and text that can be edited.
     6
     7Selecting a section of it will make a cursor sprite appear below the text (remember they can be monochrome), and a specific text colour for parts that are selected can be set. An initial caption for the input box (eg "Enter your name here"), along with an initial text colour, can be set, which is cleared when the control is first clicked'''*'''.
     8
     9If ''multiline'' is set to "false", the text being inputted does not word-wrap, but scrolls horizontally without a scrollbar.
     10
     11[wiki:Image:gui-object-input.png]
     12
     13{{Template:TODO| |Possibly the control can support clipboard paste from outside the application ... Needs to be confirmed.}}
     14
     15'''''Code of example image:'''''
     16
     17{{{
     18  <object type="input"
     19          name="the_one_to_the_left"
     20          multiline="false"
     21          size="20 20 150 40"
     22          sprite="gd-input"
     23          sprite_selectarea="gd-blue"
     24          font="verdana12"
     25          textcolor="0 0 0"
     26          textcolor_selected="255 255 255"
     27  >Input control with transparent horizontal scrolling
     28  </object>
     29 
     30  <object type="input"
     31          name="the_one_to_the_right"
     32          multiline="true"
     33          size="180 20 350 100"
     34          sprite="gd-input"
     35          sprite_selectarea="gd-blue"
     36          font="verdana12"
     37          scrollbar="true"
     38          scrollbar_style="gd-scrollbar"
     39          textcolor="0 0 0"
     40          textcolor_selected="255 255 255"
     41  >This is an 'multiline' input control that word-wraps when reaching the right edge.
     42  </object>
     43}}}
     44
     45
     46'''Not yet implemented.''' * Planned, but not implemented