How to disable the TAB to get into an EditField box (R2020b)?

2 ビュー (過去 30 日間)
John
John 2020 年 11 月 13 日
コメント済み: gwoo 2023 年 6 月 21 日
By typing the TAB key, the app-designer can move the cursor into another EditField box, to input/edit the content.
Some Edit Field boxes are for showing the intermidiat result and are set to "Interruptible" OFF. We wish the TAB will NOT bring the cursor into that box.
How to set it for the TAB not to access / goes into the box?
  1 件のコメント
John
John 2020 年 11 月 19 日
Any suggestions for doing this?

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

回答 (1 件)

Steven Lord
Steven Lord 2020 年 11 月 19 日
Try setting its Enable property to 'on' and its Editable property to 'off'. See the pictures in the description of the Editable property on this documentation page. I'm not 100% certain that this will prevent it from being included in the tab order, but I believe it likely.
  1 件のコメント
gwoo
gwoo 2023 年 6 月 21 日
This "works" but it also greys out the field and makes it inaccessble in any way, even direct selection. There isn't an option that disables tab navigation to the field but still keeps it's the normal visibility (not greyed out) and allows direct selection.
Even images are tab elements when I don't want them to be, and I can't disable the tab navigation to them without also making them appear greyed out.
Enabled
Enabled Image with full color
Disabled
Disabled Image with greyed-out color

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

カテゴリ

Help Center および File ExchangeConstruct and Work with Object Arrays についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by