The Command Object

Synopsis

Class Name: Command
Valid Parents: Panel
Valid Children: Popup

Description

The Gsharp Command object includes a command input line together with a command history area and a message area.

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 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