delphi - How can I control the border size of a window? -
i've got forms use absolute positioning , pixels win7 adds "handles" enhance translucency screwing controls up. i'd take them back. tried using code in 1 of answers here:
can make borderless application main window in windows, without ws_popup style?
specifically answer goleztrol provided utilizing override in showform call setwindowrgn. code's behavior bit different under w7 xp, , in case can't effect i'm looking for.
for standard tform in xp, quantity width-clientwidth = 8, , in win7, it's 16. i'd 8 pixels back. i'd height pixels while i'm @ it, though width more important.
i think bad practice rely on border width of form, especially since end-user can change in control panel! clientwidth
property there use instead of width
. set former whatever like, , latter computed.
Comments
Post a Comment