Creating Edit Box without using GUIDE

1 view (last 30 days)
I am trying to make certain plots using a script file. Now i want to display data also, the same way we do in GUI using guide. But here i am NOT using GUIDE. I want to create edit boxes using that script file only and then set certain data from my program into the edit boxes. Please tel me how can I do that.

Accepted Answer

per isakson
per isakson on 1 Jun 2012
This is a start
fh = figure;
ebh = uicontrol( fh, 'Style', 'edit' )
next step is
doc uicontrol
.
Documentation says:
Uicontrol Properties Describe user interface control (uicontrol) propert
...
Position position rectangle
Size and location of uicontrol. The rectangle defined by this property specifies the size and location of the control within the parent figure window, uipanel, or uibuttongroup. Specify Position as [left bottom width height] left and bottom are the distance from the lower-left corner of the parent object to the lower-left corner of the uicontrol object. width and height are the dimensions of the uicontrol rectangle. All measurements are in units specified by the Units property.
  2 Comments
skyimager
skyimager on 1 Jun 2012
How to allocate a specific location of the edit box in the workspace. Using subplot we allocate the position of each axes What to do for edit boxes. Also how to write data in these edit boxes.
per isakson
per isakson on 1 Jun 2012
You have to read the documentation yourself.

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!