Platforms to show: All Mac Windows Linux Cross-Platform

/MacOSX/Group list MacOSX


Required plugins for this example: MBS MacCF Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacOSX/Group list MacOSX

This example is the version from Tue, 29th Jul 2019.

Project "Group list MacOSX.xojo_binary_project"
Class MainWindow Inherits Window
Control List Inherits ListBox
ControlInstance List Inherits ListBox
End Control
EventHandler Sub Open() Dim l As New DarwinGroupListMBS Dim c As Integer = l.Count-1 For n As Integer = 0 To c Dim i As DarwinGroupMBS = l.Group(n) if i<>nil and i.Ready then List.AddRow i.Name Dim a As Integer = List.LastIndex List.cell(a,1)=str(i.GroupID) List.cell(a,2)=i.Password Dim s As String = "" Dim cc As Integer = i.UserCount-1 For ii As Integer = 0 To cc s=s+i.UserName(ii) if ii<cc then s=s+", " end if next List.cell(a,3)=s end if next Exception MsgBox "We have a problem."+chr(13)+"This demo works only on Mac OS X!" End EventHandler
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu7 = ""
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
MenuItem UntitledMenu6 = ""
MenuItem UntitledMenu5 = ""
MenuItem UntitledMenu4 = ""
End MenuBar
Class App Inherits Application
EventHandler Sub Open() if TargetMachO then // ok else MsgBox "This needs a Mach-O target running on Mac OS X." end if End EventHandler
End Class
End Project

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


The biggest plugin in space...