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:

Anchor Hocking Cross and Olive glass 9 Handled Divided Server original Label
Anchor Hocking Cross and Olive glass 9 Handled Divided Server original Label
$27.00
Vintage Sugar Bowls Clear Glass Unique Patterns Lot of 2 Handled Good Condition
Vintage Sugar Bowls Clear Glass Unique Patterns Lot of 2 Handled Good Condition
$15.42
DESIGN RUBY RED ART GLASS SQUARE VASE WITH CLEAR HANDLES 12 TALL
DESIGN RUBY RED ART GLASS SQUARE VASE WITH CLEAR HANDLES 12 TALL
$19.99
Princess House Set 4 Handle etched flower Mugs 6 inch tall ped bottom
Princess House Set 4 Handle etched flower Mugs 6 inch tall ped bottom
$14.99
Imperial Glass Candlewick Candleholder Pair with Handles Elegant
Imperial Glass Candlewick Candleholder Pair with Handles Elegant
$16.99
Federal Glass PETAL amber Round Nut Bowl 10 w Center Handle pedestal base
Federal Glass PETAL amber Round Nut Bowl 10 w Center Handle pedestal base
$15.00
White Milk Glass Silver Crest Heart Shaped Clear Handle Candy Relish Dish
White Milk Glass Silver Crest Heart Shaped Clear Handle Candy Relish Dish
$9.95
Fostoria Sunray 2 Handled Tray
Fostoria Sunray 2 Handled Tray
$12.00
Hazel Atlas Beehive Pattern 2 Handled Bowl
Hazel Atlas Beehive Pattern 2 Handled Bowl
$12.00
L E Smith Small Heart Handled Tidbit Tray With Wheel Cutting
L E Smith Small Heart Handled Tidbit Tray With Wheel Cutting
$24.00
Cranberry Ruffled Edge Swirl 9  Vase w Applied Clear Handles Fenton Free Ship
Cranberry Ruffled Edge Swirl 9 Vase w Applied Clear Handles Fenton Free Ship
$80.36
Jeannette Clear Glass Two Handled Plate National Pattern Very Good Condition
Jeannette Clear Glass Two Handled Plate National Pattern Very Good Condition
$7.95
KOSTA BODA CRYSTAL HANDLED BOWL WITH ETCHED BIRD SIGNED  DATED 1996
KOSTA BODA CRYSTAL HANDLED BOWL WITH ETCHED BIRD SIGNED DATED 1996
$79.99
American Eagle  Shield Clear Cut Glass Cup Mug Applied Handle Etched Patriotic
American Eagle Shield Clear Cut Glass Cup Mug Applied Handle Etched Patriotic
$6.50
Imperial Glass Candlewick Clear 3400 Wafer Tray with Center Handle
Imperial Glass Candlewick Clear 3400 Wafer Tray with Center Handle
$6.99
Imperial Glass Candlewick Clear 3400 Handled Plate
Imperial Glass Candlewick Clear 3400 Handled Plate
$7.49
Imperial Glass Candlewick Clear 3400 Handled Bowl
Imperial Glass Candlewick Clear 3400 Handled Bowl
$18.99
Vintage Clear Glass 2 Piece Juicer Reamer Bowl with Handle  Spout Nice
Vintage Clear Glass 2 Piece Juicer Reamer Bowl with Handle Spout Nice
$9.95
Set of 4 Vintage Clear Glass Diamond Cut Handled Dishes
Set of 4 Vintage Clear Glass Diamond Cut Handled Dishes
$8.04
Fenton 4 3 4 Paneled Basket Cranberry w Clear Handle
Fenton 4 3 4 Paneled Basket Cranberry w Clear Handle
$10.50
Vintage Large Cut Glass Handled Nappy Dish Kaleidoscopic Imperial Nucut Footed
Vintage Large Cut Glass Handled Nappy Dish Kaleidoscopic Imperial Nucut Footed
$29.99
Pilgrim Cranberry Crackle Glass Basket with Clear Handle Excellent Condition
Pilgrim Cranberry Crackle Glass Basket with Clear Handle Excellent Condition
$30.00
VINTAGE FENTON ART GLASS CRANBERRY CREAMER PITCHER 3 1 2 CLEAR GROOVED HANDLE
VINTAGE FENTON ART GLASS CRANBERRY CREAMER PITCHER 3 1 2 CLEAR GROOVED HANDLE
$14.99
Cambridge EVERGLADE SUGAR BOWL FERN PETAL 2 Handled CLEAR RARE VGC
Cambridge EVERGLADE SUGAR BOWL FERN PETAL 2 Handled CLEAR RARE VGC
$29.99
Set of 8 Pressed Clear Glass Punch Cups 2 1 2 x 3 Handle
Set of 8 Pressed Clear Glass Punch Cups 2 1 2 x 3 Handle
$18.95
Vintage Heavy Crystal Glass Serving Bowl with Handle 8
Vintage Heavy Crystal Glass Serving Bowl with Handle 8
$16.99
Pilgrim Hand blown Swirl Cranberry Red Glass Pitcher w clear Handle 1960s
Pilgrim Hand blown Swirl Cranberry Red Glass Pitcher w clear Handle 1960s
$34.00
1940s FENTON Blue Opalescent Coin Dot Basket With Clear Crimped Handle
1940s FENTON Blue Opalescent Coin Dot Basket With Clear Crimped Handle
$95.00
VTG Pyrex Flame ware Sauce Pan Detachable Handle Blue Clear Glass MID CENTURY
VTG Pyrex Flame ware Sauce Pan Detachable Handle Blue Clear Glass MID CENTURY
$20.99
Pyrex A 9 C Replacement Lid 8x8 Casserole Dish LARGE KNOB HANDLE
Pyrex A 9 C Replacement Lid 8x8 Casserole Dish LARGE KNOB HANDLE
$11.99
VTG CRYSTAL Imperial candlewick pitcher handle GLASS MILK CREAMER Antique Gravy
VTG CRYSTAL Imperial candlewick pitcher handle GLASS MILK CREAMER Antique Gravy
$20.99
Imperial Candlewick Clear Beaded 2 Handled Plate Tray 9 3 4
Imperial Candlewick Clear Beaded 2 Handled Plate Tray 9 3 4
$16.19
Vintage Clear Glass Basket with Handle Art Deco Style in Excellent Condition
Vintage Clear Glass Basket with Handle Art Deco Style in Excellent Condition
$15.30
EAPG handled TOOTHPICK loving cup US Glass MINNESOTA States pattern 1898
EAPG handled TOOTHPICK loving cup US Glass MINNESOTA States pattern 1898
$7.00
EAPG handled TOOTHPICK holder US Glass PENNYLVANIA States pattern 1897
EAPG handled TOOTHPICK holder US Glass PENNYLVANIA States pattern 1897
$7.00
Vintage Pressed Glass Brides BASKET Fruit Candy Weave Design Ribbed Handle HEAVY
Vintage Pressed Glass Brides BASKET Fruit Candy Weave Design Ribbed Handle HEAVY
$32.81
Vintage Clear Cut Glass Candy Jar Dish w Handle  Big Top Design 2 pc
Vintage Clear Cut Glass Candy Jar Dish w Handle Big Top Design 2 pc
$13.95
Vintage Jeannette Clear National 8 Tray With Handles
Vintage Jeannette Clear National 8 Tray With Handles
$12.95
Vintage Cut Glass Basket with Metal Handle Really Beautiful
Vintage Cut Glass Basket with Metal Handle Really Beautiful
$15.00
Pretty Cranberry Martini or Cocktail Pitcher with Clear Handle Excellent
Pretty Cranberry Martini or Cocktail Pitcher with Clear Handle Excellent
$21.99


