Board index » delphi » Meaning of Width for a Control?

Meaning of Width for a Control?

[ WIDTH < 1K ]
Suppose I have a control whose width is 10 pixels.

Does this mean there are 10 pixels across the width of the
control (pixels numbered 0 through 9)? In this case, there
is no center pixel.

Or does it mean the control spans a width of 10 pixels
(pixels numbered 0 through 10)? In this case, pixel 5 is in
the center.

A related question is whether there is a center pixel on a
640X480 screen.

At the risk of starting an argument, your thoughts would be
appreciated.

 

Re:Meaning of Width for a Control?


Sheldon C. Shallon <s...@ieee.org> skrev i en
nyhedsmeddelelse:37D17150.6...@ieee.org...

Quote
> Suppose I have a control whose width is 10 pixels.

> Does this mean there are 10 pixels across the width of the
> control (pixels numbered 0 through 9)? In this case, there
> is no center pixel.

Yes.
You could say there are two center pixels.

Quote
> Or does it mean the control spans a width of 10 pixels
> (pixels numbered 0 through 10)?

No.

Quote
> A related question is whether there is a center pixel on a
> 640X480 screen.

No.
(Or two center picels)

Re:Meaning of Width for a Control?


On Sat, 04 Sep 1999 12:21:52 -0700, "Sheldon C. Shallon"
<s...@ieee.org> waffled on about something:

Quote
>Suppose I have a control whose width is 10 pixels.

>Does this mean there are 10 pixels across the width of the
>control (pixels numbered 0 through 9)? In this case, there
>is no center pixel.

Correct

Quote
>Or does it mean the control spans a width of 10 pixels
>(pixels numbered 0 through 10)? In this case, pixel 5 is in
>the center.

Nope.

Quote
>A related question is whether there is a center pixel on a
>640X480 screen.

No.

Quote
>At the risk of starting an argument, your thoughts would be
>appreciated.

That's my thoughts.
I think I'm right, but If I'm not, you can bet that I'll be corrected
very quickly!

Other Threads