Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGSConnectionMBS class.

CGSConnectionMBS.CGSWindow(w as window) as CGSWindowMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a CGSWindow reference to a normal RB window.

Can be used for the CGSTransitionRequestMBS.Win property.

Some examples using this method:

CGSConnectionMBS.CGSWindowbyHandle(windowhandle as Integer) as CGSWindowMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a CGSWindow reference to any window where you can have a handle.

WindowHandle must be of C type WindowRef. Not a CGS Window Handle.
Can be used for the handle from an OverlayWindowMBS.

CGSConnectionMBS.FlushAllWindows

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Flushes all windows.

Walks over the window list (of the current process) and does a flush on each window.
Lasterror is set.

CGSConnectionMBS.FlushAllWindowsForAllOtherProceses

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Flushes all windows.

Walks over the list of processes asking each for its window list and doing a flush on each window. The own process is ignored.
Lasterror is set.

CGSConnectionMBS.FlushAllWindowsForAllProceses

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Flushes all windows.

Walks over the list of processes asking each for its window list and doing a flush on each window.
Lasterror is set.

CGSConnectionMBS.GetOnScreenWindowList as CGSWindowListMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the list of windows on screen for the current process.

Returns nil on any error.

Some examples using this method:

CGSConnectionMBS.GetOnScreenWindowListForProcess(PID as Integer) as CGSWindowListMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the list of windows on screen for the process with the given Process ID.

Returns nil on any error.

Some examples using this method:

CGSConnectionMBS.GetWindowList as CGSWindowListMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the list of windows for the current process.

Returns nil on any error.

Some examples using this method:

CGSConnectionMBS.GetWindowListForProcess(PID as Integer) as CGSWindowListMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the list of windows for the process with the given Process ID.

Returns nil on any error.

Some examples using this method:

CGSConnectionMBS.NewTransition(request as CGSTransitionRequestMBS) as CGSTransitionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates a new transition.

Lasterror is set.
Request must be a valid object reference.
Transitions seem not to work in Carbon PEF builds. MachO works.

Some examples using this method:

CGSConnectionMBS.RunTransition(request as CGSTransitionRequestMBS, duration as single)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
A method to run a transition for the given request and given time.
Example
dim r as CGSTransitionRequestMBS
dim co as CGSConnectionMBS // global property
dim cw as CGSWindowMBS

co=new CGSConnectionMBS

cw=co.CGSWindow(window1)

r=new CGSTransitionRequestMBS
r.TransitionType=r.CGSFlip
r.TransitionOption=r.CGSLeft
r.HasBackGround=false
r.HasBackColor=false
r.Win=cw
co.RunTransition(r,2)

Lasterror is set.
Transitions seem not to work in Carbon PEF builds. MachO works.

CGSConnectionMBS.SetWorkspaceWithTransition(workspace as CGSWorkspaceMBS, transition as Integer, type as Integer, time as single)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Performs a transition with a workspace specified by the workspace object.

The values for the parameters are not documented on the web except that the transition and type property may use the same transition constants as for the other transitions.
Lasterror is set.

See also:

CGSConnectionMBS.SetWorkspaceWithTransition(workspace as Integer, transition as Integer, type as Integer, time as single)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Performs a transition with a workspace specified by the workspace number.
Example
dim c as new CGSConnectionMBS
dim t as new CGSTransitionRequestMBS

// from space 1 to 2
c.SetWorkspaceWithTransition(2,t.CGSFade, t.CGSInOut, 5)

// but transition and time are ignored on testing Mac.

MsgBox str(c.Lasterror)

The values for the parameters are not documented on the web except that the transition and type property may use the same transition constants as for the other transitions.
Lasterror is set.

See also:

CGSConnectionMBS.Workspace as CGSWorkspaceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The workspace this connection is pointing to.

(Read and Write computed property)

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...