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.

XML Gauge sizing

Featured Replies

In trying to make a small gauge to display a couple of FS values I have got a bit lost in the various values for sizing. I'll try to explain..In the XML gauge I have included a 240 x 150 bitmap. Onto this I want to place two text strings using something like the following code: %A/C WT. %((A:TOTAL WEIGHT, KG) )%!d! kgIn the above I am assuming the Position statement will start the text at 25 pixels right and down from the top left corner of the bitmap. Is that correct?Next are the values for the Text line - and I would appreciate a rough guide for X, Y and Length values. How do you know how long your text will be :) Playing with these values so far has caused great confusion as the displayed text is varying in size (I think with varying the Y value) and is far bigger than I would like.Does it cause further problems when you define the gauge in the panel.cfg file? I as that because you now introduce further options to alter sizing (window_pos and window_size) as well as further permutations for sizing the gauge in the gauge line:gauge00=weight!AC-weight, 0, 0, x, yIt is the variety of options for sizing that is confusing me - I'm not happy with coding at the best fo times..Could someone please enlighten me?boneshttp://fsaviation.nethttp://www.precisionmanuals.com/images/forum/ng_driver.jpg

Bones,You are right in assuming the

Also. you can add to the Text specification:"FontSize="16" Adjust="Center" VerticalAdjust="Center"Which gives you control over the fontsize, and the position of the text in the textbox.I.o.w: you could use a small letter in a large box if you want.Beware though there is a potential problem with rescaling a gauge.Things like the Text box and bitmaps are rescaled properly (= lineairly). But the character fontsize is NOT. (this is only in discrete steps).Example: when you slowly increase the scale (in the panel.cfg)At first the box becomes large, but not the textsize.And if you increase it a bit more: Now suddenly the text becomes a lot larger, and might not even fit the textbox.Rob

Hi,Also you could use: Fixed="Yes" to fit a text between x="60".And with Formattedtext you can use Linespacing=" " and Tabs=" , , " using n and t etc.A whole lot of possibility's.Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Jan, Rob and Paul..Thank you all gentlemen for your kind and lucid replies.One more step along the road to understanding.I've been designing scenery and aircraft since FS4 days and have forgotten all the tools I have had to learn and subsequently discard. Each time the is another quantum jump I always say "never again" but it never lasts. Like a moth to a candle we get drawn in again. I must be mad..boneshttp://fsaviation.nethttp://www.precisionmanuals.com/images/forum/ng_driver.jpg

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.