フィルターのクリア

Keyboard to matlab gui

3 ビュー (過去 30 日間)
Rayane
Rayane 2014 年 1 月 27 日
回答済み: Walter Roberson 2014 年 1 月 27 日
Hello
I want to add a keyboard to my gui
so when the user clicks an edit text the keyboard appears on screen
Any help?
Thank you

回答 (2 件)

ES
ES 2014 年 1 月 27 日
You can either call an instance of on screen key board [the one that comes with windows or whatever os you have] or call another GUI that resembles the keyboard.
For doing the former in Windows, you may
dos('osk.exe');%On screen Keyboard
For doing the latter, you will have to create the second GUI, pass the clicked character to the first GUI.
  1 件のコメント
Rayane
Rayane 2014 年 1 月 27 日
Thank you for your answer I really appreciate it
But I want to self design the keyboard on a panel maybe in the same guide
is there an easy way to do it ?
I'm thinking of adding buttons on a panel but it would take a lot of time programming it ...

サインインしてコメントする。


Walter Roberson
Walter Roberson 2014 年 1 月 27 日
GUIDE is designed in such a way that it is not easy to open a second figure with graphic control elements on it. You could use a uipanel() though.
You could use a uibuttongroup with all of the buttons set to the same callback, which figured out which button had been pressed.
But... there is an oddity in uicontrol Edit controls that if you are in the middle of a keypresscallback then if you get() the String property then it will reflect the string before the edit started. You need to do some tricks to get the display and String property updated as you go along.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by