06-21-2006, 07:43 PM
Does anyone know how i would calculate the x-length of a string in pixels to be outputted by the Yagl text thingo?
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
Yagl text output
|
06-21-2006, 07:43 PM
Does anyone know how i would calculate the x-length of a string in pixels to be outputted by the Yagl text thingo?
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
06-21-2006, 07:51 PM
You can use GfxFont::getTextDimensions (YaglGfxFont_getTextDimensions in the wrapper):
Code: Dim font As YaglGfxFont
06-21-2006, 08:43 PM
it doesn't seem to work the compiler yields the error
error 10: expected '=', found 'dispfont'
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
06-21-2006, 08:51 PM
Could you post your code?
06-21-2006, 09:00 PM
Code: SUB makebutton (x1, y1, x2, y2, text$, idx)
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
06-21-2006, 09:57 PM
Its ok i figured out what's wrong. for some reason the function is YagGfxDevice, and is missing an l.
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
06-21-2006, 10:03 PM
Hmm, there's a typo in the latest released yaglwrapper.bi - change "YagGfxFont_getTextDimensions" to "YaglGfxFont_getTextDimensions" (add the "L").
|
« Next Oldest | Next Newest »
|