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.

left click and hold...

Featured Replies

Hi all, I want to be able to left click on .bmp A, and as long as the left mouse button is held down, .bmpB will replace it. However, I want .bmpB to disappear and .bmpA to reappear when the left mouse button is released. Just one click of the left button.An example are the buttons on the default GPS. Click on one, and as long as the left mouse button is depressed, the button will be "in". Release and it goes back "out".Thanks, don

Hey Don. If we're talking about a C gauge, it's pretty simple. Start out with a MAKE_ICON macro set up to display the UP bitmap. You'll have a BOOL such as bMouseDown that will tell that element's callback that the mouse button is down. If the button is down, draw the 2nd one.For your mouse callback, you can use MOUSE_LEFTSINGLE to alert you when the button goes down, and MOUSE_LEFTRELEASE when it's released. The mouse function would check to see if the MOUSE_LEFTRELEASE or MOUSE_LEFTSINGLE bits are set in mouse_flags, using a bitwise AND.If you need some sample code, let me know. :-)

Matt Kaprocki

Boeing777_Banner_DevTeam.jpg

For fastest support, please submit a ticket at http://support.precisionmanuals.com

Thanks for the response Matt! But, no I'm not a programmer per se. Just an XML hacker that understands enough to get himself into trouble. I'm not even sure what a "macro" is (sort of know). But I think that is what Microsoft used in the default GPS. Take care, donp.s. You know you've been simming too much when you press on the button on the yoke of a real C172 and wonder why the trim is not working!

Hi,Try:(M:Event) 'LeftSingle' scmp 0 == if{ (your event 1) } (M:Event) 'Leave' scmp 0 == if{ (your event 2) } Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Thanks Jan and Roman for the responses! I guess I need to learn about M:events. I follow what you are doing, but what is scmp?Cheers, don

FS9 Panels_SDK:scmp Compares strings.if two strings are equal the result is 0.Arne Bartels

Thanks Arne, I'll look at the SDK.Cheers, don

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.