The Menubar Object

Synopsis

Class Name: Menubar
Valid Parents: Dialog, Panel
Valid Children: Menu

Description

A container object for menus.

  • Only one instance of a menubar is allowed for each parent object.
  • The menubar is always positioned at the top of the parent window and extends to the full width of the window.

Inherited Resources

New Resources

  • None

Example Code

create Dialog gsharp_1.mydialog
 ( XuNguiDialogType = "template",
   XuNguiWidth = 300,
   XuNguiHeight = 200
 );
create Menubar gsharp_1.mydialog.menubar;
create Menu gsharp_1.mydialog.menubar.File;
create Button gsharp_1.mydialog.menubar.File.Close;
create Menu gsharp_1.mydialog.menubar.Edit;
create Menu gsharp_1.mydialog.menubar.View;
create Bulletin gsharp_1.mydialog.Bull;
create Button gsharp_1.mydialog.OK;
GuiPopupDialog("gsharp_1.mydialog");

Return to Gsharp Applications Reference Manual