titleBar()

Shows or hides the title bar in the specified module or in a child panel.

Note that the function only works within the own UI manager. If you open a module in a new user interface manager and call the function for this module from another user interface manager it does not work. You have to call the function within the same user interface manager under that the module was opened.

Note that the function does not work if you use the save and run (quick test) option of the GEDI. The module has to be opened in a user interface

Synopsis

int titleBar(bool bFlag [, string moduleName, string panelName]);

Parameters

Parameter Description
bFlag Switch this property on or off.
module The module that should be shown without title bar. If the value of bFlag is 1, the title bar of the module is shown. If the value of bFlag is 0, the title bar of the module is not shown.
panelName Name of the panel that should be shown without title bar. If the value of bFlag is 1, the title bar of the child panel is shown. If the value of bFlag is 0, the title bar of the child panel is not shown.

Return value

0 on success, otherwise -1.

Errors

Missing or wrong arguments.

Description

Shows or hides the title bar in the specified module "module" or in a child panel "panelName".

Example

The title bar of the opened module (myModuleName()) will be hidden.

main()
{
  titleBar(0,myModuleName());
}

Example

Opens a new module and a panel within the module. The title bar of the module newModule will be hidden using the titleBar() function.

main()
{
  ModuleOnWithPanel("newModule",0,0,0,0,0,0,"","DPPanel.pnl","test", 
  makeDynString()); /* Opens a module called "newModule" and
  the
  panel called DPPanel.pnl within the module */
  int retVal;
  bool bFlag = FALSE;
  string module = "newModule";
  retVal= titleBar(bFlag, module); //hides the title bar
  DebugN(retVal);
}

EXAMPLE

In the following example a child panel is opened using a root panel. The title bar of the child panel is not shown.

The child panel "child.pnl" is opened using a root panel:

main()
{
  ChildPanelOnCentral("child.pnl","ABCD",makeDynString(""));
}

The title bar of the child panel "child.pnl" (ABCD) is not shown.

main()
{
  bool val = 0;
  /* the title bar of the child panel is not shown */
  titleBar(val,myModuleName(),"ABCD");
}

Assignment

Administration of managers...

Availability

UI