Page MenuHomeFeedback Tracker

There is no command to disable an entry of a CT_MENU_STRIP control
Closed, ResolvedPublic


We have:

We are missing:

  • menuDisable


Operating System
Windows 10 x64

Event Timeline

R3vo created this task.Jun 21 2021, 1:00 PM

@R3vo How to test, could you provide a repro?

BIS_fnc_KK changed the task status from New to Need More Info.Jun 23 2021, 8:48 AM

Revision: 147803

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jun 23 2021, 9:20 AM
BIS_fnc_KK changed the task status from Need More Info to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
R3vo added a comment.EditedJun 23 2021, 9:38 AM

The repro contains a custom menu strip class. The default control present in Arma 3 does not work since class Default and class Separator are not defined within class Items.

private _display = findDisplay 313 createDisplay "DisplaySimulated"; 

private _ctrlMenuStrip = _display ctrlCreate ["R3vo_MenuStrip", 1337];

private _index = _ctrlMenuStrip menuAdd [[], "Help"];

_ctrlMenuStrip menuAdd [[_index], "Documentation"];

_ctrlMenuStrip menuAdd [[_index], "Separator"]; //Would be neat if when passing a special string to menuAdd it would turn the entry into a separator

_ctrlMenuStrip menuAdd [[_index], "Exit"];

_ctrlMenuStrip menuEnable [0, 0]; //Documentation entry

*Also, for a Separator be properly displayed via config. The class Separator needs to be defined in config. See

R3vo closed this task as Resolved.Jul 8 2021, 4:32 PM
R3vo claimed this task.

Works splendidly now.