Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record Selector Width - SystemMetrics

Status
Not open for further replies.

sfm6s524

Programmer
Joined
Jun 18, 2003
Messages
137
Location
US
Is there a way get the RecordSelector width (pixels or twips) of an Access form? I can use the GetSystemMetrics to get everything else. Trying to calculate runtime width of subform. Thanks, Ken.
 
Hallo,

Can you find it out using WindowWidth-FormWidth or something like that?

- Frink
 
Thanks for the idea. It's close, but not quite. Currently using a constant of 316 twips for record selector width (1280 x 1024 screen resolution). If I open a test screen, WindowWidth=3945, FormWidth=3240, ScrollbarWidth=240, and BorderWidths=120 (2 x 60). So that would calculate out to 345, which is just a few too wide. I think I give up, maybe keep using constant, or maybe a variable the user can adjust if they use different Windows Appearance settings than I do. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top