Command and Message Windows


 

The primary relationship between the Eagle language and Graphic User Interface is represented by the command bar and the message bar. These windows facilitate the user with the ability to invoke Eagles command mode and to control feedback from Eagles engine.

Just above the status bar and attached to the status bar and the frame window is the command window.  Running along the entire length of the bottom of the window, the command window is where macros can be called, Eagle commands can be interactively entered or operating system functions executed.  Whilst the sophisticated operation of applications makes the command window redundant for many operations when running applications, the power of this feature cannot be underestimated in providing a quick and easy way to prototype and trial scenarios without having to resort to developing a specific complete applet for every one-off task.

The command window docked to the frame window and is resizable with this window but it cannot be undocked.  There is a command function which enables  switching on and off of the command window (display or hide the Command Line ) and obviously this should be used with caution.

Prototype :

 

 

 

command

on | off

 

Sample Code :

 

 

command on

command off

 

The standard Windows context menu is available for Cut & Paste, Select, Edit, etc. on the command line.

The command window has an additional feature called History Dialog.  When the mouse cursor is passed over the extreme right of the command window the History Button (a button with an icon) appears.  Clicking on this brings up a history of the commands issued from the command line.  The contents are available for copy and paste by double clicking which enters the selected history command into the command line, the panel is also removed at this point. Pressing ESC removes the command history panel by default.

The History Dialog is movable, re-sizable and follows the selected theme. The command list doesn't contain duplicated instructions.  In Eagle v.14 a developer can chose how the list is ordered and displayed; using the variable HISTORY_ASCENDING, in the configuration file, its possible to have the last command placed at the top of the list with the scroll bar remaining at the top (ascending) or the last command placed at the bottom of the list and the scroll bar stays on bottom (descending).

 

list presented descending

list presented ascending

 

HISTORY_ASCENDING = no

HISTORY_ASCENDING = yes

 

The customization of the command window and its derived objects (History Dialog and History Button) can be achieved  modifying this group of variables :

 

INI Sample :

 

 

COMMAND_TITLE = Command

 

 

 

INI Sample :

 

 

COMMAND_WINDOW_TITLE = no | yes

 

 

 

INI Sample :

 

 

HISTORY _ BUTTON _ICON  = C:\MyIcon\ story1.ico

 

 

INI Sample :

 

 

HISTORY_ASCENDING = no | yes

 

 

 

HISTORY_DUPLICATES = yes

HISTORY_DUPLICATES = no

 

 

INI Sample :

 

 

HISTORY_DUPLICATES = no | yes

 

 

 

INI Sample :

 

 

COMMAND_WINDOW_FONT_NAME= Courier

 

 

 

INI Sample :

 

 

COMMAND_WINDOW_FONT_SIZE= 10

 

 

 

INI Sample :

 

 

COMMAND_TEXT_COLOR=#000099

 

 

 

INI Sample :

 

 

COMMAND_BACKGROUND_COLOR=#FFFFFF

 

 

The Eagle message window displays system status messages and any reported errors in interactive or application mode transactions. At startup the message window is docked just above the command window. As the data in the window populates the window becomes a scrolling one, so history of messages can be viewed.  The number of the visible lines can set in the INI file or defined through the DIALOG command. 

The Eagle command called DIALOG displays or hides the message area and change the number of visible dialogue lines;

Prototype :

 

 

 

dialogue      

{ on | off | <n> }

 

where:

Parameter

Description

-

Toggle the state of the facility.

on

Turn on the message area and display it where last turned off.

off

Turn off message area.

<n>

Set the number of the visible message dialogue lines to n.

 

Sample Code :

 

 

dialogue

dialogue off 

dialogue 8

 

The message window also has a context menu for selection, redoing and storing of messages into a text file. It is envisaged that this menu will be customizable with user defined commands.  Finally, the error and warning messages displayed are done so in different colors. Again it is envisaged that a larger use of text styles will give the message window better communication characteristics.

 

Eagle v.14 offers four different types of message window and it is possible also to modify a lot of aspects of the window with entries in the INI file

 

 

 

  

 

 

 

 

 

 

If the parameter is not specified, the default value is nosize;

 

INI Sample :

 

 

MESSAGE_WINDOW_TYPE = top

 

Next table presents an outline of the differences between the four types of message window :

Type

Caption/Gripper

Title

Close Button

Resize

dialog command

Docking

No Size

image_preview

1195431694965757905not_ok_mark_h_kon_l_vdal_03_svg_hi

1195431694965757905not_ok_mark_h_kon_l_vdal_03_svg_hi

1195431694965757905not_ok_mark_h_kon_l_vdal_03_svg_hi

image_preview

image_preview

Fixed

1195431694965757905not_ok_mark_h_kon_l_vdal_03_svg_hi

1195431694965757905not_ok_mark_h_kon_l_vdal_03_svg_hi

1195431694965757905not_ok_mark_h_kon_l_vdal_03_svg_hi

image_preview

image_preview

1195431694965757905not_ok_mark_h_kon_l_vdal_03_svg_hi

Left

image_preview

image_preview

image_preview

image_preview

image_preview

image_preview

Top

image_preview

image_preview

image_preview

image_preview

image_preview

image_preview

 

 

INI Sample :

 

 

MESSAGE_LINES = 8

 

 

 

INI Sample :

 

 

MESSAGE_WINDOW_FIXED = no | yes

 

 

 

INI Sample :

 

 

MESSAGE_READONLY = no | yes

 

 

 

INI Sample :

 

 

MESSAGE_TITLE = MyMessageTitle

 

 

 

INI Sample :

 

 

MESSAGE_WINDOW_TITLE = no | yes

 

 

 

INI Sample :

 

 

MESSAGE_BACKGROUND_COLOR=#009900

 

 

 

INI Sample :

 

 

MESSAGE_TEXT_COLOR=#990000

 

 

INI Sample :

 

 

MESSAGE_WINDOW_FONT_NAME= Courier

 

 

INI Sample :

 

 

MESSAGE_WINDOW_FONT_SIZE= 10

 

 

INI Sample :

 

 

MESSAGE_CONTEXT_MENU= my_menu.mem