Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

Application.OverlayApplicationDockTileImageMBS(pic as CGImageMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.6 Yes No No No No
Function: Adds a picture on top of the application dock title.
Example:
static n as Integer // global property
dim p as picture
dim m as picture
dim g as graphics
dim s as string
dim w,h,x as Integer

n=n+1 // add one
s=str(n)
m=newpicture(128,128,32)
p=newpicture(128,128,32)

g=p.graphics
g.textsize=24
w=g.stringwidth(s)
h=g.stringheight(s,0)
x=125-w-10
g.foreColor=rgb(255,0,0)
g.fillRoundRect x,10,10+w,10+h,20,20
g.foreColor=rgb(0,0,0)
g.drawstring s,x+5,15+g.textascent

g=m.graphics
g.foreColor=rgb(0,0,0)
g.fillRoundRect x,10,10+w,10+h,20,20

if app.OverlayApplicationDockTileImageMBS(CGCreateImageMBS(p,m)) then
end if
Notes:
Changed in MBS Plugin 2.7 to use CGImages directly.
Added support for 64-bit in plugin version 16.0.

Some examples which use this method:

Feedback, Comments & Corrections

Application.RestoreApplicationDockTileImageMBS as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.6 Yes No No No No
Function: Restores the application dock tile image.
Example:
if app.RestoreApplicationDockTileImageMBS then
// ok
end if
Notes: Added support for 64-bit in plugin version 16.0.

Some examples which use this method:

Feedback, Comments & Corrections

Application.SetApplicationDockTileImageMBS(pic as CGImageMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.6 Yes No No No No
Function: Sets the application dock tile image.
Example:
dim p as CGImageMBS = CGImageMBS.CreateImage(LogoMBS(500))

if app.SetApplicationDockTileImageMBS(p) then
// ok
end if
Notes:
Changed in MBS Plugin 2.7 to use CGImages directly.
Added support for 64-bit in plugin version 16.0.

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS FileMaker Plugins