2010/4/7 Paul Ishenin <[email protected]>: > As result you don't need mbNone. Just use [] to indicate that no button is > pressed.
2010/4/7 Martin <[email protected]>: > I wouldn't recommend that change. Some units define > const Foo = Array [TMouseButton] of String = (list of names for values); > > Those will break, because the count of the enum changed. > > Create a set > > type > TMouseButtons = set of TMouseButton ; > var > MouseButtonPressed: TMouseButtons; > > MouseButtonPressed := []; > MouseButtonPressed := [mbLeft]; > MouseButtonPressed := [mbLeft, mbRight]; > > and so on Oh! Thank you both very much! I searched for this, but nothing found! :-) Best regards, Kjow -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
