2.9.5 winarrange


Menu Information

Windows: Arrange Windows

Brief Information

Arrange windows in a certain sequence.

Additional Information

Minimum Origin Version Required:2022b SR0

Command Line Usage

winarrange col:=3 direction:=vertical overlap:=1 offset:=20;

winarrange col:=2 order:=ascend type:=1 overlap:=1;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Columns col

Input

int

0

Specify the number of columns when you sorting the windows.

Sorting Order order

Input

int

1
Specify sorting windows order by which method.

Option list:

  • 0=activate: By Window Activated Order
  • 1=pe: By Project Explorer Order
  • 2=ascend: By Window Name Ascending
  • 3=descend: By Window Name Descending
Window Name name

Input

int

0
When you select By Window Name Ascending (order:=ascend) or By Window Name Descending (order:=descend) as sorting order, you can specify use the Short Name or Long Name as the order.
First by Window Type type

Input

int

0
When you select By Window Name Ascending (order:=ascend) or By Window Name Descending (order:=descend) as sorting order,, you can set Window Type as the highest priority sorting level.
Direction direction

Input

int

0
Sorting the windows in horizontal or vertical direction firstly.

Option list:

  • 0=horizontal:Horizontal First
  • 1=vertical:Vertical First
Overlap Each Column overlap

Input

int

0
Specify whether the window shows overlap.

Option list:

  • 0=false
  • 1=true
Offset (Title Bar Height=10) offset

Input

double

10
When specify overlap:=1, you can customize the offset of each window.

Note: this is the vertical offset. The horizontal offset is fixed value.