Window Tabbing

 

Window tabbing for macOS.

miyako/4d-plugin-tab-ui


  • サンプルプログラムは,プロジェクトモードで開いてください。(17r5以降)

  • macOS 10.12以降(TOGGLE WINDOW TAB OVERVIEWのみ 10.13以降)

id:=Get window tab id (window)
Parameter
Type
Description
id
TEXT
window
LONGINT

Returns the window tabbing identifier. Windows with matching IDs can merge.

SET WINDOW TAB ID (window;id{;mode})
Parameter
Type
Description
window
LONGINT
id
TEXT
mode
LONGINT

Pass 1 in mode to force tabbing. Pass 0 to respect system preferences.

Passing an empty string will disable tabbing (merged windows stay merged).

Note: You can merge your custom window with design mode windows by assigning the ID 4D Forms and Methods.

TOGGLE WINDOW TAB OVERVIEW (window)
Parameter
Type
Description
window
LONGINT

Invokes toggleTabOverview:

macOS 10.13+

TOGGLE WINDOW TAB BAR (window)
Parameter
Type
Description
window
LONGINT

Note: By default, a tabbable window with single member has no tab bar. If the window contains multiple members, the tab bar can not be hidden.

MERGE ALL WINDOWS (window)
Parameter
Type
Description
window
LONGINT

Merges all other windows with the same ID to the specified window.

SELECT NEXT WINDOW TAB (window)
Parameter
Type
Description
window
LONGINT
SELECT PREVIOUS WINDOW TAB (window)
Parameter
Type
Description
window
LONGINT