title: Is there a way to pass multiple variables,structures,widget data, etc. to a callback function in Octave?
body: <p>I was trying to pass data (mostly structures,info from gui elements,etc) but I am having some troubles doing that. Here my example:</p>
  
  <pre><code>  function []=myGUI()
       fig=figure('position',[200 200 200 200]);
       SecondS.edit1=uicontrol('style','edit','position',[25 60 80 20],'parent',fig,'string','enter 2nd');
       SecondS.edit2=uicontrol('style','edit','position',[25 80 80 20],'parent',fig,'string','enter 1st');
       SecondS.text=uicontrol('string','no result yet','style','text','position',[20 10 80 20],'parent',fig);
       S.button=uicontrol('string','Giris','style','push','position',[30 30 40 20],'parent',fig,'Callback',{@myCallback,SecondS});
   function []=myCallback(varargin)
      S=varargin{3};
      first=get(S.edit1,'string')
      second=get(S.edit2,'string')
      if isequal(first,'enes')&amp;isequal(second,'gormez')
        set(S.text,'string','both names match');
      end
  </code></pre>
  
  <p>On the above example I can pass the structure 'SecondS' and I can reach the trigger widget's info using 'GCBO'. However I am not able pass data if I have another variable, widget that is not in SecondS or a complete different structure. How can I do this without having to touch the info that I already passed.</p>
  
  <p>Thanks a lot for any kind of attention of yours.</p>