Thomas Hruska wrote:
> Christian Labrie wrote:
>> Hello to all,
>>
>> Does anybody knows a way, using Windows messages or else, to detect if the a 
>> application is running on a normal screen with a keyboard or if it's running 
>> on a touchscreen?
>>
>> The reason is that in a case of a touchscreen, I would make some components 
>> bigger, 'cause my buttons would be too small to click with fingers.
>>
>> Thanks
> 
> How about the Win32 API GetSystemMetrics()?
> 
> SM_PENWINDOWS
> SM_TABLETPC
> SM_CMOUSEBUTTONS
> 
> Look like the most promising entries.

And there is this article I just turned up on Google:

http://blogs.msdn.com/netcfteam/archive/2006/10/02/Platform-detection-III_3A00_-How-to-detect-a-touch-screen-on-Windows-CE-in-.NET-CF.aspx

 From here (The link above is the third part in a 3-part article series):
http://blogs.msdn.com/netcfteam/rss.xml

What is described is what I call an "evil hacky workaround" and probably 
won't work on regular WinXP.

--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

Safe C++ Design Principles (First Edition)
Learn how to write memory leak-free, secure,
stable, portable, and user-friendly software.

Learn more and view a sample chapter:
http://www.CubicleSoft.com/SafeCPPDesign/



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/delphi-en/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to