Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/MacControls/TextView with FindPanel
Function:
Required plugins for this example: MBS MacBase Plugin, MBS MacCocoa Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacControls/TextView with FindPanel
This example is the version from Sun, 22th Jun 2013.
Project "TextView with FindPanel.rbp"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control TextArea1 Inherits TextArea
ControlInstance TextArea1 Inherits TextArea
End Control
Control BevelButton1 Inherits BevelButton
ControlInstance BevelButton1 Inherits BevelButton
EventHandler Sub Action() const NSFindPanelActionShowFindPanel = 1 const NSFindPanelActionNext = 2 const NSFindPanelActionPrevious = 3 const NSFindPanelActionReplaceAll = 4 const NSFindPanelActionReplace = 5 const NSFindPanelActionReplaceAndFind = 6 const NSFindPanelActionSetFindString = 7 const NSFindPanelActionReplaceAllInSelection = 8 const NSFindPanelActionSelectAll = 9 const NSFindPanelActionSelectAllInSelection = 10 dim n as NSTextViewMBS = TextArea1.NSTextViewMBS n.usesFindPanel = true n.performFindPanelAction(NSFindPanelActionShowFindPanel) End EventHandler
End Control
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
End Project

See also:

Feedback, Comments & Corrections

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




Links
MBS FileMaker Plugins