The Popup Object

Synopsis

Class Name: Popup
Valid Parents: Bulletin, Button, Canvas, Command, Combobox, Dialog, Icon, Label, Menu, Panel, Separator, Switch, Text
Valid Children: Button, Label, Menu, Separator, Switch

Description

A popup menu container that can be activated by clicking MB3 over the parent object.

  • The Popup object is positioned with the upper left corner under the pointer.
  • Clicking MB1 or MB3 pops down the object.

Inherited Resources

New Resources

  • None

Example Code - simple.gsa

  create Menubar gsharp_1.MenuBar;
  create Menu gsharp_1.MenuBar.FileMenu
   ( XuNguiLabel = "File"
   );
  create Button gsharp_1.MenuBar.FileMenu.Exit
   ( XuNguiCallback = "GuiFileExit",
     XuNguiLabel = "Exit ..."
   );
  create Canvas gsharp_1.scrolledcanvas;
  create Popup gsharp_1.scrolledcanvas.Popup;
  create Button gsharp_1.scrolledcanvas.Popup.Repaint
   ( XuNguiCallback = "GuiViewRepaint"
   );

  create Command gsharp_1.command;
  create Popup gsharp_1.command.Popup;
  create Button gsharp_1.command.Popup.MessageClear
   ( XuNguiLabel = "Clear Messages",
     XuNguiCallback = "GuiMessageClear"
   );

Return to Gsharp Applications Reference Manual