Announcement

Collapse
No announcement yet.

Magic touch question

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Magic touch question

    hello
    I am trying to use the new magic touch object with WPRO

    a very simple example
    3 forms that must be activated at the pressure of a smartgauge object

    It is possible with the device Gen4-uLCD-32DT?

    this code:
    if (ImageTouched == iSmartGauge3)
    ActivateForm(1);
    endif

    if (ImageTouched == iSmartGauge4)
    ActivateForm(2);
    endif

    dosen't work

    thanks for suggestions

  • #2
    Good day refrhe,

    The smart gauges are regarded as "output" widgets, therefore the touch functions of these widgets are not inherently enabled.
    You need to add this piece of code on the PreActivate Form using a Magic Code object to allow these gauges to accept touch input:

    img_ClearAttributes(hndl, iSmartGauge0, I_TOUCH_DISABLE);

    Then use your code normally.

    Best Regards,
    Kevin

    Comment


    • #3
      works! thank's

      Comment

      Working...
      X