|
WikiDoc |
WindowAttributesThis page documents the new window attributes introduced in version 8.1a4 of AlphaX. These attributes let you select which controls should be drawn when creating a new window with the [new] or the [openFile] commands. By passing appropriate values via the -attr option in these commands, one can now specify that a particular control be absent from the window. Traditionally, document windows in AlphaX come equipped with a certain number of controls. In the top right corner of the contents area, one can find :
Other elements are also considered as window controls:
For each of these controls, there is a flag stating that this control should not be drawn. These flags are additive so that the new -attr option's value is the sum of all the flags corresponding to the elements you want to remove. A value of 0 corresponds to the traditional window layout. The flag values are shown in the table below:
Note that in the case of the close button, the collapse button and the zoom button, specifying the corresponding flag means in fact that they will be drawn in disabled state. ExamplesCreate a window without a toolbar
new -n FooWin -attr 1
Create a window without the VCS, Parse and Marks popup controls
new -n FooWin -attr 28
The value 28 is the sum of 16 (noMarksPopup), 8 (noParsePopup) and 4 (noVcsPopup). The vertical scrollbar's top is moved up accordingly. Add 2 to the previous example and there will be no Dirty State button either:
new -n FooWin -attr 30
Create a non resizable window:
new -n FooWin -attr 6144
because 6144 = 2048 + 4096 = noZoom + noResize The sum of all the attributes is 8191 (since 1+2^1+...+2^12 = 2^13 - 1 = 8191). This creates a completely bare window: new -n FooWin -attr 8191 The same -attr option is also supported by the [openFile] command. For instance:
openFile -attr 6144 /Applications/AlphaX/Help/Readme
|
|
Edit -
History -
Print -
Recent Changes -
Search
Page last modified on January 19, 2007, at 07:44 AM
|
Hosted on
|