Announcement

Collapse
No announcement yet.

"img_Touched" fonction stop to get back image index So touched button failed

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

  • "img_Touched" fonction stop to get back image index So touched button failed

    Hello,

    I 'm building an application with several forms with several buttons.
    At each new form, I compile and load to verify the result.
    At the last form after a compile and load all buttons are freezed the touch is not run.
    I saw that img_touched function stop to get the image index.Altrougth "touch_Get(TOUCH_STATUS)" returns a good status.
    I searched in the compile files but I was not able to find the problem

    Could you help me?

    Attached Files

  • #2
    I found my error!
    Each menu starts by "affichage_form_X()" and inside I initialize buttons, digits... by init_form_X().
    I don't understand why but if I put "img_SetAttributes(hndl, -1, I_TOUCH_DISABLE);" just before the init_form_2() in affichage_form_2() touch functionality runs again for all other menu too without "img_SetAttributes(hndl, -1, I_TOUCH_DISABLE); at the start in the other menu. :-)

    Comment


    • #3
      Since all the menus share the same 'hndl', setting the attributes for -1 (ALL) sets it for all menus
      Mark

      Comment

      Working...
      X