[Oberon] Native Oberon, TextFrames.barW.

Jörg Straube joerg.straube at iaeth.ch
Sat Oct 17 00:09:55 CEST 2015


Hi Peter

The height of the title bar is called „menuH“. And it is dependent on the height of the default font.

„barW" is the width of the scroll bar along the left border of the text frame.
To make it visually appealing, the intersection of the horizontal title bar with the vertical scroll bar shall be a square.
Hence, „barW" is also dependent of the height of the default font.

Jörg

> Am 16.10.2015 um 23:13 schrieb Peter Easthope <peter at easthope.ca>:
> 
> In the body of Native Oberon TextFrames, barW is initialized,
> barW := Fonts.Default.height + 2;
> 
> This is the height of the grey bar in the menu frame, allowing one pixel
> of clearance above the text and one pixel below?  Would barH representing
> "bar height" be more appropriate?
> 
> Then barW is used, for example,
> left := barW + Fonts.Default.height DIV 2;
> 
> left being derived from height values seems odd.
> 
> Any insights?
> 
> Thanks,                       ... Peter E.
> 
> 
> 
> 
> 
> -- 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
> Tel +1 360 639 0202 or  +1 604 822 7107
> http://easthope.ca/peter.html Bcc: peter at easthope. ca
> 
> 
> 
> -- 
> Telephone 1 360 639 0202 or +13606390202 or 12506293757.
> Bcc: peter at easthope.ca  http://easthope.ca/Shop.html
> 
> 
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon



More information about the Oberon mailing list