Combination of Pushbutton and Edit Text.

조회 수: 1 (최근 30일)
acosep
acosep 2015년 9월 6일
댓글: Walter Roberson 2015년 9월 9일
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?

채택된 답변

Walter Roberson
Walter Roberson 2015년 9월 6일
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
acosep
acosep 2015년 9월 9일
In creating uitable() can I block the specific box from being clickable and editable? I think using uicontrol() in edit text is more easier to implement since I need the function that if I click(During) that box then there will be a pop out message in a static box(Opposite from callback).
Walter Roberson
Walter Roberson 2015년 9월 9일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Word games에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by