Clear Handle

How to reset/clear Static Text in MATLAB GUI?

I've been searching about an hour for what I presume is one simple line of code. I'm making a simple calculator in Matlab's GUI feature and I have a "C" push button that I just want to have clear the text field (ie--someone types an 8 on accident and wants to clear the static text field back to a blank field). How the heck do I do this? Just reset the field back to its original blank state as your usual calculator on Windows appears.

So far I've tried things like clear(handles.text1), reset(handles.text1), etc... but to no avail.

You need to set the string property of the text object to an empty string.
Here's an example, put all of this in an M-File, save it then call example at the command line:

function [] = example
f = figure('pos',[100 100 100 50],'menub','n')
tx = uicontrol('sty','ed','stri','8','pos',...
[10 20 30 20],'backg',[1 1 1]);
bu = uicontrol('sty','pus','stri','C','pos',[50 20 30 20],...
'call',{@pushcall,tx})

function pushcall(h,e,tx)
set(tx,'stri','') % This clears the string in the edit box.

Find Clear Handle On eBay Below:

Vintage Heavy Cut Glass Scalloped Edge Creamer  Double Handled Sugar Bowl
Vintage Heavy Cut Glass Scalloped Edge Creamer Double Handled Sugar Bowl
$8.00
Vintage Cut Glass Start Saw Tooth Edge Single Handle Shallow Candy Nut Dish
Vintage Cut Glass Start Saw Tooth Edge Single Handle Shallow Candy Nut Dish
$4.00
Clear Glass Flower Basket with Handle and Ground Floral Decoration No Reserve
Clear Glass Flower Basket with Handle and Ground Floral Decoration No Reserve
$19.95
Cranberry Glass Fluted Rose Swirl Pitcher Clear Ribbed Handle Excellent Cond
Cranberry Glass Fluted Rose Swirl Pitcher Clear Ribbed Handle Excellent Cond
$15.95
Hand Made Aqua Art Glass Pitcher Applied Clear Handle Bubbles Smoothed Pontil
Hand Made Aqua Art Glass Pitcher Applied Clear Handle Bubbles Smoothed Pontil
$9.99
VINTAGE GLASS 2 Handled Dish
VINTAGE GLASS 2 Handled Dish
$5.00
Vintage Ruby Red Crystal Water Or Beverage Pitcher Clear Bottom And Handle
Vintage Ruby Red Crystal Water Or Beverage Pitcher Clear Bottom And Handle
$42.49
Older Clear Heisey Glass Colonial Panel Nappy Thumbhole Handle
Older Clear Heisey Glass Colonial Panel Nappy Thumbhole Handle
$6.00
Vintage Heisey Narrow Flute Clear 5 Tall Pitcher w square handles
Vintage Heisey Narrow Flute Clear 5 Tall Pitcher w square handles
$16.99
Older Clear 5 Square Glass Footed Handled Candy Nut Bowl Fancy Handles
Older Clear 5 Square Glass Footed Handled Candy Nut Bowl Fancy Handles
$5.00
Vintage Indiana Glass Tab Handled Plates Pretzel Pattern Clear 6 1 4 Set of 2
Vintage Indiana Glass Tab Handled Plates Pretzel Pattern Clear 6 1 4 Set of 2
$3.41
Vintage Fenton Opalescent Hobnail Heart Shaped Handle Candy Dish 7
Vintage Fenton Opalescent Hobnail Heart Shaped Handle Candy Dish 7
$18.00
EAPG HEXAGON RUBY STAINED GLASS HANDLED SPOONER by Duncan 4  Tall
EAPG HEXAGON RUBY STAINED GLASS HANDLED SPOONER by Duncan 4 Tall
$5.99
Vtg Murano Art Glass Basket Vase Hand Blown W Handle Red Swirled Clear Glass
Vtg Murano Art Glass Basket Vase Hand Blown W Handle Red Swirled Clear Glass
$20.00
Vintage Indiana Glass Square Diamond Point Ruffled Clear Plate Dish 7 w handle
Vintage Indiana Glass Square Diamond Point Ruffled Clear Plate Dish 7 w handle
$7.93
Vintage Glasbake Jadite Green Lug Handle Soup Chili Bowl  Clear Glass Lid
Vintage Glasbake Jadite Green Lug Handle Soup Chili Bowl Clear Glass Lid
$5.00
Depression Etched Clear Glass Water Pitcher w Handle J
Depression Etched Clear Glass Water Pitcher w Handle J
$8.95
Vintage Elegant Clear Glass Panelled Scalloped Edge Shell Handled Basket J
Vintage Elegant Clear Glass Panelled Scalloped Edge Shell Handled Basket J
$5.95
Depression Etched Clear Glass Water Pitcher with Handle J
Depression Etched Clear Glass Water Pitcher with Handle J
$8.95
Vintage Clear Glass Panelled Scalloped Edge Shell Handled Basket J
Vintage Clear Glass Panelled Scalloped Edge Shell Handled Basket J
$9.95
PYREX P 14 C CLEAR GLASS LID REPLACEMENT FOR 2 HANDLED CORNING WARE GRAB IT BOWL
PYREX P 14 C CLEAR GLASS LID REPLACEMENT FOR 2 HANDLED CORNING WARE GRAB IT BOWL
$4.69
Vintage Heisey Narrow Flute Clear Small Handled Round 625 diameter Tray
Vintage Heisey Narrow Flute Clear Small Handled Round 625 diameter Tray
$11.99
VINTAGE GLASS JUICE PITCHER WITH LIDCLEAR GLASS PITCHER HANDLE AND SPOUT LID
VINTAGE GLASS JUICE PITCHER WITH LIDCLEAR GLASS PITCHER HANDLE AND SPOUT LID
$5.99
Large Vintage Clear Glass Pedestal Style Compote with Handles and Dome Lid
Large Vintage Clear Glass Pedestal Style Compote with Handles and Dome Lid
$25.65
Vintage Clear Pink Depression Glass Bowl with Handles 11x 8 x 3
Vintage Clear Pink Depression Glass Bowl with Handles 11x 8 x 3
$25.00
Large 13 1 4 X 11 1 4 Ground Base Imperial Candlewick Handled Platter
Large 13 1 4 X 11 1 4 Ground Base Imperial Candlewick Handled Platter
$28.95
VINTAGE Fire King Hot Plate Shell Handles 10x2 Clear Ribbed Raised USA
VINTAGE Fire King Hot Plate Shell Handles 10x2 Clear Ribbed Raised USA
$4.99
Lead Crystal Sugar Bowl Hand Cut Daisy  other designs Vintage with Handles 906
Lead Crystal Sugar Bowl Hand Cut Daisy other designs Vintage with Handles 906
$7.90
American Brilliant Cut Glass 6 wide Dish With Handles
American Brilliant Cut Glass 6 wide Dish With Handles
$9.99
Vintage Cut Glass Star or Sunflower Design Condiment or Candy Dish w Handles
Vintage Cut Glass Star or Sunflower Design Condiment or Candy Dish w Handles
$12.00
Fostoria Crystal Server Floral  Lattice Pattern Candy Cane Handle
Fostoria Crystal Server Floral Lattice Pattern Candy Cane Handle
$20.00
AMERICAN FOSTORIA CREAMER Handle 2 3 4 in Tall Vintage
AMERICAN FOSTORIA CREAMER Handle 2 3 4 in Tall Vintage
$9.99
AMERICAN FOSTORIA CREAMER Handle 4 in Tall Vintage
AMERICAN FOSTORIA CREAMER Handle 4 in Tall Vintage
$9.99
VINTAGE PYREX ROUND CASSEROLE BOWL 2 HANDLES CLEAR W EMBOSSED DESIGN 096 696
VINTAGE PYREX ROUND CASSEROLE BOWL 2 HANDLES CLEAR W EMBOSSED DESIGN 096 696
$4.00
ABP American Brilliant cut glass pitcher zipper cut lip cut  applied handle
ABP American Brilliant cut glass pitcher zipper cut lip cut applied handle
$69.42
GEORGEOUS DESIGNS China RED Art Glass Vase CLEAR Glass Applied Handle
GEORGEOUS DESIGNS China RED Art Glass Vase CLEAR Glass Applied Handle
$7.95
Beautiful Heavy Clear Glass Divided Tray w Handles Etched Grapes
Beautiful Heavy Clear Glass Divided Tray w Handles Etched Grapes
$20.00
Fostoria Coin Glass Nappy Eagle Torch Handle Clear Glass Dish
Fostoria Coin Glass Nappy Eagle Torch Handle Clear Glass Dish
$12.00
Anchor 9 x 13 Backing Dish With Handles Clear Glass
Anchor 9 x 13 Backing Dish With Handles Clear Glass
$19.99
Vintage Pyrex 2 Cup Glass Measuring Cup Red Letters Closed D Handle No 516
Vintage Pyrex 2 Cup Glass Measuring Cup Red Letters Closed D Handle No 516
$19.99


