Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_Nav_DisplayMenuBar

CSV_Nav_DisplayMenuBar

Creates menu bar for specified page. The PageMenu.dbf (previously named Menu.dbf) is accessed to determine what buttons appear in the menu bar. A new menu bar (ActiveX object) is created with the specified buttons.

Syntax

CSV_Nav_DisplayMenuBar(sPageName,iX,iY,nBackColour,nForeColour)

#sPageName:

Name of page.

#iX:

X-coordinate of top left corner of menu bar.

#iY:

Y-coordinate of top left corner of menu bar.

#nBackColour:

Background color of menu bar (CitectSCADA palette number).

#nForeColour:

Foreground (font) color of menu bar (CitectSCADA palette number).

Return Value

0 if successful, otherwise -1.