From: mu'tasem on
"mu'tasem " <mutasem.jarrah(a)yahoo.com> wrote in message <i2s818$46v$1(a)fred.mathworks.com>...
> Walter Roberson <roberson(a)hushmail.com> wrote in message <qYg4o.35489$xZ2.6465(a)newsfe07.iad>...
> > mu'tasem wrote:
> > > Walter Roberson <roberson(a)hushmail.com> wrote in message
> > > <i2q4jt$49d$1(a)canopus.cc.umanitoba.ca>...
> > >> mu'tasem wrote:
> > >>
> > >> > I have question about, how can enlarge (create) the (Plot -axes ) in
> > >> new > GUI ( Plot - axes) when i press enlarge button, and insert the
> > >> existing > data in the old GUI to the new one.
> > >>
> > >> copyobj()
> > >
> > > but in GU1 i have axes , title, xlable and ylable ... how can copy all
> > > of this components to the GUI2
> >
> > "copyobj -- Copy graphics objects and their descendants"
> >
> > copyobj(findall(GU1,'Type','axes'),GU2);
>
> Thanks a lot...Done


.... as the same for panel with components
copyobj(findall(GUI1,'Type','uipanel4'),GUI2);
..... i'm try the above statement but not working...
From: Walter Roberson on
mu'tasem wrote:
>
> .... as the same for panel with components
> copyobj(findall(GUI1,'Type','uipanel4'),GUI2);
> .... i'm try the above statement but not working...

There is no graphic object with type 'uipanel4'. There are graphic objects of
type 'uipanel', and you might happen to have a variable named uipanel4 that is
the handle of a uipanel.

If you want to copy a particular graphics object to be underneath the figure
GUI2, then

copyobj(TheExistingObject, GUI2)
From: mu'tasem on
Walter Roberson <roberson(a)hushmail.com> wrote in message <i2t1cj$od5$2(a)canopus.cc.umanitoba.ca>...
> mu'tasem wrote:
> >
> > .... as the same for panel with components
> > copyobj(findall(GUI1,'Type','uipanel4'),GUI2);
> > .... i'm try the above statement but not working...
>
> There is no graphic object with type 'uipanel4'. There are graphic objects of
> type 'uipanel', and you might happen to have a variable named uipanel4 that is
> the handle of a uipanel.
>
> If you want to copy a particular graphics object to be underneath the figure
> GUI2, then
>
> copyobj(TheExistingObject, GUI2)

This means that you must change the type to panel as it is: copyobj(findall(GUI1,'uipanel','uipanel4'),GUI2);
because i'm try this statement: copyobj(TheExistingObject, GUI2)
but noting ??
Note: in the uipanel i have 3 Static Text and two axes inserted the values from GUI1, then i need to transfer all the components (uipanel4) to GUI2.... with regards
From: Walter Roberson on
mu'tasem wrote:
> Walter Roberson <roberson(a)hushmail.com> wrote in message
> <i2t1cj$od5$2(a)canopus.cc.umanitoba.ca>...
>> mu'tasem wrote:
>> >
>> > .... as the same for panel with components
>> > copyobj(findall(GUI1,'Type','uipanel4'),GUI2);
>> > .... i'm try the above statement but not working...
>>
>> There is no graphic object with type 'uipanel4'. There are graphic
>> objects of type 'uipanel', and you might happen to have a variable
>> named uipanel4 that is the handle of a uipanel.
>>
>> If you want to copy a particular graphics object to be underneath the
>> figure GUI2, then
>>
>> copyobj(TheExistingObject, GUI2)
>
> This means that you must change the type to panel as it is:
> copyobj(findall(GUI1,'uipanel','uipanel4'),GUI2);

No.

copyobj(findall(GUI1,'Type','uipanel'),GUI2);

'Type' is a keyword.


> because i'm try this statement: copyobj(TheExistingObject, GUI2)
> but noting ??
> Note: in the uipanel i have 3 Static Text and two axes inserted the
> values from GUI1, then i need to transfer all the components (uipanel4)
> to GUI2.... with regards

copyobj(get(GUI1,'Children'),GUI2)

and forget about copying the panel contents specifically.
From: mu'tasem on
Walter Roberson <roberson(a)hushmail.com> wrote in message <i6D4o.33403$Bh2.12739(a)newsfe04.iad>...
> mu'tasem wrote:
> > Walter Roberson <roberson(a)hushmail.com> wrote in message
> > <i2t1cj$od5$2(a)canopus.cc.umanitoba.ca>...
> >> mu'tasem wrote:
> >> >
> >> > .... as the same for panel with components
> >> > copyobj(findall(GUI1,'Type','uipanel4'),GUI2);
> >> > .... i'm try the above statement but not working...
> >>
> >> There is no graphic object with type 'uipanel4'. There are graphic
> >> objects of type 'uipanel', and you might happen to have a variable
> >> named uipanel4 that is the handle of a uipanel.
> >>
> >> If you want to copy a particular graphics object to be underneath the
> >> figure GUI2, then
> >>
> >> copyobj(TheExistingObject, GUI2)
> >
> > This means that you must change the type to panel as it is:
> > copyobj(findall(GUI1,'uipanel','uipanel4'),GUI2);
>
> No.
>
> copyobj(findall(GUI1,'Type','uipanel'),GUI2);
>
> 'Type' is a keyword.
>
>
> > because i'm try this statement: copyobj(TheExistingObject, GUI2)
> > but noting ??
> > Note: in the uipanel i have 3 Static Text and two axes inserted the
> > values from GUI1, then i need to transfer all the components (uipanel4)
> > to GUI2.... with regards
>
> copyobj(get(GUI1,'Children'),GUI2)
>
> and forget about copying the panel contents specifically.

Dear Walter Roberson
I tried the above code copyobj(get(GUI1,'Children'),GUI2) , but has been copied the contents of each gui1 and not the contents of the panel needed..