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.

Another one .. this one is more C/C++ stuff

Featured Replies

now i have some troubles, "separanting" my code into more files ... i have the "main" file and the "graphics" file ... here's some codemain file:case PANEL_SERVICE_PRE_DRAW: { PELEMENT_STATIC_IMAGE pelement = (PELEMENT_STATIC_IMAGE)(pgauge->elements_list[0]); if( pelement ) { HDC hdc = pelement->hdc; PIXPOINT dim = pelement->image_data.final->dim; if( hdc ) { //risanje DrawSelectedButton( hdc, NewEcamPage, 1 ); } SET_OFF_SCREEN (pelement); } break; }..and the drawing code :)void DrawSelectedButton( HDC hdc, int button, int color ) { int L1_drawX, L1_drawY, L1_drawX2, L1_drawY2; int L2_drawX, L2_drawY, L2_drawX2, L2_drawY2; int L3_drawX, L3_drawY, L3_drawX2, L3_drawY2; int lineLength = 20; int lineVSpacing = 1; Graphics graphics(hdc); . . . //DRAWING graphics.DrawLine( &belo, L1_drawX, L1_drawY, L1_drawX2, L1_drawY2 ); graphics.DrawLine( &belo, L2_drawX, L2_drawY, L2_drawX2, L2_drawY2 ); graphics.DrawLine( &belo, L3_drawX, L3_drawY, L3_drawX2, L3_drawY2 ); }and here is the link too all the code!http://tistidrugi.com/~tilentur/slike/A320...ageSelector.rarTnx in advance!

Perhaps you could tell us what your troubles are? With the code I mean..

lol .. sorry forgot to write that :D .. well, nothing draws on the gauge .

huh! Finaly i found the solution ... you must define PEN only after you created Graphics! here's exampleThe right way!....Graphics graphics(hdc);Pen sivo(Color(81, 81, 81, 76));Pen belo(Color(255, 255, 255, 255)); ...The Wrong way...Pen sivo(Color(81, 81, 81, 76));Pen belo(Color(255, 255, 255, 255));Graphics graphics(hdc);...hope this helps someone in future! :D

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.