- Messages
- 231
- Country

Hi guys!
I am working thru the xml gauge tutorials at http://www.fs2x.com/Tutorials.htm
My problem lies in Chapter 2. Interaction Sections/1.7 Left and Right Clicks of the first tutorial. I am writing
my code for use in FS2004.
My code:
Produces both mouse left and right mouse events at the same time when I click either left or right mouse
button. Did I misunderstand the point of the tutorial? I thought this code would produce the
ATTITUDE_BARS_POSITION_UP event on left mouse clicks and the ZOOM_IN event on right mouse clicks.
So did I read the tutorial wrong or did I just screw up my code? If I screwed up my code can someone review
it and tell me where I messed up?
Carl
I am working thru the xml gauge tutorials at http://www.fs2x.com/Tutorials.htm
My problem lies in Chapter 2. Interaction Sections/1.7 Left and Right Clicks of the first tutorial. I am writing
my code for use in FS2004.
My code:
Code:
<Gauge Name="f4u1 mouse" Version="1.0">
<Image Name="mouse1.bmp"/>
<Update Frequency="2"/>
<Mouse>
<Area Left="0" Top="0" Width="50" Height="20">
<Area Right="20">
<Tooltip>Altimeter (%((A:indicated altitude,feet))%!d! feet)</Tooltip>
<Cursor Type="Hand"/>
<Click Kind="LeftSingle+RightSingle" Repeat="Yes">
(M:Event) 'LeftSingle' (>K:ATTITUDE_BARS_POSITION_UP)
(M:Event) 'RightSingle' (>K:ZOOM_IN)
</Click>
</Area>
<Area Left="30" Top="0" Width="20" Height="20">
<Tooltip>Radio Height (%((A:Radio height, feet))%!3d!)</Tooltip>
<Cursor Type="Hand"/>
<Click Event="ATTITUDE_CAGE_BUTTON" Repeat="Yes"/>
</Area>
</Area>
</Mouse>
</Gauge>
Produces both mouse left and right mouse events at the same time when I click either left or right mouse
button. Did I misunderstand the point of the tutorial? I thought this code would produce the
ATTITUDE_BARS_POSITION_UP event on left mouse clicks and the ZOOM_IN event on right mouse clicks.
So did I read the tutorial wrong or did I just screw up my code? If I screwed up my code can someone review
it and tell me where I messed up?
Carl

