Platforms to show: All Mac Windows Linux Cross-Platform

/MacBase/NSProgressIndicator with filter


Required plugins for this example: MBS MacBase Plugin, MBS Main Plugin, MBS MacCI Plugin, MBS MacControls Plugin, MBS MacCG Plugin, MBS MacCF Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacBase/NSProgressIndicator with filter

This example is the version from Sat, 24th Aug 2018.

Project "NSProgressIndicator with filter.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class MainWindow Inherits Window
Control ProgressWheelNormal Inherits ProgressWheel
ControlInstance ProgressWheelNormal Inherits ProgressWheel
End Control
Control ProgressWheelWhite Inherits ProgressWheel
ControlInstance ProgressWheelWhite Inherits ProgressWheel
EventHandler Sub Open() dim lighten as new CIFilterColorControlsMBS lighten.SetDefaults lighten.inputBrightness = 1 dim indicator as NSProgressIndicatorMBS = me.NSProgressIndicatorMBS dim filters() as Variant filters.Append lighten indicator.setContentFilters filters End EventHandler
End Control
Control ProgressWheelRed Inherits ProgressWheel
ControlInstance ProgressWheelRed Inherits ProgressWheel
EventHandler Sub Open() dim colorPoly as new CIFilterColorPolynomialMBS colorPoly.SetDefaults dim theColor as color = &cFF0000 dim redVector as CIVectorMBS = CIVectorMBS.vectorWithXYZ(theColor.Red / 255.0, 0, 0) dim greenVector as CIVectorMBS = CIVectorMBS.vectorWithXYZ(theColor.Green / 255.0, 0, 0) dim blueVector as CIVectorMBS = CIVectorMBS.vectorWithXYZ(theColor.Blue / 255.0, 0, 0) colorPoly.inputRedCoefficients = redVector colorPoly.inputGreenCoefficients = greenVector colorPoly.inputBlueCoefficients = blueVector dim indicator as NSProgressIndicatorMBS = me.NSProgressIndicatorMBS dim filters() as Variant filters.Append colorPoly indicator.setContentFilters filters End EventHandler
End Control
Control ProgressWheelGreen Inherits ProgressWheel
ControlInstance ProgressWheelGreen Inherits ProgressWheel
EventHandler Sub Open() dim colorPoly as new CIFilterColorPolynomialMBS colorPoly.SetDefaults dim theColor as color = &c00FF00 dim redVector as CIVectorMBS = CIVectorMBS.vectorWithXYZ(theColor.Red / 255.0, 0, 0) dim greenVector as CIVectorMBS = CIVectorMBS.vectorWithXYZ(theColor.Green / 255.0, 0, 0) dim blueVector as CIVectorMBS = CIVectorMBS.vectorWithXYZ(theColor.Blue / 255.0, 0, 0) colorPoly.inputRedCoefficients = redVector colorPoly.inputGreenCoefficients = greenVector colorPoly.inputBlueCoefficients = blueVector dim indicator as NSProgressIndicatorMBS = me.NSProgressIndicatorMBS dim filters() as Variant filters.Append colorPoly indicator.setContentFilters filters End EventHandler
End Control
Control ProgressWheelBlue Inherits ProgressWheel
ControlInstance ProgressWheelBlue Inherits ProgressWheel
EventHandler Sub Open() dim colorPoly as new CIFilterColorPolynomialMBS colorPoly.SetDefaults dim theColor as color = &c0000FF dim redVector as CIVectorMBS = CIVectorMBS.vectorWithXYZ(theColor.Red / 255.0, 0, 0) dim greenVector as CIVectorMBS = CIVectorMBS.vectorWithXYZ(theColor.Green / 255.0, 0, 0) dim blueVector as CIVectorMBS = CIVectorMBS.vectorWithXYZ(theColor.Blue / 255.0, 0, 0) colorPoly.inputRedCoefficients = redVector colorPoly.inputGreenCoefficients = greenVector colorPoly.inputBlueCoefficients = blueVector dim indicator as NSProgressIndicatorMBS = me.NSProgressIndicatorMBS dim filters() as Variant filters.Append colorPoly indicator.setContentFilters filters End EventHandler
End Control
End Class
MenuBar MainMenuBar
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem EditSeparator1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem EditSeparator2 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project

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


The biggest plugin in space...