appdesigne​rで作ったタブを自動​的に切り替える事は可​能か

20 vues (au cours des 30 derniers jours)
Ryohei Mizuochi
Ryohei Mizuochi le 8 Juil 2021
Commenté : Ryohei Mizuochi le 9 Juil 2021
appdesignerでタブグループを使用した場合、例えばタブAに作成されたボタンを押したら、自動的にタブBの画面に切り替えるような機構は作成可能でしょうか。
初歩的な事かもしれませんが、ご教示いただければ幸いです。

Réponse acceptée

Atsushi Ueno
Atsushi Ueno le 8 Juil 2021
TabGroup.SelectedTabを変更すれば、別タブの画面に切り替わる事を確認しました。
添付したアプリ"app1.mlapp"の一部を下記に抜粋します。
% Value changed function: SwitchtoTab2Button
function SwitchtoTab2ButtonValueChanged(app, event)
value = app.SwitchtoTab2Button.Value;
app.TabGroup.SelectedTab = app.Tab2;
end
  1 commentaire
Ryohei Mizuochi
Ryohei Mizuochi le 9 Juil 2021
おおっ!確かに切り替わりを確認しました。
助かりました。ありがとうございました!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur App Designer を使用したアプリ開発 dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!