Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/MacCF/SystemConfiguration/Infos
Function:
Required plugins for this example: MBS MacCF Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacCF/SystemConfiguration/Infos
This example is the version from Sun, 17th Mar 2012.
Project "Infos.rbp"
FileTypes
Filetype text
End FileTypes
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
End Control
Control StaticText10 Inherits Label
ControlInstance StaticText10 Inherits Label
End Control
Control StaticText11 Inherits Label
ControlInstance StaticText11 Inherits Label
End Control
Control StaticText12 Inherits Label
ControlInstance StaticText12 Inherits Label
End Control
Control StaticText13 Inherits Label
ControlInstance StaticText13 Inherits Label
End Control
Control StaticText14 Inherits Label
ControlInstance StaticText14 Inherits Label
End Control
EventHandler Sub Open() dim s as SystemConfigurationMBS s=new SystemConfigurationMBS StaticText8.text=S.ComputerName StaticText9.text=hex(s.ComputerNameEncoding) StaticText10.text=s.LocalHostName StaticText11.text=s.Location StaticText12.text=s.ConsoleUser StaticText13.text=str(s.ConsoleUserUID) StaticText14.text=str(s.ConsoleUserGID) End EventHandler
End Class
MenuBar MenuBar1
MenuItem UntitledMenu1 = ""
MenuItem FileMenu = "&File"
MenuItem FileQuit = "Quit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu0 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
Function Flags(flags as integer) As string const kSCNetworkFlagsTransientConnection =1 const kSCNetworkFlagsReachable = 2 const kSCNetworkFlagsConnectionRequired = 4 const kSCNetworkFlagsConnectionAutomatic = 8 const kSCNetworkFlagsInterventionRequired = 16 const kSCNetworkFlagsIsLocalAddress = 65536 const kSCNetworkFlagsIsDirect = 131072 dim s as string if BitwiseAnd(flags, kSCNetworkFlagsTransientConnection)<>0 then if s<>"" then s=s+", "+chr(13) end if s=S+"TransientConnection" end if if BitwiseAnd(flags, kSCNetworkFlagsReachable)<>0 then if s<>"" then s=s+", "+chr(13) end if s=S+"Reachable" end if if BitwiseAnd(flags, kSCNetworkFlagsConnectionRequired)<>0 then if s<>"" then s=s+", "+chr(13) end if s=S+"ConnectionRequired" end if if BitwiseAnd(flags, kSCNetworkFlagsConnectionAutomatic)<>0 then if s<>"" then s=s+", "+chr(13) end if s=S+"ConnectionAutomatic" end if if BitwiseAnd(flags, kSCNetworkFlagsInterventionRequired)<>0 then if s<>"" then s=s+", "+chr(13) end if s=S+"InterventionRequired" end if if BitwiseAnd(flags, kSCNetworkFlagsIsLocalAddress)<>0 then if s<>"" then s=s+", "+chr(13) end if s=S+"IsLocalAddress" end if if BitwiseAnd(flags, kSCNetworkFlagsIsDirect)<>0 then if s<>"" then s=s+", "+chr(13) end if s=S+"IsDirect" end if if s<>"" then s=s+", "+chr(13) end if s=s+str(flags) Return s End Function
End Class
End Project

Feedback, Comments & Corrections

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





Links
MBS Xojo PDF Plugins