How to identify a window created by system command

Hi, I called an external program by system command in my GUI and a window appears. Is there any way that I can identify this window so I can move it into my GUI window?
Thanks,
Feng

回答 (1 件)

Matt Fig
Matt Fig 2012 年 10 月 4 日

0 投票

What do you mean, "move it into my GUI window"? You cannot have a figure be a child of another figure, if that is what you are trying to do.

5 件のコメント

Feng
Feng 2012 年 10 月 4 日
I mean to integrate the external window as part of my GUI, like a graph.
Matt Fig
Matt Fig 2012 年 10 月 4 日
Still, you cannot simply put one figure "in" another figure. You will have to pull the data off the graph, import it into your GUI, the replot it. What other program made the plot?
Feng
Feng 2012 年 10 月 4 日
something like 'system('notepad.exe &')' will open the notepad window. Can I put the notepad into the GUI, rather than leave it as separated window?
Matt Fig
Matt Fig 2012 年 10 月 4 日
You might be able to emulate what you want by using an activex control in the GUI, though I have no real experience with this. On the other hand, a multi-line editbox could serve the purpose of a notepad.
Walter Roberson
Walter Roberson 2012 年 10 月 4 日
You will not be able to move the MS Windows application window to be part of a MATLAB figure. However, you might perhaps be able to read off the contents of the window and display those contents within a MATLAB figure. I have no experience with that myself, but from time to time someone has posted code that seems to work that way.

この質問は閉じられています。

タグ

質問済み:

2012 年 10 月 4 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by