Platforms to show: All Mac Windows Linux Cross-Platform

/Win/RTF Previewer


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

This example is the version from Sun, 15th Jul 2023.

Project "RTF Previewer.xojo_binary_project"
Class App Inherits DesktopApplication
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
EventHandler Sub Opening() End EventHandler
End Class
Class Window1 Inherits DesktopWindow
Control RTFViewer Inherits WinPreviewControlMBS
ControlInstance RTFViewer Inherits WinPreviewControlMBS
End Control
Control Button1 Inherits DesktopButton
ControlInstance Button1 Inherits DesktopButton
EventHandler Sub Pressed() dim o as new OpenFileDialog o.Filter = FileTypeGroup1.RTF dim f as FolderItem = o.ShowModal if f <> nil then RTFViewer.LoadFile f RTFViewer.Visible = true end if End EventHandler
End Control
EventHandler Sub Opening() 'dim f as FolderItem = SpecialFolder.Desktop.Child("test.RTF") 'rtfViewer.LoadFile f 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"
MenuItem HelpMenu = "&Help"
End MenuBar
FileTypeGroup1
Filetype Rtf
End FileTypeGroup1
End Project

See also:

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


The biggest plugin in space...