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 YELLOW ART GLASS RUFFLE BASKET APPLIED CLEAR THORN HANDLE RED LINING
VINTAGE YELLOW ART GLASS RUFFLE BASKET APPLIED CLEAR THORN HANDLE RED LINING
$113.25
Antique EAPG McKee Quintec Pattern Crystal Glass Handled Basket RARE
Antique EAPG McKee Quintec Pattern Crystal Glass Handled Basket RARE
$69.99
Vintage Glassware 2 Clear Pressed Glass Condiment Dishes Handles
Vintage Glassware 2 Clear Pressed Glass Condiment Dishes Handles
$11.99
Early mug applied handle enameled
Early mug applied handle enameled
$12.00
Antique Glassware Krys tol Clear Glass Pedestal Compote Bowl Double Handles
Antique Glassware Krys tol Clear Glass Pedestal Compote Bowl Double Handles
$24.99
Lancaster Clear Depression Etched Glass Bowl with ornate Handles and Cane bottom
Lancaster Clear Depression Etched Glass Bowl with ornate Handles and Cane bottom
$5.75
IMPERIAL CANDLEWICK 13 Oval CELERY TRAY RELISH DISH w 2 Open Handles
IMPERIAL CANDLEWICK 13 Oval CELERY TRAY RELISH DISH w 2 Open Handles
$15.00
VINTAGE ETCHED CRYSTAL GLASS FLORAL DESIGN HANDLED SMALL BOWL
VINTAGE ETCHED CRYSTAL GLASS FLORAL DESIGN HANDLED SMALL BOWL
$9.99
Fostoria American Cake Plate with Two Handles Clear 9 1 2 x 11 1 2
Fostoria American Cake Plate with Two Handles Clear 9 1 2 x 11 1 2
$12.50
CRYSTAL GRAVY SAUCE BOAT PEDESTAL HANDLE PINWHEELS SCALLOPED
CRYSTAL GRAVY SAUCE BOAT PEDESTAL HANDLE PINWHEELS SCALLOPED
$18.00
Heisey Birthday Candlestick 31 Elegant Pressed Glass Clear Small Handle Vintage
Heisey Birthday Candlestick 31 Elegant Pressed Glass Clear Small Handle Vintage
$24.99
Vintage Clear Glass Relish Candy Dish Vanity Tray Nuts Mints Relish Fan Handled
Vintage Clear Glass Relish Candy Dish Vanity Tray Nuts Mints Relish Fan Handled
$0.99
Fostoria American Serving Bowl With Handles
Fostoria American Serving Bowl With Handles
$5.00
Vintage Clear Glass Handled Bowl
Vintage Clear Glass Handled Bowl
$5.00
Antique Vintage France SEVRES Crystal Ice Bucket with silver handle etched
Antique Vintage France SEVRES Crystal Ice Bucket with silver handle etched
$10.00
Anchor Hocking AH 1 Cup Measuring Clear Glass Red Anchor Emblem Open Handle
Anchor Hocking AH 1 Cup Measuring Clear Glass Red Anchor Emblem Open Handle
$16.95
Vintage Pyrex Clear 3 Quart 233 Casserole Lasagna Dish Pan With Handles
Vintage Pyrex Clear 3 Quart 233 Casserole Lasagna Dish Pan With Handles
$4.00
Tall cobalt glass pitcher with clear glass applied handle
Tall cobalt glass pitcher with clear glass applied handle
$14.99
Vintage Fostoria American Pattern 2056 Handled Sugar Bowl
Vintage Fostoria American Pattern 2056 Handled Sugar Bowl
$12.99
Vintage Bleikristall Byrdes Crystal Handled Basket By Hofbauer W Germany
Vintage Bleikristall Byrdes Crystal Handled Basket By Hofbauer W Germany
$9.00
9 5 8 Tall Cobalt Blue Vases w Fluted Top  Applied Clear Handles
9 5 8 Tall Cobalt Blue Vases w Fluted Top Applied Clear Handles
$58.00
Coin Glass Candy Dish Fostoria Clear Crystal Handled Nappy VINTAGE
Coin Glass Candy Dish Fostoria Clear Crystal Handled Nappy VINTAGE
$22.99
Mikasa Crystal Silent Night Basket w Handle Germany Santa w Sleigh
Mikasa Crystal Silent Night Basket w Handle Germany Santa w Sleigh
$0.50
FOSTORIA BAROQUE MEADOW ROSE TWO HANDLED BOWL
FOSTORIA BAROQUE MEADOW ROSE TWO HANDLED BOWL
$24.99
FOSTORIA AMERICAN CLEAR 9 HANDLED UTILITY TRAY BOWL
FOSTORIA AMERICAN CLEAR 9 HANDLED UTILITY TRAY BOWL
$24.99
Vintage Cobalt Blue  Clear Bubble Glass Applied Handle Margarita Style Pitcher
Vintage Cobalt Blue Clear Bubble Glass Applied Handle Margarita Style Pitcher
$29.99
Vintage Clear Cut Crystal 4 Part Relish Dish Candy Tray with Finger Handles
Vintage Clear Cut Crystal 4 Part Relish Dish Candy Tray with Finger Handles
$19.99
Vintage Clear Square Candy Nut With Round Star Poka Dot with Amber Handle
Vintage Clear Square Candy Nut With Round Star Poka Dot with Amber Handle
$0.99
Lof of 2 Baroque One Handled Flared Nappy in Navarre Clear by Fostoria
Lof of 2 Baroque One Handled Flared Nappy in Navarre Clear by Fostoria
$34.95
TORRE  TAGUS Pitcher GREEN White FROST SWIRL Pattern Clear HANDLE Round Shape
TORRE TAGUS Pitcher GREEN White FROST SWIRL Pattern Clear HANDLE Round Shape
$37.49
VINTAGE FOSTORIA AMERICAN PATTERN GLASS two handles oblong serving dish mint
VINTAGE FOSTORIA AMERICAN PATTERN GLASS two handles oblong serving dish mint
$9.99
VTG Tiffin Cambridge Heisey Handled Large Bowl With Gold Floral Decorations
VTG Tiffin Cambridge Heisey Handled Large Bowl With Gold Floral Decorations
$29.95
Fostoria HOLLY CLEAR Center Handle Tray 147252
Fostoria HOLLY CLEAR Center Handle Tray 147252
$31.99
Vintage Cut Clear Glass Ice Bucket With Silver Color Metal Handle
Vintage Cut Clear Glass Ice Bucket With Silver Color Metal Handle
$10.99
PILGRIM ART GLASS CRANBERRY SMALL PITCHER RIBBED CLEAR HANDLE 3 7 8 HIGH
PILGRIM ART GLASS CRANBERRY SMALL PITCHER RIBBED CLEAR HANDLE 3 7 8 HIGH
$6.99
FENTON  ART GLASS CRANBERRY PINK BASKET WITH GRAPE  IVY DESIGN  CLEAR HANDLE
FENTON ART GLASS CRANBERRY PINK BASKET WITH GRAPE IVY DESIGN CLEAR HANDLE
$27.99
Imperial CANDLEWICK Heart Handled Pastry Dish 11 3 4 inch
Imperial CANDLEWICK Heart Handled Pastry Dish 11 3 4 inch
$13.50
Imperial Glass Candlewick Clear Round Nappy with Handle 6 Inches
Imperial Glass Candlewick Clear Round Nappy with Handle 6 Inches
$9.99
Antique Clear Condiment Bowl With Handles
Antique Clear Condiment Bowl With Handles
$5.00
Vintage Clear Milky Opalescent Blue Glass Hobnail Small Dish Basket Bowl Handles
Vintage Clear Milky Opalescent Blue Glass Hobnail Small Dish Basket Bowl Handles
$9.95


