Pinstripe/Display: Difference between revisions
Content added Content deleted
m (Corrected two comments.) |
|||
Line 844: | Line 844: | ||
proc draw(area: DrawingArea; context: Context) = |
proc draw(area: DrawingArea; context: Context) = |
||
## Draw the |
## Draw the bars. |
||
const lineHeight = Height div 4 |
const lineHeight = Height div 4 |
||
Line 883: | Line 883: | ||
window.add(area) |
window.add(area) |
||
# Connect the "draw" event to the callback to draw the |
# Connect the "draw" event to the callback to draw the bars. |
||
discard area.connect("draw", ondraw, pointer(nil)) |
discard area.connect("draw", ondraw, pointer(nil)) |
||