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.

Transparent GDI gauges

Featured Replies

I don't know if this has been poszted before, but you might know that C gauges can't use transparent GDI drawing (IMAGE_CREATE_DIBSECTION leads always to non-transparency, however the "old" way of GDI drawing, i.e. bitwise copy to the image buffer, might work with transparency). So e.g. HUDs with GDI are impossible with C gauges. XML gauges however can use the "CustomDraw" elements, and their black (RGB(0,0,0)) parts are transpararent, therefore XML gauges can use transparent GDI drawings for HUDs and similar. "All" you need to do, is to program a "C to XML" module DLL described in this topic:http://forums.avsim.net/dcboard.php?az=sho...id=21558&page=3Arne Bartels

I have tried to achieve transparency in connection with GDI+ for ages with no success. Thanks for the hint. :-hahBye :-beerchugEtienne :-wave

Well, the C++ part is easy but how to do the XML part? I'm a total newbie when it comes to XML gauges. Could anybody give me a hint how a basic XML HUD gauge which uses Arne's code would look like? My problem are not so much the CustomDraw tags but more the structure of the gauge.Oh and yes, I need this one to build the HUD for a guy from the UK who wants to use it in a home cockpit (college project), so it's not a payware project.Thanks a lot.

A very basic display of my mentioned GDI drawings from module DLL would be:(A:AIRSPEED TRUE,knots)(A:ATC ID,string)Fixed vars can be in the Tag e.g.:(A:AIRSPEED TRUE,knots)Arne Bartels

Works perfect. Thanks a lot.Seems that it's about time that I take a closer look at XML gauges ;-)

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.