2.1.18 Floating Windows

From Origin 2023b, Origin Windows can be moved outside of the Origin workspace as an independent windows. These Floating Windows have customizable Menus and Toolbar buttons, so you don’t have to move back to the main Origin window to access them.

Any Origin Window, including Workbooks, Matrix books, Graphs, Layouts, and Image Windows can be moved outside of the Origin workspace as Floating Windows.

Save and close the project file with floating windows. These windows will keep floating when the project is reopen.


Contents

How to Float a Window

By dragging outside

The Floating Windows feature can be toggled on and off with the option Windows: Float Windows. If it is turned on, Origin Window can be dragged outside of the Origin Workspace.

Floating Windows 01.gif
Note: The system variable @FWD controls the drag directions allowed for window floating:
  • @FWD=0: All drag directions enabled
  • @FWD=1: Horizontal direction only (default)
  • @FWD=2: Vertical direction only


By Menu

When there are multiple monitors on your machine, the active window can be Floated by selecting Window: Float Active Window or using the hotkey Ctrl + F9.

For example:
Run @FWLM=2; in the Script Window, and click the Window: Float Active Window, then the active window will float to the second monitor.


Retract Floating Windows

  1. A single window can be dragged and dropped back into the Origin workspace.
  2. To move all Floating Windows back into the Origin Workspace, use the hotkey Ctrl + Shift + F9 or Window: Retract Floating Windows.
    Floating Windows 04.gif
  3. Run the following Labtalk Script to move all Floating Windows back into the Origin Workspace
    document -fma;

If switching to other folders, the above point 2 and 3 methods are used to retract all floating windows to their own folders.

If you want to retract all floating windows to the current folder (whatever it is their own folders or not), you can run this Labtalk Script.

document -fmac;

Labtalk Script Control Floating

Use labtalk Script to control the active window to float or retract.

page.floating=0; //Retract the active floating Windows

page.floating=1; //The active window will float. If there are multiple monitors, the window will float to the 1st monitor.

page.floating=2; //The active window will float to second monitor.

page.floating=@FWLM; //The active window will float to the monitor that is specified by system variable @FWLM


Toolbars Buttons and Menus

The Floating Windows have their own menus and toolbar buttons. If some menus and buttons do not show in the Floating Window, you can go back to the main Origin Window to select these tools.

Floating Windows Graph Window.png
Floating Windows Workbook Window.png
Floating Windows Matrix Window.png
Floating Windows Layout Window.png
Floating Windows Image Window.png


Customize Menus

The menus shown can be customized by Floating Window Menus dialog, which can open by selecting Preferences: Customize Floating Window Menus.

Floating Window Menus.png


For example:

Floating Windows Customize Menus.gif

Customize Toolbars Buttons

Floating Windows Toolbars.png


For example:

Floating Windows Customize Toolbars.gif
Floating Windows Customize Toolbars 01.png

Object Manger

Show/Hide Object Manager

The Object Manger for each floating window can be toggled on and off with the Object Manager button.png button.

Floating Windows Object Manager.gif


Object Manager in main frame and in floating window


Location of the Object Manager

page.fwom=0; //Hide the Object Manager

page.fwom=1/2/3/4/5;  //Corresponds to setting the Object Manager to the Top/Left/Right/Bottom/Float position

page.fwom=10; //If you Object Manager is hidden, you can use this to activate its last set position


@FWOM=0;  // Hide the Object Manager

@FWOM=1/2/3/4; // Object Manager on top/left/right/bottom  ( 3 is default value)

@FWOM=5;  //Object Manager is floating


For example:

  1. Object Manger in main frame is not docked. By default @FWOM=3, when you create new window Book1 and drag it outside of the Origin Workspace, then click the Object Manager button.png button to show Object Manager, the Object Manager is on the right side.
  2. Run @FWOM=2; in the Script Window, the location of the Object Manager in existing window Book1 is not be changed. But when you create a other new window Book2 after the system variable changed, then set it to float and show Object Manager, at this time the Object Manager is on the left side.


Note:
  • @FWOM only can effect the new created child window. If the child window is dragged to float and change position of Object Manger, the child window will remember this new changed and is not effected by @FWOM again.
  • When the Object Manger in main frame is not docked, even the system variable set to @FWOM=1/2/3/4, the Object Manager in the new floating window still keep to hide. When the Object Manger in main frame is docked, the Object Manager in the floating window will follow @FWOM setting.
  • When the Object Manger in main frame is shown (docked or floating), the system variable set to @FWOM=0, the Object Manager in the floating window is hidden.
  • When the Object Manger in main frame is floating, the system variable set to @FWOM=5, the the Object Manager in the floating window is floating too.


Floating Window Auto Pinned


When switching folders:

Floating Windows Switch Folders.gif

Floating Window in Project Explorer

In the bottom panel of Project Explorer, Origin uses different color on window name to indicate floating windows.

Floating Windows in PE.png

The system variable @FWCA and @FWCI can be used to specified the name color for the active and inactive floating windows.

@FWCA=color(0,255,0,1); //Set name color for active floating window to green.

If you want to roll back to the default color, you can open select Preferences: Set System Variables to open the dialog and delete the @FWCA or @FWCI item.

Bringing up dialogs in Floating Windows

The current logic for the initial dialog location is that it will appear at the center of the monitor where your cursor is located. If you decide to move the dialog to a new position, its location will only be remembered in that particular Origin session. Once you restart Origin, it will use the cursor position again.

For example, you have two graph windows, one in the main Origin workspace on the main monitor and the other is a floating graph on a secondary monitor. If your cursor is in main workspace and you open the Plot Details dialog by double-clicking the graph window, it will appear on the center of main monitor. If you double-click the floating graph window to open the Plot Details dialog, your cursor will be on the secondary monitor and thus the dialog will appear at the center of that monitor.

If you decide to reposition the dialogs, you should know that the dialog positions are unique for each monitor. In the example above, try repositioning the Plot Details in the main monitor and secondary monitor. You will see that the locations are remembered separately. And again, restarting Origin will reset the locations and will revert back to the cursor logic.