Isn't it possible to specify the size of a shape object, as in drawShapeRelative? Am I missing something? Can it be done?
Announcement
Collapse
No announcement yet.
Size of shape object?
Collapse
X
-
bfry5282
You could use drawText instead and use the various Wingdings (or equivalents) as font which offer some additional benefits besides the ability to control the size.
In fact you can also center the font shape, it has an inbuilt spacing that separates it from the bar and you can color the background.
Alex
Comment
-
bfry5282
Attached is a very basic example of a circle drawn using drawTextRelative rather than drawShapeRelative.
First advantage is that the library of wingdings offers a lot more shapes than that of Shapes. Secondly you can size the wingdings by virtue that they are a font. You also have better control of their placement through the availability of more flags (for example Text.CENTER, Text.VCENTER, etc). Another benefit is that you really don't have to "space" them from the bars because the wingding is always centered to the vertical spacing of the font. As an example notice that the dots are always spaced from the high/low of the bars no matter the interval. Just a few of the advantages IMHO.
Hope this helps
AlexAttached Files
Comment
-
William
You can find the description and syntax for drawTextRelative() in this article in the EFS KnowledgeBase
For future reference you may want to bookmark this link to the EFS KnowledgeBase where you can find all the information regarding efs functions.
Alex
Comment
Comment