Hi!

    This is the format and there is one for Return=Yes|No

    So, look at this example. In standard XML they use multilines but GW 
shortens the name.

    So include the return=yes as part of your code.

        Bruce


An editbox element creates a standard edit box control, used for obtaining 
keyboard
input. If returns is set to no in a multiline edit box, pressing ENTER will 
cause
the default button to be selected.
Syntax
<editbox
General Attributes
lines="single|multiple"
textalign="left|center|right"
restrictions="number|lowercase|uppercase|password|none"
readonly="yes|no"
returns="yes|no"
maxlength="number"
passwordchar="char"
scroll="none|vertical|horizontal|both"
>
<!-- Text placed here will be placed inside the edit box -->
</editbox>
Attributes
In addition to the
General Attributes
, editbox elements can contain the following style attributes.
Attribute
Description
lines
Specifies wether an edit box accepts more than one line of text, or multiple 
lines
of text. Available options: single (default), multiple.
textalign
Specifies the alignment for the text inside the edit box. Available options: 
left
(default), center, right.
restrictions
Applies special formatting restrictions to edit box text. Available options: 
number
(only digits are allowed), lowercase (only lowercase characters are 
allowed), uppercase
(only uppercase characters are allowed, password (custom characters --  
star/asterisk
by default -- will replace typed characters), none (default).
readonly
Sets the edit box as read only, so that text cannot be modified. Available 
options:
yes, no (default).
returns
Specifies whether presses of the ENTER key will insert a carriage return 
(i.e. create
a new line) in a multiline edit box. Available options: yes (default), no.
maxlength
Specifies the maximum number of characters allowed in an edit box.
passwordhar
Specifies the character to be used when the restriction option is set to 
password.
scroll
Specifies the location of scroll bars. Available options: none (default), 
vertical,
horizontal, both.
Example
<wescriptui>
<language id="409">
        <dialog id="myDialog1">
                My Dialog Title
                <group>
                        <group orientation="vertical">
                                <static id="txt_sample1" 
shortcut="e">Editbox Sample:</static>
                                <editbox id="edit_sample1"></editbox>
                        </group>
                        <group>
                                <button id="btn_ok" system="ok" 
default="yes" widthclass="btn">OK</button>
                                <button id="btn_close" system="cancel" 
widthclass="btn"
width="+10">Close</button>
                        </group>
                </group>
        </dialog>
</language>
<options>
        <languageorder>
                WE,OS,409
        </languageorder>
</options>
</wescriptui>

Sent: Thursday, June 28, 2012 8:18 AM
Subject: RE: questions on app UI design (possible answer to question 2)


A possible answer to question 2.
First here's a reminder of the question:

2. [snip] Is there an attribute or empty element that will enable the
left and right arrow keys to cycle through the items? the idea would
be so that pressing left arrow on file would move focus onto help,
and pressing right arrow over help would move it back to file.

It seems that declaring the minimize or sysmenu or both attributes in
the dialog element solves the issue.  the result is the inclusion of
the system pulldown menu in the menubar and the ability to loop
through the menubar items with either the left or right arrow keys.

Regards
Matt

Reply via email to