Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

/MacCF/Group list MacOSX
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/Group list MacOSX
This example is the version from Sun, 17th Mar 2012.
Project "Group list MacOSX.rbp"
Class MainWindow Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
EventHandler Sub Open() dim i as DarwinGroupMBS dim l as DarwinGroupListMBS dim n as integer dim c as integer dim a as integer dim s as String dim ii,cc as integer l=new DarwinGroupListMBS c=l.Count for n=0 to c i=l.Group(n) if i<>nil and i.Ready then List.AddRow i.Name a=List.LastIndex List.cell(a,1)=str(i.GroupID) List.cell(a,2)=i.Password s="" cc=i.UserCount-1 for ii=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 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
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

Feedback, Comments & Corrections

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

MBS Xojo Plugins