Recently Purchased Clear Handle:


early vaseline glass serving dish beaded trim handled, pyrex a9c replacement lid 8x8 casserole dish large knob handle, vintage candy dish with handle clear glass and metal, clear eapg drink serving tray oyster hors doeuvres appetizer with handle, clear eapg narcissus spray single handle nappy nappies victorian 4 available, clear eapg narcissus spray 6 12 2 handle sugar bowl w lid biscuit cookie jar, clear eapg narcissus spray 5 creamer pitcher with handle victorian heavy, clear eapg narcissus spray large 8 14 pitcher with handle victorian heavy, vintage echt kristall red amp; clear glass dish whandles germany beautiful, clear crystal glass basket with handle candy bowl diamond design mint, vintage green art glass creamer with applied clear handle, 70s pilgrim olive green crackle glass pitcher clear drop over handle pontil base, vintage set of 7 libbey brown wclear handles tempo mugs tankard glasses, fostoria american oval dish w handle underplate, pitcher cranberry glass blown pitcher 5 ribbed clear handle vintage , vintage clear heavy glass drink caddy carrier plate with handle holds 6 glasses, 3 pyrex by corning 1 cup oval bowls dishes with handles excellent condition, vintage 8x5 clear glasbake loaf refrigerator dish covered lid only fin handle, vintage clear glass candy dish diamond cut pattern double handled bowl, anchor hocking 2 qt covered baking dish clear handled ovenware, vintage set of 5 casserole bowls lovenware usa clear amber brown w handles, rw robert william cobalt and clear heavy glass handled vase 525 tall wlabel, pyrex corning ny 508 a25 glass dhandle 8oz 1 cup metric measuring cup, elegant depression glasscobalt blue nappy wclear ribbed handle , large vintage clear fostoria american covd 2 handled sugar amp; creamer, fostoria glass clear american handled flared bowl nappy 5 14, cambridge caprice clear bon bon candy nuts bowl dish depression glass handled , gorgeous vintage clear glass 2 section serving dish with handlesd, vintage webb art glass handled serving tray signed webb england, art deco pressed cut glass handled fruit bowl centerpiece 1930s, vintage clear glass 6 juicer citrus reamer squeezer tab handle, pyrex lid aamp;c square glass knob handle 66, 1920s etched grape hefty pitcher 9 tall at spout applied handle ice spout, hand blown pedestal pitcher vase in blue with clear base and handle, vintage purple amethyst glass basket with clear handle, vintage gold floral pattern candy dish with clear decorative handles, antique cut glass bowl whandles cut yellow to clear cut glass large bowl, fabulous amethyst winged vase with clear applied handles, modern bold purple and white glass 8 pitcher wclear handle, 6 mikasa crystal old fashioned glasses and ice bucket with handle , lovely vintage fostoria american 3 point handled nappy excellent condition , vintage presseddepression cut glass mini creamer amp; double handled sugar bowl, pyrex fluted edge 229 clear glass 10 deep dish pie plate handles , rare small 1 qt vintage pyrex open handle at top clear glass pitcher mid century, vintage pyrex measuring cup; closed d handle; 2 cups;516 dv, set of 6 vintage hazel atlas clear glass boopie bead handle punch cups, vintage pyrex cake pan 221 8 14 round baking dish ovenware handles made in usa, fenton violets in the snow silvercrest basket clear handle signed lowell warden , l e smith small heart handled tidbit tray with wheel cutting, clear glass 6 cup batter bowl with handle and pour spout, clear depression glass flower handle fruit cake knives 4 set, clear etched floral glass dish with handles, vintage clear etched glass bowl whandles amp; 2 condiment dishes, anchor hocking center handle tray banded ringsclear amp; multicolored bands , 4vintage pyrex clear glass oval handled ramekinsmarked 4x 6, vintage fostoria american clear lg 3 pc set cream sugar handled tray mint, beautiful elegant clear glass star of david creamer amp; double handled open sugar, set of 2 vintage clear glass candy condiments bowls bubble design cute handles, vintage gold large hand blown glass pitcher 9 14 tall applied clear handle, reed and barton elegant lead crystal ice bucket chrome handle tulipe , antique clear glass cruet braided handle unmarkedmaker unknown excellentco, hand blown light green 10 tall glass purse vase with clear handles, vintage near cut biscuit handled jar inverted feather pattern 712 tall, pyrex lasagna trivet holder wicker carrier leather handle dish basket 233n 233n, 8 12 vintage clear glass handled candy cookie cake dish etched design, elegant cobalt blue glass basket clear handle , vintage pyrex 1cup glass dhandle measuring cup premetric 508 red letters, canton glass co dahlia 9 platehandles, vintage elegant glassware candy dish w lid 2 handled footed clear glass, vintage lesmith fan feather crystal clear glass basket whandle, vintage replacement lid clear pyrex 470 c tab handles fits 471 472 473, 75 rose red bell with clear handle pilgrim glass pretty, pyrex pie pan deep dish flavor saver fluted rim 229 handles usa baking ovenware, pyrex clear glass loaf pan with handles 8 x 4 x 3 baking dish 213r, kig glass clear frosted satin tray bowl handled footed floral rose, fostoria 2 handled serving bowl american pattern 1915 1986, bell pilgrim art glass amberina clear handle hand blown 7 , vintage fostoria american crystal center handled sandwich server nice mint , imperial glass candlewick clear handled cake or under plate beaded edge , glasbake set of 2 clear red letter measuring cups closed handle 12 cups, pyrex clear baking dish with open handles 9 x13 3 qt c233 free shipping, pyrex clear baking dish with open handles 7 x11 2 qt c232 with 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 , pair vintage clear glass ribbed bowls w handles 5 78 od, vintage eapg panelled pitcher grapes tree trunk handle clear glass 8 34 tall, tiara clear glass ponderosa pine 13oz handled footed beverage beer mug set of 3, vintage pyrex 470c round glass lid with handles, green art glass pocketbook with floral design and clear twisted applied handles, crystal relish tray dish american brilliant 115 cut daisy nice double handle , crystal bowl american brilliant abp 65 cut star pattern double handle, 10 c large clear glass pitcher murano orange handle hand blown made in italy, old vintage eapg glass basket candy nut dish w applied handle vgc, large vintage midcentury pressed glass fluted serving platter with handles, small vintage hand blown purple crackle glass pitcher with clear handle, fostoria baroqueclear meadow rose etch 11 handled 4toed bowl 193758, glass butter dish pressed glass fan handles relish crudites



Comments are closed.