Platforms to show: All Mac Windows Linux Cross-Platform

/Win/TextArea AutoScroll Flags


Required plugins for this example: MBS Win Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/TextArea AutoScroll Flags

This example is the version from Sat, 3rd Jan 2020.

Project "TextArea AutoScroll Flags.xojo_binary_project"
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
End Control
Control CheckAutoHorizontalScroll Inherits CheckBox
ControlInstance CheckAutoHorizontalScroll Inherits CheckBox
EventHandler Sub Action() TextArea1.WinAutoHorizontalScrollMBS = Me.Value End EventHandler
End Control
Control CheckAutoVerticalScroll Inherits CheckBox
ControlInstance CheckAutoVerticalScroll Inherits CheckBox
EventHandler Sub Action() TextArea1.WinAutoVerticalScrollMBS = Me.Value End EventHandler
End Control
Control CheckButton Inherits PushButton
ControlInstance CheckButton Inherits PushButton
EventHandler Sub Action() MsgBox "WinAutoVerticalScroll: " + If(TextArea1.WinAutoVerticalScrollMBS, "yes", "no")+_ EndOfLine+_ "WinAutoHorizontalScroll: " + If(TextArea1.WinAutoHorizontalScrollMBS, "yes", "no") End EventHandler
End Control
EventHandler Sub Open() CheckAutoHorizontalScroll.Value = TextArea1.WinAutoHorizontalScrollMBS CheckAutoVerticalScroll.Value = TextArea1.WinAutoVerticalScrollMBS End EventHandler
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

See also:

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


The biggest plugin in space...