Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create components at run time

Status
Not open for further replies.

kollurulp

Mechanical
Apr 2, 2004
12
Does anyone know how to create components like textboxes, labels at runtime and add to the form. If at all created then how to access each component. I need to create them at runtime because if i plot one curve then i have to show the details of that single curve and if i display more then i have to disaply the details of each curve. If u know abt this r do u know some site where i can get help regarding this reply me.
 
Replies continue below

Recommended for you

Use the 'uicontrol' command.
Something like this...
Code:
h = uicontrol('Style', 'pushbutton', 'String', 'Clear',...
    'Position', [20 150 100 70], 'Callback', 'cla');
Read the help text for more information on the properties available.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor