Platforms to show: All Mac Windows Linux Cross-Platform
/MacControls/NSPathControl control
Required plugins for this example: MBS MacBase Plugin, MBS Main Plugin, MBS MacCocoa Plugin
Last modified Wed, 2nd Jan 2024.
You find this example project in your MBS Xojo Plugin download as a Xojo project file within the examples folder: /MacControls/NSPathControl control
Download this example: NSPathControl control.zip
Project "NSPathControl control.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control Info1 Inherits Label
ControlInstance Info1 Inherits Label
End Control
Control Listbox1 Inherits Listbox
ControlInstance Listbox1 Inherits Listbox
End Control
Control NSPathControlControlMBS1 Inherits NSPathControlControlMBS
ControlInstance NSPathControlControlMBS1 Inherits NSPathControlControlMBS
EventHandler Sub Action()
Listbox1.AddRow CurrentMethodName
End EventHandler
EventHandler Sub DoubleClick()
Listbox1.AddRow CurrentMethodName
End EventHandler
EventHandler Sub Open()
Listbox1.AddRow CurrentMethodName
Dim p As NSPathControlMBS = Me.View
p.file = SpecialFolder.Desktop
End EventHandler
End Control
EventHandler Sub Open()
End EventHandler
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
Sign
End Sign
End Project
See also:
Download this example: NSPathControl control.zip
The items on this page are in the following plugins: MBS MacControls Plugin.