Announcement

Collapse
No announcement yet.

Indexing Objects

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

  • Indexing Objects

    Is there a function that allows me to get the index of an object, such as a button? I am writing a function that tells me if a button was pressed, in the 4D Visi environment. To get the status of the button I use the command:

    n := img_Touched(hndl,button);

    n is set to the value of some number (presumably the index of the button) if the button is touched, or -1 if not. Is there a function that allows me to obtain the index of the button?

    Thanks
    Last edited by Alex Kato; 26 March 2016, 05:38 AM.

  • #2
    Have a look at the samples (File, Samples, Picaso ViSi, ...)

    They use
    Code:
    n := img_Touched(hndl,-1) ;
    then
    Code:
    if (n == iButton1)
    etc.
    Mark

    Comment

    Working...
    X