Announcement

Collapse
No announcement yet.

Need a little help getting started reading a button

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

  • Need a little help getting started reading a button

    Ok I create a simple button momentary = No) and Visi gave me this code:

    // Winbutton1 1.0 generated 5/1/2013 4:49:45 PM img_SetWord(hndl, iWinbutton1, IMAGE_FLAGS, (img_GetWord(hndl, iWinbutton1, IMAGE_FLAGS) | I_STAYONTOP) & ~I_TOUCH_DISABLE); // set to enable touch, only need to do this once img_Show(hndl, iWinbutton1); // show button, only do this once img_SetWord(hndl, iWinbutton1, IMAGE_INDEX, state); // where state is 0 for up, 1 for down, 2 for 'on' up and 3 for 'on' down img_Show(hndl,iWinbutton1) ;

    How do I read the button?


    Thanks,

    Mark

  • #2
    Hi Mark,
    Click "Samples" in 4D Workshop4 IDE, select Picaso ViSi and browse for the following sample program,
    ...\4D Labs\Picaso Visi\FANCYBUTTONS.4DViSi

    It will help you getting started with the Button object. There are some other sample programs in the ...\4D Labs\Picaso Visi\ folder that explain the usage of ViSi objects.
    -Bilal

    Comment


    • #3


      Thanks

      I was looking at the wrong samples. Thanks for giving me the correct path.

      Mark

      Comment

      Working...
      X