Getting Around the Cosmo Code Window

Access

Features

      

Online Help

You can get help on using Cosmo Code via:

Status Line

The left side of the status line displays the name of the open project, an option menu that allows you to switch between source files, and a button that allows you to view the source file path.

The right side of the status line shows information about the current status of the program, or of a thread in the program that is running. You can make a thread the current thread by clicking the thread button in the Thread bar.

Thread Status

Status information about the thread is displayed in the status line as in the following example:

Thread 10, Thread-7:running
Thread 3, Screen Updater: cond. waiting

The following states are possible for a thread: zombie, running, sleeping, waiting in a monitor, cond. waiting, suspended, and at breakpoint.

Exception Status

Status information about exceptions is displayed in the status line. If an exception is thrown while executing your code, the status line displays details of the exception as well as the class name and the location of the exception.

Customizing the Main Window

To control the use of popup help labels, popup help text, placement of the Cosmo Code window, and window configuration, choose File > Preferences... and set preferences in the Preferences dialog.

To control the orientation and width of tabs in the Card panel and cloned cards, add the following resources to your .Xdefaults file in your home directory preceding each resource with cosmocode*controller*:

Resource Possible Value
deckTabOrientation top, bottom, left
uniformTabs True, False

True causes all tabs to be displayed with the width of the widest tab.
clonedDeckTabOrientation top, bottom, left
uniformClonedTabs True, False

True causes all tabs to be displayed with the width of the widest tab.

Note: non-uniform tabs for left orientation are not supported.

For example, to have the tabs display at the bottom and in uniform width, you could edit the .Xdefaults file as follows:

!
! The following resources control the orientation and widths of the
! card tabs displayed in the main window.
!
cosmocode*controller*deckTabOrientation: bottom
cosmocode*controller*uniformTabs: True

!
! The following resources control the orientation and widths of the
! card tabs displayed in cloned card window.
!
cosmocode*controller*clonedDeckTabOrientation: bottom
cosmocode*controller*uniformClonedTabs: True

Guide to the Cosmo Code Development Environment
12-96*269