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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Twips and pixels

Status
Not open for further replies.

accessNEWB

Technical User
May 20, 2002
10
CA
Wondering how to get the screen's current resolution. I have a bit of code that allows me to set a forms position on screen in pixels. I now wish to simulate a move command (drag the title bar and move the form) because the form I designed has the title bar turned off so I can make it a thin toolbox. But the X and Y coords given by MouseDown are in Twips. Any other apis or something that will return the mouse's position in pixels, based on a get screen resolution or something?
 
There are 15 twips per pixel regarless of resolution. I think the original idea was that 640x480 would have 15 twips and 1280x960 would have 7.5 so everything would autosize, except fonts. Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top