Hi xml file is appended to the message enclosed by start xml and end xml tags.
1. in the static element on line 22, I've noticed that only a handful of values (i.e. characters) are accepted by the shortcut attribute. So far, I've a, i, and o. Any other key simply won't work. What's the reason for this? I've a suspicion that it's something fairly elementary.
2. In the xml file below you'll find that I've also included the first part of the example from the menubar entry in the manual (lines 6 to 20). Is there an attribute or empty element that will enable the left and right arrow keys to cycle through the items? for example, pressing left arrow on file would move focus onto help, and pressing right arrow over help would move it back to file.
3. I'd like to be able to insert line breaks in the editbox, however, adding lines="multiple" and returns="yes" to the editbox element, and removing default="yes" from the speak button doesn't seem to do the trick. Any tips there would be very much appreciated.
By the way, I'm using the vbs code from the simpel simon example to test the xml code.
Regards Matt start xml 1 <?xml version="1.0"?> 2 <wescriptui> 3 <language id="en-gb"> 4 <dialog id="simon_says"> 5 Simple Simon Says 6 <menubar> 7 <menu id="menu_file" shortcut="f"> 8 File 9 <menuitem id="menu_file_open" shortcut="o">Open</menuitem> 10 <menuitem id="menu_file_exit" shortcut="x">Exit</menuitem> 11 </menu> 12 <menu id="menu_tools" shortcut="t"> 13 Tools 14 <menuitem id="menu_tools_options" shortcut="o">Options</menuitem> 15 </menu> 16 <menu id="menu_help" shortcut="h"> 17 Help 18 <menuitem id="menu_help_about" shortcut="a">About</menuitem> 19 </menu> 20 </menubar> 21 <group> 22 <static shortcut="i"> 23 Simon Says: 24 </static> 25 <editbox id="edit_string" width="200"> 26 </editbox> 27 <spacer /> 28 <checkbox 29 id="check_slow" 30 shortcut="e"> 31 Speak Slowly 32 </checkbox> 33 <spacer /> 34 <group width="group" justify="center"> 35 <button 36 id="button_speak" 37 width="+30" 38 widthclass="button" 39 shortcut="s" 40 default="yes"> 41 Speak 42 </button> 43 <button 44 id="button_close" 45 shortcut="c" 46 widthclass="button" 47 system="cancel"> 48 Close 49 </button> 50 </group> 51 </group> 52 </dialog> 53 </language> 54 </wescriptui> end xml