Recently Purchased Clear Handle:


new martinsvilleviking prelude 2 handled 85 clear plate elegant glass , antique cheese shredder glass bottle with handle and grating lid collectible, gral tall 11 12 inch pinkfusia art glass pitcher with clear applied handle, vintage corning brand coffee carafe copper warmer stand handle amp; lid heat proof, vintage fostoria navarre ice bucket with metal handle elegant, pyrex set of 4 clear red letter measuring cups open handle 1248 cups, pyrex 2 cup measuring cup blue print 16 oz 5160 open handle , mikasa rousseau silver plate crystal handle 11 serving fork and cake server , 7 vintage glass clear coffee tea expresso demi cups punch cups w handles 4 oz, vtg retro glasbake loaf meatloaf bread clear glass pan domed wing handle lid 2pc, amberina hobnail glass bon bon bowl hat with clear handle kanawha, cut crystal glass scalloped basket with birds amp; silver plated handle decor 6x4, kig glass clear frosted satin tray bowl handled footed floral rose, b5 blown glass art vase w2 handle cream coffee amp; brown amp; clear glass 1325 , vintage smith glass clear tiny hobnail dewdrop tall footed vase w handles 650, vintage pressed glass 712 rectangular relish tray dish with handles, vintage green blown art glass pursebag with clear glass handles, smith clear pressed art glass star amp; panel crimped rim flower handle basket, sauce or condiment bowl candle ring handle spout scallop edge pressed glass, butterfly flower etched cut clear glass candy bowl mint dish finger ring handle, flower etched cut clear glass snack dessert serving plate center handle 4 x 10, elegant imperial crystal candlewick 13 oval serving tray with open handles ec, imperial glass monticello waffle block clear basket 10 twisted applied handl, 2 clear glass pitchers with solid glass handles and solid glass handles , fostoria american crystal12 sandwich tray wcenter handle , crystal clear glass pitcher 24 lead crystal 10 applied handle diamonds fans, vtg hazel atlas clear glass flower divided nut candy relish dish cut out handle, pair of bodum red handled clear glass teacoffee mug glasses 4 34 high 10 oz, vintage art deco pressed clear glass footed square luncheon plate w handles tabs, vintage fenton silver crest basket with clear handle, vintage serving trap platter glass candlewick boopie heart handle 12, vintagefostoriaamericanrareservingbowlwithhandleselegantartglass, fostoria american clear 9 inch round handled utility serving bowl, vtg l e smith daisy amp; button eapg 2 handle glass urn toothpick holder, vintage le smith glass red ruffled glass basket clear handle simplicity, vintage pedestal lidded candy dish with flame handle 6 estate item heavy, vintage hand blown art glass green crackle glass mini pitcher with clear handle, indiana glass 4 clear crystal ice handled 15 ounce mugs tankards, indiana glass clear pyramid art deco handled 4 part relish dish tray, eapg daisy amp; button creamer sugar set clear glass fan handle pedestal, fostoria 7 12 dual handeled round serving bowl 9 12 with handles, set of 7 indiana glass clear royal drape 7 ounce hook handle punch cups, beautiful set of 6 cut floral clear glass handled 1 ounce shooter shot glasses , vintage depression glass clear flower amp; leaves 2 handled serving platter, vintage tall clear glass pitcher painted grapes amp; unique applied handle rare, vintage clear opalescent glass set hobnail creamer sugar whandles white blue, vintage hand blown cranberry glass small pitcher or vase applied clear handle, vintage bowl clear pressed cut glass etched daisy flower whandles, hand blown vintage cranberry glass small pitcher or vase applied clear handle, gorgeous vintage indiana glass clear sandwich center handled tray, viking glass green epic basket clear applied handle 7 x 8 double crimped, clear pyrex 1 cup 8 ounce 250 mll glass measuring cup handle and pour spout, viking glass red epic basket clear applied handle 7 x 75 double crimped, clear pyrex 2 cup 1 pint 12 liter glass measuring cup handle and pour spout, hand blown vintage cranberry glass small pitcher or vase clear applied handle, vintage heisey round colonial clear handled basket with etched acanthus, fancy glass decanter for coffee water etc metal top amp; handle, antique glass nappy dish finger loop handled sawtooth top edge, vintage covetro square glass pitchers 2 wlids amp; handles italy 36oz 9 high, vintage viking green art glass basket w applied clear sunburst handle 7 1950s, 1940s anchor hocking tab handled bowl beads amp; bars oyster pearl, beautiful 13 12 curved handled ladle clear bowl wpurple handle, 8 vintage imperiaal glass candy dishplatter with handle depression era, vintage fostoria american rare serving bowl with handles elegant art glass , gilded cranberry pitcher with clear handle, vintage fostoria american rare serving bowl with handles elegant art glass 2, vintage cranberry textured glass hexagonal mini pitcherapplied clear handlewow, vintage hand blown amber glass milk pitcher clear applied handle curio glassware, beautiful cut glass 2handled sugar bowl star design indented bubbleshandles, vintage collectible etched glass relish plate candy dish w handles table decor, stunning whitefriars ruby red art glass jug with clear glass celery handle , whitefriars glass kingfisher blue jug with applied clear glass celery handle, 4 arcoroc france crystal clear 9 oz embossed lotus flower glass mugs with handle, arcoroc france crystal clear 9 oz embossed lotus flower glass mug with handle, 2 arcoroc france crystal clear 9 oz embossed lotus flower glass mugs with handle, indiana glass clear textured pretzel single handle cheese 7 38 plate saucer, vintage fireking clear glass trivet hot plate holder 2 handles, vintage hocking glass waterfordwaffle tray with handles 19381944 15, eapg antique celery spooner vase crystal clear glass 2 handled scalloped edge, pyrex clear glass round oven bakeware with handle model 601 b, replacement princess house carafe coffee pot w brass top handle carafe only, imperial candlewick two handle cream soup 40050, imperial candlewick center handled mint tray 400149d, red crackle glass pitcher small with clear handle, hand blown pitcher clear with amethyst handle and glass stirring stick, vintage glass juicer reamer handle spout clear footed base heavy , imperial candlewick 400113b open handle bowl, toscany clear double handle honeymoon glass champagne wine ice bucket hand blown, fenton cranberry opalescent hobnail clear handled pitcher vintage collectible, eapg clear gaelic handled milk pitcher, baskets split handle art glass clear crystal checked base x2 green x1 murano, new vintage large clear glass juicer reamer tab handle spout ribbed footed nos , amber brown art glass large basket clear handle hand blown , jeanette cube cubist clear serving bowl with handles, antique forest green art glass pitcher clear handle ruffled folded rim coin dot, fostoria american clear oval divided relish gondola dish whandles vintage nice, clear etched depression glass handle cake platter preowned



Comments are closed.