Sign in to follow this  
Guest bartels

MAKE_STRING parameters

Recommended Posts

Hi,I have a problem with MAKE_STRING. In all examples DRAW_TEXT_FLAGS parameter is set to:DT_CENTER | DT_VCENTER | DT_SINGLELINEAlso FONT_SIZE is set to 0, and size is managed idirectly by the SIZE_X and NUM_CAHRS parameters.I tried to set FONT_SIZE and also change DRAW_TEXT_FLAGS, but any modifications led to the text dissapear totally.Can I use these parameters? May I align the text to left? May I use multiple line texts (with n or r in the string)?Gabor Hrasko

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

It is possible to use other DRAW_TEXT_FLAGS, preferrably together with a fixed FONT_SIZE.E.g. one of my gaugesuses:"DT_WORDBREAK|DT_EXPANDTABS" as DRAW_TEXT_FLAGS together with "10" as FONT_SIZE and "100" as SIZE_Y. However the fixed FONT_SIZE is really a fixed font in this case, if the gauge is resized the fontsize doesn't change with it and might give odd results.You might be able to work somehow with pelement->char_height directly in the string callback to make the resizing, but I haven't tried.Arne Bartels

Share this post


Link to post
Share on other sites

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
Sign in to follow this