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 Red Crackle Glass Mini Pitcher Clear Handle 45 inches
Vintage Red Crackle Glass Mini Pitcher Clear Handle 45 inches
$8.50
Unique Hand Blown Clear Glass Vase W Handles Must See
Unique Hand Blown Clear Glass Vase W Handles Must See
$12.99
GLASBAKE 506 8 DIAMETER REPLACEMENT CLEAR GLASS PIE PAN STYLE LID w HANDLES
GLASBAKE 506 8 DIAMETER REPLACEMENT CLEAR GLASS PIE PAN STYLE LID w HANDLES
$6.99
VINTAGE NEAR CUT BISCUIT HANDLED JAR INVERTED FEATHER PATTERN 7 1 2 TALL
VINTAGE NEAR CUT BISCUIT HANDLED JAR INVERTED FEATHER PATTERN 7 1 2 TALL
$55.00
Three Compartment Clear Pressed Glass Relish Candy Dish with Three Handles
Three Compartment Clear Pressed Glass Relish Candy Dish with Three Handles
$6.99
Clear Pressed Glsss Hexagon Dish 2 Scroll Handles Scalloped Edge Bubble Ribs
Clear Pressed Glsss Hexagon Dish 2 Scroll Handles Scalloped Edge Bubble Ribs
$9.99
NIB Marquis by Waterford Brookside 7 Pitcher w Handle
NIB Marquis by Waterford Brookside 7 Pitcher w Handle
$39.99
11 3 8 Oval Pressed Clear Glass 3 Section Relish Dish Diamond Design Fan Handle
11 3 8 Oval Pressed Clear Glass 3 Section Relish Dish Diamond Design Fan Handle
$4.99
Vintage Fenton Red Glass Clear Handle Basket
Vintage Fenton Red Glass Clear Handle Basket
$20.00
Glass basket with twisted handle
Glass basket with twisted handle
$12.00
5 Cobalt Blue FENTON GLASS PITCHER with Clear ribbed Handle Vintage Collectible
5 Cobalt Blue FENTON GLASS PITCHER with Clear ribbed Handle Vintage Collectible
$35.00
Luminarc Clear Glass 3D Snowman with Snowflake Handle Mugs Set of 3
Luminarc Clear Glass 3D Snowman with Snowflake Handle Mugs Set of 3
$17.99
Vintage Green Glass Clear Handle Large Basket
Vintage Green Glass Clear Handle Large Basket
$45.00
VINTAGE CLEAR GLASS CANDY DISH TRAY ROUND CENTER HANDLE TRINKET DISH
VINTAGE CLEAR GLASS CANDY DISH TRAY ROUND CENTER HANDLE TRINKET DISH
$5.00
Fostoria Mid Century Modern Gold Tint Glass Ice Bucket w Hammered Alum Handle
Fostoria Mid Century Modern Gold Tint Glass Ice Bucket w Hammered Alum Handle
$10.00
VINTAGE UNMARKED CLEAR GLASS COMPOTE WITH TROPHY HANDLES UNUSUAL
VINTAGE UNMARKED CLEAR GLASS COMPOTE WITH TROPHY HANDLES UNUSUAL
$5.00
Pyrex 9 Vintage Tab handle Fluted Pie Pan Plate 228
Pyrex 9 Vintage Tab handle Fluted Pie Pan Plate 228
$19.47
Clear Crystal Cut pressed Glass EASTER BASKET vintage heavy 7 tall with handle
Clear Crystal Cut pressed Glass EASTER BASKET vintage heavy 7 tall with handle
$39.99
4 VINTAGE CLEAR WITH GREEN GLASS APPLIED HANDLE CUPS MUGS SET
4 VINTAGE CLEAR WITH GREEN GLASS APPLIED HANDLE CUPS MUGS SET
$5.00
Tiffany  Co Crystal Glass Ice Champagne Wine Bucket Scroll Handles Signed NEW
Tiffany Co Crystal Glass Ice Champagne Wine Bucket Scroll Handles Signed NEW
$49.99
1930s Depression Glass Iris Herringbone Two 2 Clear Handled Cups
1930s Depression Glass Iris Herringbone Two 2 Clear Handled Cups
$20.00
Iris Herringbone Crystal Sugar Bowl Handled Clear Depression Glass Jeannette
Iris Herringbone Crystal Sugar Bowl Handled Clear Depression Glass Jeannette
$19.99
Anchor Hocking Glass Clear Stars  Bars Handled 6 Olive Relish Bowl Nappy
Anchor Hocking Glass Clear Stars Bars Handled 6 Olive Relish Bowl Nappy
$8.99
VINTAGE CLEAR GLASS BOWL With Handles 5 3 4 WIDE 3 1 4 TALL
VINTAGE CLEAR GLASS BOWL With Handles 5 3 4 WIDE 3 1 4 TALL
$12.00
VINTAGE BRIDAL BASKET VASE WITH HANDLE CLEAR PRESSED PINWHEEL DESIGN GLASS 135
VINTAGE BRIDAL BASKET VASE WITH HANDLE CLEAR PRESSED PINWHEEL DESIGN GLASS 135
$49.95
Vintage American Fostoria Clear 12 Handled Boat Divided Relish Bowl
Vintage American Fostoria Clear 12 Handled Boat Divided Relish Bowl
$22.68
Vintage Clear Glass Divided Relish Tray Star Cut 6 x 8 Dble Handled
Vintage Clear Glass Divided Relish Tray Star Cut 6 x 8 Dble Handled
$3.07
Vintage Clear Glass Serving Bowl Pressed Oblong with Odd Handles
Vintage Clear Glass Serving Bowl Pressed Oblong with Odd Handles
$3.07
Vintage Clear Glass Diamond Double Handled Sugar Bowl Dish 35 x 225
Vintage Clear Glass Diamond Double Handled Sugar Bowl Dish 35 x 225
$2.49
Vintage Clear Glass Handled Candy Nut Dish Scalloped Star 6
Vintage Clear Glass Handled Candy Nut Dish Scalloped Star 6
$3.07
Vintage American Fostoria Clear Handled 4 Round Nappy Bowl
Vintage American Fostoria Clear Handled 4 Round Nappy Bowl
$22.01
Older 2 pc Small Individual Glass Cream  Sugar Set Ribbed w Winged Handles
Older 2 pc Small Individual Glass Cream Sugar Set Ribbed w Winged Handles
$3.00
Vintage Heavy Clear Cut Glass Pressed Glass Creamer Bowl w Handle
Vintage Heavy Clear Cut Glass Pressed Glass Creamer Bowl w Handle
$6.00
Cobalt Blue Glass Extended Neck Pitcher with Clear Glass Handle 75 H
Cobalt Blue Glass Extended Neck Pitcher with Clear Glass Handle 75 H
$9.95
EAPG Ripley  Co 18 SHELL HANDLED Footed Round Butter Dish w Wheel Cutting
EAPG Ripley Co 18 SHELL HANDLED Footed Round Butter Dish w Wheel Cutting
$40.00
Cambridge Glass ROSE POINT Clear Etched Handled BonBon Bowl Cream
Cambridge Glass ROSE POINT Clear Etched Handled BonBon Bowl Cream
$24.99
Corning Ware 10 Skillet Yellow Gold B 10 B Handles Unused Pyrex Clear Glass Lid
Corning Ware 10 Skillet Yellow Gold B 10 B Handles Unused Pyrex Clear Glass Lid
$24.99
Cranberry Art Glass Pitcher Vase w Applied Clear Handle and 5 hobnail glasses
Cranberry Art Glass Pitcher Vase w Applied Clear Handle and 5 hobnail glasses
$40.00
Fire King Clear Glass Trivet Hot Plate Casserole Top with Tab Handles
Fire King Clear Glass Trivet Hot Plate Casserole Top with Tab Handles
$11.19
Vintage Glass Hand blown Pitcher Vase green w clear handle pontil bottom
Vintage Glass Hand blown Pitcher Vase green w clear handle pontil bottom
$12.60


