Board index » delphi » Get control border width

Get control border width

Hello, all!!

I have a TRichEdit with BorderWidth := 0 and BorderStyle := bsSingle.  Is
there a way to determine the width of the bsSingle border in code??  Also,
there doesn't seem to be any difference in Ctl3D true or false, except that
the false setting appears a couple of pixels smaller, though the dimensions
in the Object Inspector are the same.

Any help would be greatly appreciated.

Jon T. Camp
Applied Research Associates
jc...@ara.com

 

Re:Get control border width


Jon -

See the GetSystemMetrics routine in the Win32 API help file.

Good luck.

Kurt

Re:Get control border width


Thanks, Kurt

Tygr (Jon T. Camp at home)

Kurt Barthelmess (TeamB) <71333.2...@compuserve.com> wrote in message
<37057e4f.2566...@forums.borland.com>...

Quote
>Jon -

>See the GetSystemMetrics routine in the Win32 API help file.

>Good luck.

>Kurt

Other Threads