Platforms to show: All Mac Windows Linux Cross-Platform

/MacCocoa/Fun with TabPanel


Required plugins for this example: MBS MacCocoa Plugin, MBS MacBase Plugin, MBS Main Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacCocoa/Fun with TabPanel

This example is the version from Sun, 23th Sep 2017.

Project "Fun with TabPanel.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
EventHandler Sub Open() if TargetCocoa then ' okay else MsgBox "This example can only work if you use the Cocoa target in Xojo." end if End EventHandler
End Class
Class Window1 Inherits Window
Control TabPanel1 Inherits TabPanel
ControlInstance TabPanel1 Inherits TabPanel
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText13 Inherits Label
ControlInstance StaticText13 Inherits Label
End Control
Control TabPanel2 Inherits TabPanel
ControlInstance TabPanel2 Inherits TabPanel
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control TabPanel3 Inherits TabPanel
ControlInstance TabPanel3 Inherits TabPanel
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control TabPanel4 Inherits TabPanel
ControlInstance TabPanel4 Inherits TabPanel
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control TabPanel5 Inherits TabPanel
ControlInstance TabPanel5 Inherits TabPanel
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control TabPanel6 Inherits TabPanel
ControlInstance TabPanel6 Inherits TabPanel
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
Control TabPanel7 Inherits TabPanel
ControlInstance TabPanel7 Inherits TabPanel
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control TabPanel8 Inherits TabPanel
ControlInstance TabPanel8 Inherits TabPanel
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
End Control
Control TabPanel9 Inherits TabPanel
ControlInstance TabPanel9 Inherits TabPanel
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
End Control
EventHandler Sub Open() TabPanel1.NSTabViewMBS.tabViewType = NSTabViewMBS.NSTopTabsBezelBorder TabPanel2.NSTabViewMBS.tabViewType = NSTabViewMBS.NSLeftTabsBezelBorder TabPanel3.NSTabViewMBS.tabViewType = NSTabViewMBS.NSBottomTabsBezelBorder TabPanel4.NSTabViewMBS.tabViewType = NSTabViewMBS.NSRightTabsBezelBorder TabPanel5.NSTabViewMBS.tabViewType = NSTabViewMBS.NSNoTabsBezelBorder TabPanel6.NSTabViewMBS.tabViewType = NSTabViewMBS.NSNoTabsLineBorder TabPanel7.NSTabViewMBS.controlSize = NSTabViewMBS.NSSmallControlSize TabPanel7.NSTabViewMBS.font = NSFontMBS.systemFontOfSize(10) TabPanel8.NSTabViewMBS.controlSize = NSTabViewMBS.NSMiniControlSize TabPanel8.NSTabViewMBS.font = NSFontMBS.systemFontOfSize(9) TabPanel9.NSTabViewMBS.controlTint = NSTabViewMBS.NSClearControlTint TabPanel1.NSTabViewMBS.alphaValue = 0.5 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
End Project

See also:

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


The biggest plugin in space...