Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

Required plugins for this example: MBS MacCG Plugin, MBS Picture Plugin, MBS Util Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacCG/WindowDockTile
This example is the version from Sun, 10th Dec 2016.
Project "WindowDockTile.rbp"
Class Window1 Inherits Window
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() dim p as Picture dim i as IconMBS dim f as IconFamilyMBS dim c as CGImageMBS dim m as Picture // Better do with events from CarbonWindowsEventsMBS class if self.CollapsedMBS then 'if draw then // don't draw multiple i=new IconMBS("FNDR","MACS") f=i.IconFamily p = new Picture(128,128,32) p.Graphics.DrawPicture f.Thumbnail32BitData,0,0 m = new Picture(128,128,32) m.Graphics.DrawPicture f.Thumbnail8BitMask,0,0 c=CGCreateImageMBS(p,m) Title=str(self.DrawIntoDockTileMBS(c,true)) // with the new true we don't need the draw flag any more 'draw=false 'end if 'else 'draw=true end if End EventHandler
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Property Protected draw As boolean
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

Feedback, Comments & Corrections

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

MBS Xojo Plugins