UIpanel within an UIpanel problem

2 visualizzazioni (ultimi 30 giorni)
Joe
Joe il 11 Set 2015
Modificato: Joe il 15 Set 2015
I realized I posted this in a Newsgroup, not the Matlab Answers page:
I am having a uipanel within an uipanel problem
I set
p4 = uipanel
then I set
p4_1 = uipanel,
and
p4_1.Parent = p4
Then I create some uicontrol text, and place p4_1 as its parent.
When I click on the GUI figure and choose the arrow button (to manually move around the text) I can highlight the text, but cannot resize or move it.
Any ideas why this is the case?
Thanks
  4 Commenti
Walter Roberson
Walter Roberson il 14 Set 2015
There is no uicontrol() callback to resize or move text. Are you referring to the Object Inspector functionality?
GUIDE might provide a mechanism to change such things while you are in GUIDE, but uipanel nested inside uipanel are not something you can build with GUIDE.
Joe
Joe il 15 Set 2015
Modificato: Joe il 15 Set 2015
Walter,
Once the GUI is created, I go to the GUI window, click the white arrow and then click on the text I want to move / re-size. Then I can use my mouse to drag around and re-size the object I've selected.
Then I figure out the new Position of that item I moved, and hard code it into the GUI code. The problem is that I can't move / resize the object I selected with my mouse if it's in a uipanel nested inside of another uipanel.
For example, I cannot grab the little blue corner boxes around the Frequency Text box with my mouse. If the text box were in a single uipanel (not nested within another) I would be able to grab the blue corners with my mouse.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by