Tuto WINDEV 25
212 Part 4: Full application with data Displaying the printed report from a menu option In our application, the "RPT_Order_form" report will be printed from an option found in the popup menu of the Table control used to list the requested orders. As already seen, the Table control proposes an automatic menu. We want to keep the options of this automatic menu and add an option that will be used to print the selected order form. The principle is as follows: 1. We are going to create a new popup menu. This menu will contain the WLanguage code used to print the report. 2. We are going to link this popup menu to the Table control and specify that the default popup menu will be displayed just after the popup menu defined for the Table control. Creating the popup menu ▶ To create a popup menu in the "WIN_Menu" window: 1. Open the "WIN_Menu" window in the editor if necessary (double-click its name in the "Project explorer" pane for example). 2. On the "Window" pane, in the "Bars and menus" group, expand "Popup menus" and select "New popup menu". 3. A new popup menu appears in the editor. This menu option includes a single option named "Menu option". 4. Display the description of popup menu: • Select "Menu option". • Display the popup menu (right mouse click). • Select "Description of popup menu". 5. Give a name to the popup menu ("MENU_Order") and validate. Remark Popup menus and windows A popup menu is associated with a window. If a window includes several popup menus (popup menu of window, popup menus of controls, ...), all these menus are saved with the window.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==