Jump to content
The simFlight Network Forums

make gauge blink?


Recommended Posts

Hi All,

Is there any way to make the gauges flash/blink using FSUIPC? For example, if you do the beginner's flight, the instructor will flash the altimeter on and off to show where it is to a novice. Is there an way to hide/show a gauge while the program is running somehow? (I notice that there is an option to not draw the gauges if a gauge failure occurs.)

If not, is there a way to get the current size and position of an undocked panel (or gauges) while running? (These may differ than the setup values in panel.cfg if the user resizes or moves them).

Any help will be much appreciated!!

-Sunfish

Link to comment
Share on other sites

Is there any way to make the gauges flash/blink using FSUIPC? For example, if you do the beginner's flight, the instructor will flash the altimeter on and off to show where it is to a novice.

Really? I don't know how it is doing that. If each of the gauges were separate Windows, then I suppose you could simply find their handles and flip the visibility bit.

Is there an way to hide/show a gauge while the program is running somehow? (I notice that there is an option to not draw the gauges if a gauge failure occurs.)

With some functions you can set it Failed or Operational. Whether this merely stops them working or also covers them up, I don't know. Check the FSUIPC offsets 0B64 - 0B73 and 3BD6.

If not, is there a way to get the current size and position of an undocked panel (or gauges) while running? (These may differ than the setup values in panel.cfg if the user resizes or moves them).

Undocked panels and gauges will be individual Windows, so you should be able to get their Window handles (hwnd) using normal Windows API functions. They'll all probably be class "FS98CHILD" or something like that, so you'll need to check the titles to get the right ones. Try using the Spyxx program in the Windows compiler packages to check the Windows directly first, so you can figure out what to do.

Regards,

Pete

Link to comment
Share on other sites

oops! i meant docked windows. i can currently only get the info if the windows are undocked (from windows).

what if they are docked?

thanks!!

You should still be able to get the ones that are windows. They will be child windows of FS98MAIN, so you need to look for that and go down a level. I don't know if al individual gauges are FS windows though.

Pete

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.