Current Page: NeXtMidas Training Eclipse - Part 2 (GUIs) Using the GUI Builder Demo Step 3 - Add Widget
| Adding Widgets to GUI Form: Widgets from the Palette window can be put on the GUI form and place at the desired location. On the Palette window, under the NeXtMidas category left-click MidasDisplay. Click image for larger view. Now move your mouse anywhere over the form where you would like to place the widget and left-click to insert this widget on the form. Click image for larger view. The widget can be resized and moved via the mouse. Additionally it can have "sticky" properties to any of the GUI form's borders. To get NeXtMidas to hold a plot in this MidasDisplay widget, right-click on this widget on the form and select Rename and enter the ID of the NeXtMidas plot in your macro as the variable name. Click image for larger view. So in our case, we will name the variable "plot1" in the popup dialog because our macro defining the plot look like `plot/id=plot1 ...` Note: ensure that the "F" (for Field) is selected, and not "L" (for Local), otherwise your MidasDisplays will not bind to the macro. Click image for larger view. Repeat the above steps for another seven MidasDisplay widgets to make a total of eight MidasDisplay widgets. Rename the widget variables to match their appropriate plot or list. Place the widgets similar to the Macros Graphics Lab 2 layout for the plots and lists. Your result should look similar to the one below. Click image for larger view.