From: Ilya on 6 Jun 2010 04:42 Hi everyone! I have two GUIs. First (main) was created programmatically, second (sub-gui) was created with guide. I want these guis to share some data by means of Application data. In the first gui appdata is set and second gui gets appdata. But when second gui gets data with getappdata it brings a new instance of first gui. I know that guide uses "singleton" option to prevent an appearing of more than one instance of gui, but my main gui, as I said, created programmatically and doesn't include singleton option because I'm new to gui programming and don't know how to make singleton programmatically. I've exported a gui from guide to m-file to see code that stands for singleton option. But automatically generated code seems rather complex (and redundant) to understand for a novice. Are there any examples of programmatically created gui with singleton functionality? Thanks in advance for answers
|
Pages: 1 Prev: How to print some text in my plot? Next: Smile detection |