Matlab GUI 技巧(一)-窗口前置

2017-01-16  by:CAE仿真在線  來源:互聯(lián)網(wǎng)

當(dāng)遇到2個GUI窗口,需要使某指定GUI窗口前置顯示時

如gui1 控制窗 圖柄 h1

gui2 顯示窗 圖柄 h2


gui1上按鈕控制 gui2上的顯示。

在按鈕回調(diào)callback命令執(zhí)行完成后,

1)執(zhí)行 figure(h1) ,則gui1為當(dāng)前窗,且前置。

2)執(zhí)行set(0,'CurrentFigure',h1) , 則gui1為當(dāng)前窗,但不前置

Matlab GUI 技巧(一)-窗口前置



Matlab GUI 技巧(一)-窗口前置




==================

matlab幫助文件解釋如下

Making a Figure Current

The current figure is the target for graphics output. There are two ways to make a figure hthe current figure.

  • Make the figure hcurrent, visible, and displayed on top of other figures:

    figure(h)
  • Make the figure h current, but do not change its visibility or stacking with respect to other figures:

    set(0,'CurrentFigure',h)

開放分享:優(yōu)質(zhì)有限元技術(shù)文章,助你自學(xué)成才

相關(guān)標(biāo)簽搜索:Matlab GUI 技巧(一)-窗口前置 MatLab培訓(xùn) MatLab培訓(xùn)課程 MatLab在線視頻教程 MatLab技術(shù)學(xué)習(xí)教程 MatLab軟件教程 MatLab資料下載 MatLab代做 MatLab基礎(chǔ)知識 Fluent、CFX流體分析 HFSS電磁分析 Ansys培訓(xùn) Abaqus培訓(xùn) 

編輯
在線報名:
  • 客服在線請直接聯(lián)系我們的客服,您也可以通過下面的方式進(jìn)行在線報名,我們會及時給您回復(fù)電話,謝謝!
驗證碼

全國服務(wù)熱線

1358-032-9919

廣州公司:
廣州市環(huán)市中路306號金鷹大廈3800
電話:13580329919
          135-8032-9919
培訓(xùn)QQ咨詢:點擊咨詢 點擊咨詢
項目QQ咨詢:點擊咨詢
email:kf@1cae.com