WPCubed Product Support

Bug in WPAT_BorderWidthB ?

Hi,

following code to draw borderlines in a table:

cell.ASet(WPAT_BorderWidthB, value);
cell.ASet(WPAT_BorderFlags, WPBRD_DRAW_Bottom);
...
Refresh;

if i set value to 0 a fine line is drawn, from 1 to 7 there is no line and over 7 the line is always drawn.

i think it is a bug, linewidth -> 0 should not draw a borderline, or?

Ciao
Stefan

#1 ♥ 0
6.1k Views 2 users read 1 min
support

No "Bug" here -
width = 0 means usually hairline, thats the smallest line possible on a device

#2 ♥ 0

Thank you for this tip, i have to hide borders instead set the width to 0...

Ciao
Stefan

P.S.
if "0 means usually hairline, thats the smallest line possible on a device", why is with a greater value (1 to 7) no border visible?

#3 ♥ 0
support

Thats has to do with the graphic system - width = 0 will always be drawn, if the width is specified rounding takes place. Just like Canvas.Pen.Width

#4 ♥ 0
This category is archived. No new posts are possible.