Consultor Eletrônico



Kbase P35100: Error# 4052 when attempting to hide a menu bar using Progres
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/08/2003
Status: Unverified

SYMPTOM(s):

Attempting to hide a Window's menu bar through Progress 4GL.

Using the menu bar's HIDDEN and VISIBLE attributes.

**HIDDEN is not a settable attribute for MENU . (4052)

**VISIBLE is not a settable attribute for MENU . (4052)

**HIDDEN is not a settable attribute for MENU-ITEM . (4052)

**VISIBLE is not a settable attribute for MENU-ITEM . (4052)

Using the HIDE 4GL command.

Statement does not support MENUs. (3501)

CAUSE:

A Window's Menu Bar cannot be hidden using the Progress 4GL HIDE Statement nor through its HIDDEN and VISIBLE attributes because they are not settable.

FIX:

Set the Window's MENU-BAR attribute to null or unknown (?). e.g.:

ASSIGN CURRENT-WINDOW:MENU-BAR = ?.

To view the menubar again, assign the menu's handle to the Window's MENU-BAR attribute. e.g.:

ASSIGN CURRENT-WINDOW:MENU-BAR = MENU MENU-BAR-C-Win:HANDLE.