Page MenuHomeFeedback Tracker

ctrlSetEventHandler does not function correctly on map control
New, WishlistPublic

Description

According to BIKI - https://community.bistudio.com/wiki/ctrlSetEventHandler

"Sets given event handler of given control. The provided function should return true/false indicating that the event has handled this event fully or not and whether the engine should execute it's default code or not afterwards"

True/false seems to make no difference on map control.

You cannot override the MouseButtonDblClick on a map control by returning true or false with a function.

You can override the MouseMoving event on a map control... but you can't use false to not override.

Details

Legacy ID
3219594073
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Put the following in the debug console

((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ["MouseMoving", "hint str _this; false"]

Open the map
Move the Mouse

Expectation is that as you move the mouse the height text and grid text get updated.
Result: no text is shown but hint is shown

Enter this in the debug console
((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ["MouseButtonDblClick", "hint str _this; true"]

Open the map
Double click mouse

Expected that the insert marker dialog does not appear.
Result: Insert marker dialog appears AND hint is shown.

Event Timeline

Tupolov edited Steps To Reproduce. (Show Details)Aug 18 2014, 2:09 AM
Tupolov edited Additional Information. (Show Details)
Tupolov set Category to Scripting.
Tupolov set Reproducibility to Always.
Tupolov set Severity to None.
Tupolov set Resolution to Open.
Tupolov set Legacy ID to 3219594073.May 7 2016, 7:14 PM
Bohemia added a subscriber: AD2001.Aug 18 2014, 2:09 AM