Example: /ComputerControl/Gamma/Gamma Fade

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

/ComputerControl/Gamma/Gamma Fade


Required plugins for this example: MBS ComputerControl Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /ComputerControl/Gamma/Gamma Fade

This example is the version from Sun, 17th Mar 2012.

Project "Gamma Fade.xojo_binary_project"
Class Window1 Inherits Window
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() dim f as double dim g as new gammaFadeMBS(Self) if checkBox1.value then f=5.0 else f=1.0 end if g.FadeColor=&c000000 if not g.GammaFadeOut(0.3*f) then msgBox "Fade Out failed." end if if not g.GammaFadeIn(0.5*f) then msgBox "Fade In failed." end if g=nil End EventHandler
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action() dim g as new gammaFadeMBS(Self) dim f as double if checkBox1.value then f=5.0 else f=1.0 end if g.FadeColor=&c0000FF if not g.GammaFadeOut(0.3*f) then msgBox "Fade Out failed." end if if not g.GammaFadeIn(0.5*f) then msgBox "Fade In failed." end if g=nil End EventHandler
End Control
Control CheckBox1 Inherits CheckBox
ControlInstance CheckBox1 Inherits CheckBox
End Control
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

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


💬 Ask a question or report a problem