September 19, 201015 yr Hi,I am looking for the trick on how I can program in XML the mouse click area on a moving position. For example on radar screen I want to click on the AI/Target symbol in order to get additional info displayd. The trouble is, the target moves, and the click spot must move too.Any ideas ???Thanks in advance.Dietmar
September 19, 201015 yr Hi,Do you use Arne Bartels Trafficradar?If not this is his mouse code:<Area Left="0" Top="0" Width="150" Height="150">Tooltip>%((C:fs9traffic:toolTipId,string) d )%{if}%ID: %!s! ALT: %((C:fs9traffic:toolTipAlt,number) 100 / )%!d!00ft GS: %((C:fs9traffic:toolTipGroundSpeed,number))%!d!kt TRK: %((C:fs9traffic:toolTipTrackAngle,number))%!d!° DST: %((C:fs9traffic:toolTipDist,number))%!.1f!nm%{end}</Tooltip><!--C:fs9traffic:mouseRelPosX and C:fs9traffic:mouseRelPosY represent relative coordinates 0,0 is top left, 1,1 is bottom right therefore scale M:X with width and M:Y with height--><Cursor Type="Hand" /> <Click Kind="Move">(M:X) 150 / (>C:fs9traffic:mouseRelPosX, number) (M:Y) 150 / (>C:fs9traffic:mouseRelPosY, number)</Click></Area>Jab Jan "Beatus ille qui procul negotiis..."
September 20, 201015 yr Author Hi,Thanks for your reply.Yes I know Arne's gauge for FS9. I am on FSX SP2 and my code works with the FSX ITrafficInfo module. I am fine with all other Info parameter like distance LAT/LON etc.and the string parameter like ATC Airline, ATC Type etc. etc.. The TRafficInfo module does not provide me aparameter like (C:ITrafficInfo:toolTipId,string). I do not see mouse functions at all along with ItrafficInfo. Anyway, it is not so important for my development. I just can do it with a click button which selects the AI ID in order to show what I want. The click directly on the symbol looked just very elegant to me.Dietmar
Create an account or sign in to comment