"btpoole" wrote:
Why? The only thing I see you changed was the 35 to 55. It should not matter or should it. It still should keep the same spacing if the only thing changing is the y or vertical location on screen. What am I missing that this would make a difference?
In each loop iteration you are displaying 2 lines, one below the other: a date/time and a title. Each line has a height of 30 pixels.
The first date/time line has a y-coord of 50 (and height 30), so it spans y:[50,80).
The first title line has a y-coord of 75 (and height 30), so it spans y:[75:105).
Note, you already have a 5 pixel overlap (80 vs. 75) between the two lines, although that should still display reasonably well since the text letters don't necessarily take up the whole height of the text box, but you may want to consider initializing tTxt to 80 just to be safe.
However, when you add 35 pixels to your next date/time y-coord, it will span y:[85,115). This gives an additional 20 pixel overlap with your first title line, the overlap occurring at y:[85:105). The same applies when you only add 35 pixels to the next title line.
To avoid the additional 20 pixel overlap, you'd need to add 35 + 20 = 55 pixels to each y coordinate each time through the loop.
Or, to make the math easier, initialize dTxt and tTxt to 50 and 80, respectively (to guarantee no overlap between the date/time and its respective title), then increment dTxt and tTxt by 60 each time through the loop (30 pixels to skip over the date/time line and 30 pixels to skip over the title line), and maybe another 5 px to add space between each set of date/time and title pairs.