- Messages
- 371
- Country

Hi,
I would like to get a mouse area which execute different code according the click type.
This is for the Autopilots knobs. The original code has only left click event. If I replace the click by the right clik, code works.
But if I want detect multiple click type, code doesn't work.
Is it impossible to detect different mouse clicktype in one area ?
I would like to get a mouse area which execute different code according the click type.
This is for the Autopilots knobs. The original code has only left click event. If I replace the click by the right clik, code works.
But if I want detect multiple click type, code doesn't work.
Code:
<MouseArea id="HDG Knob Push-Pull">
<FloatPosition>82.000,43.000</FloatPosition>
<Size>9,33</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<Script>
(M:Event) 'RightSingle' scmi 0 == (L:Knob_HDG,bool) 0 == and (A:Autopilot heading lock, bool) 0 == and if{ 1 (>K:AP_PANEL_HEADING_ON) -1 (>L:HDG_Knob_PP,number) }
(M:Event) 'RightSingle' scmi 0 == (L:Knob_HDG,bool) 1 == and if{ 0 (>L:Knob_HDG,bool) 1 (>K:AP_PANEL_HEADING_ON) -1 (>L:HDG_Knob_PP,number) }
(M:Event) 'LeftSingle' scmi 0 == (L:Knob_HDG,bool) 1 == and if{ 1 (>L:Knob_HDG,bool) 1 (>L:HDG_Knob_PP,number) }
(M:Event) 'LeftSingle' scmi 0 == (L:Knob_HDG,bool) 0 == and if{ 1 (>L:Knob_HDG,bool) 1 (>K:AP_PANEL_HEADING_OFF) 1 (>L:HDG_Knob_PP,number) }
(M:Event) 'RightRelease' scmi 0 == if{ 0 (>L:HDG_Knob_PP,number) }
(M:Event) 'LeftRelease' scmi 0 == if{ 0 (>L:HDG_Knob_PP,number) }
</Script>
</MouseClick>
<Tooltip id="Tooltip HDG Push-Pull">
<DefaultScript>HDG Hold - Leftt click Pushed=Managed Right Click Pulled=Selected</DefaultScript>
</Tooltip>
</MouseArea>
Is it impossible to detect different mouse clicktype in one area ?