Recently Purchased Clear Handle:


teal blue aqua hobnail water pitcher clear applied handle large 9, carnival glass open handled sugar bowl marigold, duncan amp; miller teardrop clear stem 5301301 4 handled bon bon dish 5580435, cornflower beautiful pair of vintage clear glass candleholders with handles, anchor hocking clear 9 pie plate with handles 1 qt usa 3, glass purple pitcher hand blown applied clear handle, antique eapg tall pitcher w applied handle eapg pattern glass 18501910, antique vintage relish ladies dresser tray fancy handled oval clear glass 8, pyrex fluted edge 229 clear glass 95 deep dish pie plate handles 24cm, amazing cobalt blue hand cut to clear crystal candy dish basket w handle mint, pyrex corning lid replacement l 21 c glass clear fin handle arched tab 7 58 euc, 50s hostess tableservice reticulated silver handle caddy cut fitted glassdishes, elegant cobalt blue glass basket clear handle , anchor hocking glass clear tab handled old cafe 8 candy dish low bowl, vintage pyrex stainless steel band amp; handle 4 6 cup coffee tea pot 7756, vintage handblown ruby red crackle glass pitcher applied clear handle excellent, pyrex clear baking dish with open handles 7 x11 2 qt c232 with free shipping, pyrex clear baking dish with open handles 9 x13 3 qt c233 free shipping, pyrex clear baking dish with open handles 8 x 8 2 qt c222, 2 everyday plates clear glass green tint 10 whandles pie plate , pyrex 8 18 cm clear glass pie plate dish 207 handles flat rim, duncan amp; miller teardrop sweetmeat serving plate with heart handle mfg 19361955, ruffled top frosted glass pitcher enamel painted applied handle vintage, fostoria american clear 3 handled bowl s2522520g2, vintage fenton styled cranberry glass basket with clear handle 11 tall, vintage pressed glass refrigerator pitcher handle red stopper lid heavy, vintage clear nut or candy dish bowl with 2 handle cylinder shape, vintage round shaped glass relish dish with a curved divider clear handles, vtg cranberry glass pitcher hand blown clear handle ribbed optic syrup milkmint, fostoria american dish plate tray 2 turned up curved handles vintage, set of 3 princess house etched crystal irish coffee mugs w pedestal and handle , antique souvenir eapg 3 handle mug u s glass illinois pattern poughkeepsie ny, large vintage purple glass pitcher clear applied glass handle beautiful, 6 vintage handle hook clear shot glasses l, vintage candlewick dual handle serving bowl 7 disc 19361956, cambridge rose point clear handled cake plate s4045323g2, vintage cranberry red clear handle glass creamer w ruffled edge, fostoria navarre clear baroque handled sauce boat 6745658, unbranded small amber hand blown glass pitchervase with clear applied handle, cobalt blue fenton art glass trophy vase with clear applied handles rare, federal indiana glass clear windsor 2 part tab handled relish dish bowl tray, ruffled bowl basket with handle clear glass excellent condition, vintage anchor hocking clear glass wood barrel design wire handle j, 285 8 14 inch clear glass pyrex cake dish pan with tab handles, beautiful cranberry art glass pitcher wapplied clear glass ribbed handle, vintage clear glass candy dish with handles, orrefors crystal prelude pitcher applied handle 7 12 made in sweden , vintage fostoria century pattern glass creamer amp; double handled sugar, vintage anchor hocking heavy glass ice bucket whandle 1940s wood barrel design, art glass jug mid century aqua green flat bottle clear rope twist, round glass casserole dish with handles, pyrex 229 round fluted pie plate with handles, glass twohandled cakepastry plate, 2 clear glass cruets whandle spout amp; corks l258, vintage heavy glass ice bucket tab handles paneled walls crystal clear , miniature colbalt blue hand blown paneled creamer pitcher applied clear handle, depression glass indiana glass pineapple and floral 11 closed handle platter, unique vintage green olive glass tall pitcher clear handle stem water 11, unknown maker large clear glass open sugar dish 2 handles vintage, vintage anchor hocking clear glass gravy sauce boat handle 10oz , distinctive amber crackled glass pitcher with clear handle, clear glass hobnail serving dish with gold edging and handles 8, vintage handled clear glass bowl, vintage 4 pilgrim cranberry red glass creamerpitcher wclear applied handle, amici cobalt blue vase clear handles bubble 512tall 558 across with sticker, twos company blown thin art glass double handled bowls condimentsaucehobnail, cut glass pitcher star amp; flower applied handle 1 12 quarts, relish dish clear indiana glass honeycomb pat handles, vintage federal glass co clear mug handled creamers 2 creamers ex cond, vintage fenton cranberryruby solid coin dot cruet ruffled lip w clear handle , vtg handmade clear art glass small bucket glass handle lenox vase glass pitcher, imperial glass candlewick clear 6 handled heart shaped bowl excellent cond, pyrex fluted edge 229 clear glass 10 deep dish pie plate handles , vintage clear cut crystal floral daisy single handled 5 34 nappy, vintage etched crystal glass floral design handled small bowl, clear hand blown barware glass pitcher with applied handle unique design , american fostoria 8 12 handled serving bowl, large hand blown glass pitcher blue swirl applied handle pontil lots of bubbles, glass sugar bowl diamond pattern clear glass with handles vintage heavy glass, vintage pyrex 229 10 flutededge glass pie plate with handles, vintage cut glass round dish with flower design and handle saw tooth rim, ruby glass cut to clear with chrome handle replacement lid, small pilgrim cranberry glass pitcher with clear handle, pyrex coffeetea pot 7824b black handle , cranberry coin dot optic fenton art glass w clear handle vintage mint, vintage fire king casserole clear glass 8 round baking dish 450 handled used, 8 clear pyrex pie pan with handles 207, vintage anchor hocking wexford ice bucket handle cover and tongs, miniature art glass ruffled mint basket with handle clear crest, vintage french st louis crystal glass wine liquor decanter whandlelk, fostoria amber frosted coin glass nappy with handle 1372499 , pyrex 215 deep glass baking pandish clear 9 x 5w 3 14 whandle 10 12, westmoreland della robbia handled heart shaped nappy clearstain 7 d 19281940, duncan amp; miller teardrop 13 4 handled tray platter 19361955, exquisite diamond patterned weighted clear glass handled pitcher, pyrex 4 cup flameware 7754 stainless steel band amp; 77h handle replacement part , pyrex 89 cup flameware 7759h stainless band amp; 7759 handle replacement part



Comments are closed.