Platforms to show: All Mac Windows Linux Cross-Platform

/Win/PDF Previewer


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

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

Project "PDF 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 PDFViewer Inherits WinPreviewControlMBS
ControlInstance PDFViewer Inherits WinPreviewControlMBS
EventHandler Sub Configure() End EventHandler
EventHandler Sub Open() End EventHandler
End Control
Control CheckVisible Inherits DesktopCheckBox
ControlInstance CheckVisible Inherits DesktopCheckBox
EventHandler Sub ValueChanged() PDFViewer.Visible = me.value End EventHandler
End Control
Control Button1 Inherits DesktopButton
ControlInstance Button1 Inherits DesktopButton
EventHandler Sub Pressed() dim o as new OpenFileDialog o.Filter = FileTypeGroup1.Pdf dim f as FolderItem = o.ShowModal if f <> nil then PDFViewer.LoadFile f end if End EventHandler
End Control
EventHandler Sub Opening() 'dim f as FolderItem = SpecialFolder.Desktop.Child("Installation.pdf") 'dim b as BinaryStream = BinaryStream.Open(f) 'dim s as string = b.Read(b.Length) ' 'WinPDFControlMBS1.LoadData s 'me.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 Pdf
End FileTypeGroup1
End Project

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


The biggest plugin in space...