Tochpanel

  • I am working succesfully with the NetDcu8 and a Hitachi TFT.
    Now I want to use the TFT with touch.


    I have seen, I can connect the touchpanel output of the TFT to J7 of the NetDcu.
    I have read in the NetDcu_DeviceDriver documentation that there is a driver for the touchpanel.
    So far so good.


    But how can I access the touchpanel driver from within my WCE programm?
    How do I get the informations from the touchpanel into my application?
    How can I start the calibration from within my application?
    Is there any sample application for a touchpanel available?


    Thank you very much in advance.


    Kind regards


    Dirk

  • Hello,
    touch panel is treated in the same way as a mouse. That means windows will notify you by messages about all touch panel actions. So you have nothing to do without place your code into the correponding message handler.


    For calibration please refer: http://www.fs-net.de/phpBB2/viewtopic.php?f=4&t=1511.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Thanks for your quick answer.


    Okay, It works like a mouse, this information is very helpful, but what do you mean with

    Quote from "fs-support_ZU"

    without place your code into the correponding message handler.


    Thanks


    Dirk

  • Hello,


    VS200x offers you the possibility to add message handels for controls by the controls property page. After you have add a message handler e.g. for "button click" you will get following in the source file:


    Code
    1. CMyApp::OnMyButtonClick()
    2. {
    3. // TODO: Add your control notification handler code here
    4. }

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello,
    please refer the msdn. Is is very easy!
    You will get several windows message (WM_LBUTTONDOWN, ...).

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello,
    as already told above touchpanel works like a mouse!
    So easily create an application and implement the corresponding message handlers.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.