Page MenuHomeFeedback Tracker

Unexpected outcome of CtrlMapCursor command
Closed, ResolvedPublic

Description

The use of the CtrlMapCursor command produces unexpected outcome. In the documentation (https://community.bistudio.com/wiki/ctrlMapCursor) it states this command should work with all map controls. However, upon testing Reporter has failed to successfully yield results with the expected outcome. The is no syntax or systematic error within the script engine. (A mission file has been attached to show setup) {F26794}

Details

Legacy ID
3775558195
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Create a new mission
  2. Create a description.ext
  3. Create a common.hpp file with the control definitions
  4. Create a display.hpp file to define the mission displays a. Create a new display with onLoad event handler defined b. Create a new map control with an idc = 1; c. Set onLoad event to equal: "(_this select 0) displayCtrl 1 ctrlMapCursor [""Arrow"",""Track""];";
  5. Include 4 & 5 within the description.ext
  6. Run the mission
  7. Create the display using 'createDialog'.
  8. Move your mouse over the control and reference the cursor icon when the mouse is over the control.
Additional Information

Please download and run the attached mission "TEST.Stratis.rar"

Event Timeline

Bohemia edited Steps To Reproduce. (Show Details)Aug 14 2015, 5:51 PM
Bohemia edited Additional Information. (Show Details)
Bohemia set Category to Scripting.
Bohemia set Reproducibility to Always.
Bohemia set Severity to None.
Bohemia set Resolution to No Bug.
Bohemia set Legacy ID to 3775558195.May 8 2016, 12:31 PM
R3vo added a subscriber: R3vo.May 8 2016, 12:31 PM
R3vo added a comment.Aug 16 2015, 11:33 AM

Command seems not to work at all, as stated above, syntax seems to be correct.

Command seems to only work with RscDisplayMainMap, all other controls do not seem to work, even though the inherit from the RscMapControl class.

Still seems to be broken.