Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Apr 2, 2004
Messages
12
Location
DE
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.
 
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

Back
Top