Combination of Pushbutton and Edit Text.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
acosep
am 6 Sep. 2015
Kommentiert: Walter Roberson
am 9 Sep. 2015
I was trying to make a Crossword Puzzle Program thing. If I'm going to click the edittext then the question will pop out inside that window(if possible). So, Is it possible to create a function of pushbutton in the edittext? And How?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 6 Sep. 2015
Clicking on the uicontrol('Style', 'edit') will activate any ButtonDownFcn property it may have.
Are you certain that you want to be creating an array of edit controls? Perhaps it would make more sense to create a uitable() ?
2 Kommentare
Walter Roberson
am 9 Sep. 2015
In the uitable, set everything to be not editable. Use the SelectionChangedFcn to detect clicking in a particular box. You can use that to pop up a clue. You can use KeyPressFcn to detect typing even for locations that are not editable, and you can decide whether to act on the key or not.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!