Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/MacControls/Autohide Scrollbar for TextArea
Function:
Required plugins for this example: MBS MacBase Plugin, MBS MacCocoa Plugin, MBS MacControls Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacControls/Autohide Scrollbar for TextArea
This example is the version from Fri, 21th Aug 2014.
Project "Autohide Scrollbar for TextArea.rbp"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control TextArea1 Inherits TextArea
ControlInstance TextArea1 Inherits TextArea
EventHandler Sub Open() for i as integer = 1 to 100 me.AppendText str(i)+EndOfLine next dim n as NSScrollViewMBS = me.NSScrollViewMBS n.scrollerStyle = NSScrollerMBS.NSScrollerStyleOverlay n.verticalScroller.controlSize = NSScrollerMBS.NSSmallControlSize n.verticalScroller.knobStyle = NSScrollerMBS.NSScrollerKnobStyleDark n.scrollerKnobStyle = NSScrollerMBS.NSScrollerKnobStyleDark n.verticalScroller.scrollerStyle = NSScrollerMBS.NSScrollerStyleOverlay End EventHandler
End Control
End Class
MenuBar MainMenuBar
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem EditSeparator1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem EditSeparator2 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins