- menuSetURL does not apply an URL to a menu strip entry
- Sometimes menuSetURL prevents entry from being created (Reproducibility: Sometimes)
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Scripting
Steps To Reproduce
- Create a new scenario in Eden Editor
- Execute
disableSerialization; private _ctrlMenuStrip = findDisplay 313 displayCtrl 120; //Create Folder private _indexMain = _ctrlMenuStrip menuAdd [[],"URL Test"]; //Create a sub entry in folder private _indexURL = _ctrlMenuStrip menuAdd [[_indexMain],"URL"];
The entry is created just fine
- Now execute
disableSerialization; private _ctrlMenuStrip = findDisplay 313 displayCtrl 120; //Create Folder private _indexMain = _ctrlMenuStrip menuAdd [[],"URL Test"]; //Create a sub entry in folder private _indexURL = _ctrlMenuStrip menuAdd [[_indexMain],"URL"]; //Set the weblink property _ctrlMenuStrip menuSetURL [[_indexMain,_indexURL],"https://arma3.com/"];
No entry is created (Reproducibility: Sometimes) and if it's created, no URL is set
Additional Information
Arma 3 Version: 2.01.146950
Seems to be the same issue with menuSetText:
works fine
disableSerialization; private _ctrlMenuStrip = findDisplay 313 displayCtrl 120; //Create Folder private _indexMain = _ctrlMenuStrip menuAdd [[],"URL Test"]; //Create a sub entry in folder private _indexURL = _ctrlMenuStrip menuAdd [[_indexMain],"URL"];
No entry is created
disableSerialization; private _ctrlMenuStrip = findDisplay 313 displayCtrl 120; //Create Folder private _indexMain = _ctrlMenuStrip menuAdd [[],"URL Test"]; //Create a sub entry in folder private _indexURL = _ctrlMenuStrip menuAdd [[_indexMain],"URL"]; //Set the weblink property _ctrlMenuStrip menuSetText [[_indexMain,_indexURL],"https://arma3.com/"];
Event Timeline
Comment Actions
The repro is "dirty". The code contains foreign chars that stop script from compiling, hence no item appearing in the menu. Otherwise the URL is added fine it is just not executed because the item is not marked as weblink. So I'm going to fix that
Comment Actions
disableSerialization; private _ctrlMenuStrip = findDisplay 313 displayCtrl 120; private _indexMain = _ctrlMenuStrip menuAdd [[],"URL Test"]; private _indexURL = _ctrlMenuStrip menuAdd [[_indexMain],"URL"]; _ctrlMenuStrip menuSetText [[_indexMain,_indexURL],"https://arma3.com/"]; _ctrlMenuStrip menuSetURL [[_indexMain,_indexURL],"https://arma3.com/"];
Works.
Comment Actions
The following link doesn't work https://github.com/R3voA3/3den-Enhanced/wiki/Custom-GUIs#vehicle-inventory-manager-vim. Tested with example above.