|
WikiDoc |
WindowAttributesInterface.WindowAttributes HistoryHide minor edits - Show changes to markup February 05, 2009, at 01:26 PM
by - New 'No Toolbar Button' attribute
Added line 1:
Changed lines 40-41 from:
to:
Changed lines 45-47 from:
Examplesto:
ExamplesImportant Temporary Note
Changed lines 59-62 from:
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: to:
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: Changed line 65 from:
new -n FooWin -attr 30
to:
new -n FooWin -attr 30
January 19, 2007, at 07:44 AM
by - Removed temporary warning
Changed lines 45-47 from:
Important Temporary Note
to:
December 15, 2006, at 08:46 AM
by - One more example
Changed lines 71-72 from:
The same -attr option is also supported by the [openFile] command. For instance: to:
The sum of all the attributes is 8191 (since 1+2^1+...+2^12 = 2^13 - 1 = 8191). This creates a completely bare window: Changed line 74 from:
openFile -attr 6144 /Applications/AlphaX/Help/Readme
to:
new -n FooWin -attr 8191
Added lines 76-81:
The same -attr option is also supported by the [openFile] command. For instance:
openFile -attr 6144 /Applications/AlphaX/Help/Readme
December 15, 2006, at 08:36 AM
by - New example
Changed line 62 from:
new -n FooWin -attr 30
to:
new -n FooWin -attr 30
December 15, 2006, at 08:35 AM
by - New example
Changed lines 58-59 from:
Create a non resizable window: to:
The vertical scrollbar's top is moved up accordingly. Add 2 to the previous example and there will be no Dirty State button either: Changed line 62 from:
new -n FooWin -attr 6144
to:
new -n FooWin -attr 30
Added lines 64-68:
Create a non resizable window:
new -n FooWin -attr 6144
December 15, 2006, at 08:29 AM
by - __new has two underscores
Deleted line 0:
Changed lines 46-47 from:
to:
May 11, 2006, at 12:48 PM
by - New window attributes description
Added lines 1-70:
This 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. ExamplesImportant Temporary Note
Create 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). Create a non resizable window:
new -n FooWin -attr 6144
because 6144 = 2048 + 4096 = noZoom + noResize 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 February 05, 2009, at 01:26 PM
|
Hosted on
|