Platforms to show: All Mac Windows Linux Cross-Platform

/Util/Frontmost


Required plugins for this example: MBS Util Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Util/Frontmost

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

Project "Frontmost.xojo_binary_project"
Class Window1 Inherits Window
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() update End EventHandler
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
EventHandler Sub Paint(g As Graphics) if app.FrontmostMBS then g.foreColor=Rgb(200,255,200) else g.foreColor=Rgb(255,200,200) end if g.fillrect 0,0,width,height End EventHandler
Sub update() dim b as boolean b=app.FrontmostMBS if b<>last or not second then last=b second=true refresh end if End Sub
Property last As boolean
Property second 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

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


The biggest plugin in space...