• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Click Spot Problem

Messages
1,468
Country
italy
Normally this is not a problem except it seems when the switch is a sideways switch (not up and down). I have a three way sideways switch (left,centre,right) but the click spots don't seem to work properly. It's difficult to get the centre position. Is there a better way to do it?
vololiberista
Code:
 <Mouse>
      <Area Left="0" Top="0" Right="5" Bottom="19">
         <Cursor Type="Hand"/>
         <Click>1 (&gt;L:TRU_TEST,number)</Click>
      </Area>
      <Area Left="6" Top="0" Right="25" Bottom="19">
         <Cursor Type="Hand"/>
         <Click>0 (&gt;L:TRU_TEST,number)</Click>
      </Area>
     <Area Left="26" Top="0" Right="31" Bottom="19">
         <Cursor Type="Hand"/>
         <Click>2 (&gt;L:TRU_TEST,number)</Click>
      </Area>
   </Mouse>
 
Have you considered making only one click spot - not three. Then, right click increments the switch to the right one position per click, left click increments it to the left one position per click. Code logic sets the limits of movement to left 1, center, or right 1.
 
Tried that and I can't get it to work properly. The original code works better. Vertically there is never a problem it's only when the need for a sideways switch arises.
vololiberista
 
See if redefining the Areas makes any difference, it shouldn't but this is XML

<Area Left="0" Width="5" Top="0" Height="19">

<Area Left="6" Width="19" Top="0" Height="19">

<Area Left="26" Width="5" Top="0" Height="19">
Ted
 
Thanks Ted,
Unfortunately it doesn't seem to make any difference.
I may have to resort to vertical switches which I know work even though
it is not technically correct.
vololiberista
 
Both <Mouse> definitions work properly on my test gauge.

Since I can't fathom out how to send a *.zip file on this system, send me an e-mail address and I can let you have the test gauge.

tedcook@btinternet.com
 
Back
Top