December 26, 200916 yr Hi, I've got another XML coding issue, that I need a hand with.. :( According to the documentation , this should work, in practice it does not... <Tooltip>Adjust AP Altitude</Tooltip> <Cursor Type="Hand"/> <Click Kind="LeftSingle+RightSingle"> (M:Event) 'LeftSingle' 100 (>K:AP_ALT_VAR_INC) (M:Event) 'RightSingle' 100 (>K:AP_ALT_VAR_DEC) </Click> Trying to adjust the Autopilot Altitude bug..The original code does work: <Tooltip>Decr AP Altitude</Tooltip> <Cursor Type="DownArrow"/> <Click Repeat="Yes"> 100 (>K:AP_ALT_VAR_DEC) </Click> Bert
December 26, 200916 yr Bert, Give this a try.. <Click Kind="LeftSingle+RightSingle">(M:Event) 'LeftSingle' scmp 0 == if{ 100 (>K:AP_ALT_VAR_INC) } els{ 100 (>K:AP_ALT_VAR_DEC) }</Click> Roman FS RTWR SHRS F-111 JoinFS Little Navmap
December 26, 200916 yr Author Bert, Give this a try..RomanHey, you are the man! That works with right and left clicks.Now, I would like to add mouse wheel support..This works: <Tooltip>Adjust AP Altitude</Tooltip> <Cursor Type="UpArrow"/> <Click Kind="WheelUp+WheelDown"> (M:Event) 'WheelUp' scmp 0 == if{ 100 (>K:AP_ALT_VAR_INC) } els{ 100 (>K:AP_ALT_VAR_DEC) } </Click> When I get greedy and want to combine mouse click and wheel support, things fall apart againIs this too much? <Click Kind="LeftSingle+WheelUp+WheelDown"> Bert
December 27, 200916 yr Bert, Usually if you have 2 click areas next to each other, one for increase & the other for decrease, FS will automatically provide the mousewheel function. I have never tried the mousewheel function along with multiple click styles.Roman FS RTWR SHRS F-111 JoinFS Little Navmap
December 27, 200916 yr Author Bert, Usually if you have 2 click areas next to each other, one for increase & the other for decrease, FS will automatically provide the mousewheel function. I have never tried the mousewheel function along with multiple click styles.RomanRoman,Never, in a lifetime would I have figured this out, but I've got this working!Thanks a Million!! <Area Left="4" Top="612" Width="80" Height="63"> <Area Right="40"> <Tooltip>Decr AP Altitude</Tooltip> <Cursor Type="DownArrow"/> <Click Repeat="Yes"> 100 (>K:AP_ALT_VAR_DEC) </Click> </Area> <Area Left="40"> <Tooltip>Incr AP Altitude</Tooltip> <Cursor Type="UpArrow"/> <Click Repeat="Yes"> 100 (>K:AP_ALT_VAR_INC) </Click> </Area> </Area> Bert
December 27, 200916 yr Moderator Just for future information... To implement WheelUp and WheelDown in a mouse callback, you simply repeat the same command as used with the 'LeftSingle' and 'RightSingle' (M:Event). The parameter list to pass when you want Left/Right/Wheel is: <Click Kind="LeftSingle+RightSingle+Wheel"> (M:Event) 'LeftSingle' scmp 0 == if{ (>K:DoSomething_DEC) } (M:Event) 'WheelUp' scmp 0 == if{ (>K:DoSomething_DEC) } (M:Event) 'RightSingle' scmp 0 == if{ (>K:DoSomething_INC) } (M:Event) 'WheelDown' scmp 0 == if{ (>K:DoSomething_INC) }</Click> Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
December 27, 200916 yr Author Just for future information... To implement WheelUp and WheelDown in a mouse callback, you simply repeat the same command as used with the 'LeftSingle' and 'RightSingle' (M:Event).Thanks Bill!I'll keep that code snippet for my project.I know I'll be needing it ! :( All the best for the Holidays to both who helped me here! Bert
Create an account or sign in to comment