Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

GetAvailableWindowPositioningBoundsMBS as IntegerRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Common Types MBS Util Plugin 2.9 Yes No No Yes, macOS only No
Function: Returns the available window positioning bounds on the main screen (i.e., the screen rect minus the MenuBar and Dock if located on that screen).
Example:
Dim rec as IntegerRectMBS

rec=GetAvailableWindowPositioningBoundsMBS
if rec<>Nil then
msgBox str(rec.Left)
else
msgBox "NIL"
end if
Notes: Return nil on any error.

Some examples using this method:

Feedback, Comments & Corrections

MacZoomRectMBS(fromRect as IntegerRectMBS, toRect as IntegerRectMBS, steps as Integer, ZoomAcceleration as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Common Types MBS Util Plugin 2.9 Yes No No No No
Function: Animates a rectangle into a second rectangle.
Example:
dim fromrect as IntegerRectMBS
dim torect as IntegerRectMBS

if MacZoomRectMBS(fromrect, torect, 25, 0)<>0 then
'Windows?
end if
Notes:
The ZoomRects function animates a movement between two rectangles on the screen. It does this by drawing gray dithered rectangles incrementally toward the destination rectangle.

Steps is a number from 4 to 25.

Values for the acceleration
kZoomNoAcceleration0Use linear interpolation for each frame of animation between the source and destination.
kZoomAccelerate1Increment the step size for each frame of animation between the source and destination. This option produces the visual appearance of the animation speeding up as it approaches the destination.
kZoomDecelerate2Decrement the step size for each frame of animation between the source and destination. This option produces the visual appearance of the animation slowing down as it approaches the destination.

Requires Mac OS 8.1 or newer.
Returns an error code. -1 if not supported, 0 if successfull or a Mac OS error code.

Some examples using this method:

Feedback, Comments & Corrections

MakeDoublePointMBS(x as Double, y as Double) as DoublePointMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Common Types MBS Util Plugin 2.8 Yes Yes Yes Yes No
Function: Creates a new double point.
Notes: Returns nil on low memory.

Feedback, Comments & Corrections

MakeDoubleRectMBS(left as Double, top as Double, width as Double, height as Double) as DoubleRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Common Types MBS Util Plugin 2.8 Yes Yes Yes Yes No
Function: Creates a new double rectangle.
Notes: Returns nil on low memory.

Feedback, Comments & Corrections

MakeIntegerPointMBS(x as Integer, y as Integer) as IntegerPointMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Common Types MBS Util Plugin 2.8 Yes Yes Yes Yes No
Function: Creates a new integer point.
Notes: Returns nil on low memory.

Feedback, Comments & Corrections

MakeIntegerRectMBS(left as Integer, top as Integer, width as Integer, height as Integer) as IntegerRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Common Types MBS Util Plugin 2.8 Yes Yes Yes Yes No
Function: Creates a new integer rectangle.
Notes: Returns nil on low memory.

Some examples using this method:

Feedback, Comments & Corrections

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




Links
MBS Xojo Chart Plugins