Recently Purchased Clear Handle:


vintage pyrex flameware skillet fry pan pot with handle, fenton basket twisted handle , vintage blue glass cruet bottle with applied clear handle and stopper dot optic, wavy candlewick floral silver overlay candy dish w handles elegant, vintage clear glass citrus reamer juicer with spout and handle dish, vintage clear glass relish candy dish with handles, vintage fenton white milk glass spanish lace ruffled edge basket clear handle, diamond cut platter 2 handled pressed glass, imperial glass ohio candlewick clear bon bon card tray upturned handles, ornate lided glass compote womans head handle and trim, fostoria american clear footed c handled flared rim punch bowl cups 4, vtg clear glass citrus reamer with wide spout and handle 2 12x812, sleek orrefors crystal ice bucket with handleheavy, cranberry pilgrim glass small pitcher w clear applied handle amp; petal feet, vintage clear glass dish w hand blown handle, lot of 2 duncan amp; miller etched brides baskets 5 12 inch braided handles nice, vintage clear glass covered candy dish jar golden handle , vintage depression glass sugar and creamer clear double handled sugar bowl, fire king 1 12 quart clear glass bowl with metal base amp; lid 8 inch w handles , pyrex 229 pie plate fluted edge clear glass 10 deep dish pie platehandles, vintage ruby red blown glass pitcher with clear ribbed handle , vintage dugan marigold carnival glass leaf rays candy dish with clear handle, tiffany amp; company scroll handled ice bucketchampagne chiller, clear glass handled salt seller dish p4, anchor hocking fire king 112 qt round clear glass casserole w lidhandled, vtg low clear glass bowlgold trimrose embossedhandlesscalloped, cambridge rose point clear 340090 shape 2 part handled relish dish 7035545, vtg floral rose glass coasters w delicate handles, nice vintage etched clear pink glass serving platter heart shaped handle, bohemia glass wine decanter and matching water pitcher blue handle , vintage imperial glass candlewick round dish 7 14 dividedhandled candy , anchor hocking 9 fluted clear glass pie platepan w grip handles, vintage pilgrim cranberry glass mini pitcher with clear glass handle 418 h , quilted cased satin glass basket with clear satin glass handle circa 1880, vintage set of two glass double handle sugar bowls, vintage fenton milk glass candy dishclear ruffled edgeattached handle8across, vintage clear wcobalt blue handle amp; stopper oil cruet, cut glass 3 sections all purpose candy nut condiments serving dish with handle, pyrex glass clear with red letters measuring cup with open handle 516, vintage hazel atlas food nut chopper glass handled measuring cup wooden disc, 4 inch end of day spatter glass pitcher with clear applied handle and base, excellent cambridge rose point handled dish 6 12 across 5 deep 2 12 tall, rare vintage clear footed candy dish with bird design with a bird as top handle, pilgrim glass amber crackle glass pitcher clear handle, vtg eapg pressed glass pitcher pewter top w applied handle pontil mark vintage, 2 small clear pressed glass pedestal 2 handled pieces 4 12 x 2 x 2 12, original fostoria american reed braided handle basket, vintage indiana glass honeycomb pattern dish with handles clear glass , vintage genuine handblown cranberry glass by pilgrim bell 7 12 clear handle, vintage 1940s indiana glass clear wild rose platter plate w handles , beehive glass bowl with 3 tier handles, imperial glass ohio candlewick 3400 handled plates group of 2, pyrex clear baking dish with open handles 8 x 8 2 qt c222 , glassware sale duncan and miller first love etch tab handled serving bowl , indiana glass dewdrop pattern two handled crystal glass bowl cg115, vintage glass cracker tray dish antique clear double handled rare style pattern, lalique arras handled bread dresser tray frosted engraved 165 x 625 3919, old crystal lemon reamer hand formed handle twist design no reserve, vintage lesmith clear glass heartshaped handle tidbit nut candy dish tray, meadow rose mixed lotfostoriacreameropen sugarone handled nappycandlestick, christmas holiday mikasa crystal footed bowl with plastic handle candy nuts , heisey pitcher clear glass applied handled mint conditionnice, purple glass urn vase wdouble clear glass handles, pyrex de corning france casserole amp; lid round with handles 457 clear glass , pyrex de corning france casserole amp; lid with handles 453 round clear glass , vintage round clear pressed glass cake plate handles diamond pattern serving, vintage clear drinking glass with handle hand painted 4 h, vintage anchor hocking oyster amp; pearl clear handled divided relish tray, vtgindiana glasswild rose berriesclear2handlecake platedisplay traydish, vintage nukut oval relish dish 2 flower button design 9 handle, vintage pyrex flameware glass coffee pot with straight handle 6 cup 7 tall, pilgrim art glass hand blown green satin finish pitcher creamer clear handle, vintage pressed clear glass footed mug with handle flower design, white milk glass silver crest heart shaped clear handle candy relish dish, antique souvenir battle creek mi eapg 3 handled mug u s glass illinois pattern, fostoria glass american five part divided relish tray with handles, great christmas gift small clear glass plate diamond bottom glass handles, vintage art glass handblown with controlled bubbles clear jar with side handles, vintage heisey crystolite 1503 5003 bon bon snack dish whandles 7 fluoresces , vintage glass water tea refrigerator pitcher handle stopper lid arc, vintage diamond pattern ice bucket hammered aluminum handle amp; tongs, vintage elegant glass square handled dish 7l x 55w, vintage clear glass divided relish serving tray dish diamond pattern w handles, heisey no1469 12 ridgeleigh 2 handled bon bon, vtg jeannette glass baltimore pear clear handled art deco 75 butter dish only, pyrex 228 pie dish corning ware clear glass glassware quiche 2 handled scalloped, pyrex fluted edge 229 clear glass 10 deep dish pie plate handles, vintage pyrex round glass casserole replacement lid 684cd16 with handles, imperial candlewick handled basket 65 long, imperial glass candlewick divided relish or candy dish with tab handles, poland princess house handles lidded ice champagne bucket over 5 lbs , 16 ounce milk pitcher clear crystal ribbed handle star pattern sides , pyrex 9 cup coffee pot percolator 7759 replacement glass handle stainless ring, 2 antique early american clear pattern glass handled mugscups 3 14, small vintage clear floral etched glass open sugar w 2 ribbed handles ex cond, antique french style handle candy dish or petits four 6 x 234h pcgrhdl, clear depression glass anchor hocking manhattan large handled bowl 9 inch



Comments are closed.