how to keep the strings displayed in the edit box and the selections in the pop-up menu in the GUI1 when you return back from GUI2.

2 次查看(过去 30 天)
Hello, I have the following problem: I created two GUI (GUI1 and GUI2). In the first (GUI1) I have two edit text in which I insert numerical values of the two pop-up menus, and a callback function "forward" that brings me to the next GUI (GUI2) that contains two radio buttons, two list-box and two functions callback: a GUI allows you to go to the next (GUI3) the other to return to the previous GUI (GUI1). But when I select the pushbutton 'Back' to return to the gui1, edit the values in the text are not saved as well as the selections made in the pop-up menu. I wanted to know, kindly, how can I see what has been entered in the GUI1 and / or when I get back from the selected GUI2.
Thank you for your cooperation.
  1 个评论
Giuseppe
Giuseppe 2014-5-19
yes I saved the strings in the workspace. How do I set the value stored (for the first time) in the workspace in the function _OpeningFcn? I do not want that when the gui1 is started for the first time creates an error because it does not know the value saved in the workspace. If you start for the first time gui1 creates error?

请先登录,再进行评论。

采纳的回答

Yao Li
Yao Li 2014-5-19
  1. Save the string to workspace or setappdata
  2. You can create a handle in the opening function of GUI1 to dectect whether GUI1 is launched for the first time or not.
  3. If GUI1 is not launched for the 1st time, Set the saved string to the edit text.
  2 个评论
Giuseppe
Giuseppe 2014-5-19
yes I saved the strings in the workspace. How do I set the value stored (for the first time) in the workspace in the function _OpeningFcn? I do not want that when the gui1 is started for the first time creates an error because it does not know the value saved in the workspace. If you start for the first time gui1 creates error?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by