VERY nice.  Thanks!

--- In nsbasic...@yahoogroups.com, "George Henne" <g...@...> wrote:
>
> There are some useful new calls in the latest build, that are not fully
> documented yet. They let you check what the devices DPI setting is properly.
> 
> SYSINFO(number)
> 
> SYSINFO returns information about the device. This is not a complete
> list of return values: see Microsoft's documentation on GetSystemMetrics
> and GetDeviceCaps for more.
> 
> SM_CXSCREEN   0               Width of screen
> SM_CYSCREEN   1               Height of screen
> SM_CXVSCROLL  2               Width of arrow bitmap on vertical scroll bar
> SM_CYHSCROLL  3               Height of arrow bitmap on horizontal scroll bar
> SM_CYCAPTION  4               Height of caption or title
> SM_CXDLGFRAME 7       Width of dialog frame window
> SM_CYDLGFRAME 8       Height of dialog frame window
> SM_CYMENU     15              Height of menu
> SM_CXFULLSCREEN       16      Width of window client area
> SM_CYFULLSCREEN       17      Height of window client area
> SM_CYVSCROLL  20              Height of arrow bitmap on horizontal scroll bar
> SM_CXVSCROLL  21              Height of arrow bitmap on vertical scroll bar
> HORZREZ       108     HiRes Display width pixels
> VERTREZ       109     HiRes Display height pixels
> BITSPIXEL     112     Bits per pixel
> NUMCOLORS     124     Number of colors
> LOGPIXELSX    188     Pixels per inch horizontal
> LOGPIXELSY    190     Pixels per inch vertical
> 
> Example
> 
> REM SYSINFO Example
> 
> MSGBOX "The device's DPI is " & sysInfo(188)
> 
> Output
> The device's DPI is 96.

-- 
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb...@googlegroups.com.
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en.

Reply via email to