DYO: Section Fonts Options


A comment was made that the user had a separate DYO for each font size used in a section.    Well, Ensign permits you to set a section font size directly using the Global Action statement, and the trick here is to identify the section in the line label using the |x| notation.

Line A is setting the font size to 6 for section |1| and also putting the message Hello in that section.   Now the |1| had to be on Line A for use by the Global Action | Section Font Size statement but the Hello did not have to be on that line. It might have been on some other line later in this DYO or even in a different DYO.   The |1| in the label was the direction to use section 1.

Line B operates on section 2 with the |2| tag in the label, and Line C is the control of the 4th section.  You can see the Hello in different sizes in the chart example above the DYO property form.  So, this ability to set the section font size in any of the 7 sections directly on a DYO row should simplify the custom implementation some are trying to achieve.

This example was for messages in the section window, and not labels for showing in the chart margin columns.  An earlier example used Label Font Size and not Section Font Size as in this example.  So they are two different font controls for 2 different locations.

Line B has a negative number for the size and the negative is the control for making it BOLD.  So 16 would be different than -16.  The -16 is size 16 that is also BOLD

The tag is the vertical line character on both sides of a single digit in the range of 1..7.   A square bracket would have been a GV look-up.  So [1] would have been the content of GV[1] and |1| is section 1 reference.

DYO Long Messages
A long message will start at the left edge of the section and overflow a section in the rightward direction.  This means it affects its right side neighbor but not the left side neighbor.  This makes it easier to build big fat messages in the section by putting them in the 1st section.

In the past the leading and trailing spaces would be stripped.  Now they are no longer stripped and serve as a way to horizontally change the centering that is being done.  If you pad to the left side, you shift the centering rightward.  If you pad after the string, you shift the centering leftward.

read more » DYO: Font Size for Labels


Last modified 12/17/08 11:11 AM