Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Once again, I'm stumped..

Featured Replies

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

  • Author
Bert, Give this a try..Roman
Hey, 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

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

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

  • 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.Roman
Roman,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

  • 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
  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.