I designed an application using many Stringgrid-like tables which must
be fully displayed on a screen of 780 pixel width with a minimum of
scrolling-"need". No problem if the Windows Desktop-Settings are
ordinary standard, but if the "general" scrollbar-width is set to a
higher value, the grid get's scrollable horizontal cause the last
column can't be fully displayed due to the width of the vertical bar.
To eliminate unwanted effects and to unify the GUI-outlook, I'm searching
for a way to set the width of the scrollbar programmatically to a fixed
value (like it's possible for a TScrollbox...).
Does anyone have a clue (e.g. a WinAPI-Function)?
Thanks,
Stefan
Wrong approach, IMO, you should get the scrollbar width via GetSystemMetrics
or SystemParametersInfo( SPI_GETNONCLIENTMETRICS, .. )and use it to adjust
your grids width. But if you insist: look at SystemParametersInfo(
SPI_SETNONCLIENTMETRICS, .. ). You program should read the old settings when
it is activated, change to its custom values and restore the old ones when
it is deactivated.
Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitly requested!