ListBox1->Touch->GestureManager = GestureManager1; ListBox1->Touch->StandardGestures = TStandardGesture::sgLeft; 

I tried this way, it gives an error:

error screenshot

    1 answer 1

    The text of the error shows that the compiler cannot convert the type of TStandardGesture to TStandardGestures (the names differ only by one s at the end). Also, the error states that the second type is essentially an alias for the template class Set . This class is a set (set) of values ​​and for placing a value into this set an operator<< overload is provided:

     ListBox1->Touch->StandardGestures << TStandardGesture::sgLeft;