SG node width/height wrong?

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

SG node width/height wrong?

Postby HPW » April 23rd, 2006, 6:38 pm

I noticed that node-width and height contains values 1 pixel smaller than it has real on screen.

Also the demo with enabled grid-snap let me draw a rectangle on 8x8 and width/height 24x24 which is really 25x25.

Is this intentional by design or a bug?
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 230
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby Kambiz » April 24th, 2006, 7:30 am

It's Windows behavior and depends on Pen.Style property.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby HPW » April 24th, 2006, 7:44 am

Kambiz wrote:It's Windows behavior and depends on Pen.Style property.


But with a solid line and 1 Pixel width schouldn't the border of a node not be completly included in width/height?

It shows for example (32,32) and is in fact 33,33.

Anyway, will it stay as it is in 2.61?
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 230
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby Kambiz » April 24th, 2006, 10:36 am

Most of windows APIs exclude the bottom and right edges. For example, look at Rectangle Windows API help on MSDN.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron