Hi there,
I would like to introduce a built-in PDF viewer for MiniGUI (demo source code included).
Here is the explanation.
💡 Summary
This application is a basic PDF viewer built using MiniGUI Extended. It allows users to open and view PDF documents inside a resizable window.
---
🔍 Purpose
To create a small desktop application using MiniGUI that allows the user to:
* Open a window titled "Embedded PDF Viewer"
* Click a button labeled "Open PDF"
* Select a PDF file from their system
* Display the selected PDF embedded within the application's window
---
🧩 Key Components
1. Custom Command Definition
#command @ <row>,<col> PDFVIEWER <name> ...
* This defines a custom command PDFVIEWER for embedding PDF viewing functionality using DefinePDFViewer() function.
2. Main() Function
* Initializes the GUI window with:
* A button labeled "Open PDF"
* Event handlers for resizing the PDF viewer when the window is resized or maximized
* Activates the window to show it to the user
3. ViewPDF() Function
* Called when the "Open PDF" button is clicked
* Prompts the user to select a .pdf file
* Releases the existing PDF viewer if one exists
* Creates a new PDF viewer embedded in the form with the selected file
---

Your feedback is welcome.
Regards,
Grigory