Test case, specified as a matlab.uitest.TestCase object.
Component under test, specified as a ListBox object. You can create a
list box using the uilistbox function.
Component element to double-press, specified as a positive integer scalar, string
scalar, or character vector. For a list box, you can specify
element as the index or text of a list box item.
Example: 1 (first list box item)
Example: "Blue" (list box item containing the text
"Blue")
Create a list box in a UI figure. Set the DoubleClickedFcn
callback property of the list box to display a message when a list box item is
double-clicked.
Double-press the first list box item. A blue dot representing the programmatic
double-press gesture briefly appears at the center of the item. The gesture executes the
DoubleClickedFcn callback, which displays a message in the
Command Window.
testCase.doublePress(lb,1)
Red item double-clicked!
Now, double-press the last list box item using its text.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.