User Definable Buttons
User Definable Buttons enable the user to associate a command line with a button. When the button is pressed then the specified button command line is executed. There are three system buttons that can NOT be modified in any way (ie. the Exit button, the Shell button and the Help button), and there are 27 additional user buttons that can be modified :-
The system menu contains the Buttons option, which when selected will bring up a sub-menu, as below :-
Displaying the Buttons
The option Show will display the buttons at the top of the WinOne® Command Prompt window.
Hiding the Buttons
The option Hide will remove the buttons from the top of the WinOne® Command Prompt window.
Hiding Button Text
The option Text will toggle the text displayed next to a button on or off. A small is displayed next to the Text option when the text is on. No is displayed next to the Text option when the text is off.
When the mouse pointer is positioned over a button for 2 seconds the button name will be displayed in a small yellow window as below :-
The sub-menu also contains the following additional options :-
- List - Displays a list of the commands associated with each button.
- Edit - Modify an existing button.
- Insert - Add a new button.
- Images - Add or remove a button image.
- Delete - Remove an existing button.
When the Insert (or Delete) option is selected the following window is displayed where either a button or a button separator may be chosen :-
When editing, inserting or deleting a button or a button separator, a message is displayed , informing the user that the buttons have been marked to perform the specified function. Also, the cursor will be changed to a hand cursor. Then the next time a button is pressed, using the mouse, the specified function will be carried out. Type ^C at the command prompt to cancel the operation. For example, after the buttons have been marked to insert, press the red Exit button to insert a new button before it (ie. on the left hand side of the red Exit button).
When editing or inserting a button, a window will appear, where the button name, command line and the image for the new button is specified. The images displayed includes all the default images, as well as any custom images that may have been added. The button command line can include anything that can be entered at the command prompt, this includes File Extension Associations and Macros.
Drop On Buttons
Drop On Buttons allows a file(s) or a directory to be dropped on to them (eg. from Explorer) and the respective button command will be executed, after the file(s) or directory has been added to the end of the button command. Use the Drop On button check box to set or reset drop on capabilities. The button name will be displayed in italics in the main WinOne® Command Prompt window to enable them to be distinguished from non-drop on buttons :-
There are 48 default internal button images that can be displayed inside a button, as follows :-
Adding a button image
Adding a button image allows custom images to be displayed inside a button. Images are created from icons that are stored inside files that have an extension of .EXE, .DLL or .ICO. To add a button image select the Image... option from the button menu. The following window is displayed and contains the Add tab :-
Press the Browse button to select a file to extract the images from. After a file has been selected then all the images inside the file will be displayed inside the list box. Simply select the image to add from this list box and press the OK button. The image will then be added to the end of all the default button images. The Colour drop down list allows the background colour of the buttons, contained in the list box, to be set. By default the buttons will have a yellow background colour.
Removing a button image
To remove a custom button image select the Image... option from the button menu. The following window is displayed and contains the Remove tab ;-
Simply select the image to remove from the list box and press the OK button.