February 3, 200521 yr 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
February 6, 200521 yr 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
Create an account or sign in to comment