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:

Hand BLOWN GLASS Elegant PITCHER Clear Art Glass w Green Jug Applied Handle 9
Hand BLOWN GLASS Elegant PITCHER Clear Art Glass w Green Jug Applied Handle 9
$19.99
Beautiful Vintage FOSTORIA Colony Handled Muffin Tray EUC Dont Miss LK
Beautiful Vintage FOSTORIA Colony Handled Muffin Tray EUC Dont Miss LK
$12.99
Vintage 8 inch clear Indiana Glass basket Monticello pattern applied handle
Vintage 8 inch clear Indiana Glass basket Monticello pattern applied handle
$24.95
Anchor Hocking Thousand Eyes Sugar Bowl Clear Glass Double Handle USA Vintage
Anchor Hocking Thousand Eyes Sugar Bowl Clear Glass Double Handle USA Vintage
$4.50
Vintage Clear Glass Floral Embossed Double Handle Candy Nut Dish Cross V Shape
Vintage Clear Glass Floral Embossed Double Handle Candy Nut Dish Cross V Shape
$4.50
L E Smith Glass MOON  STAR Clear Basket 6 1 2 high Applied Handle
L E Smith Glass MOON STAR Clear Basket 6 1 2 high Applied Handle
$29.99
Vintage Clear Glass Rings Tiered Double Handle Candy Nut Dish Starburst Round
Vintage Clear Glass Rings Tiered Double Handle Candy Nut Dish Starburst Round
$4.50
PYREX Vintage Clear Glass Casserole Lid 470 C Cinderella Handles
PYREX Vintage Clear Glass Casserole Lid 470 C Cinderella Handles
$7.99
Heisey Glass COLONIAL Clear Triangular Handled Nappy 6 1 2 Marked Elegant
Heisey Glass COLONIAL Clear Triangular Handled Nappy 6 1 2 Marked Elegant
$19.99
Cambridge Glass Rosepoint Crystal Clear Handled Ice Bucket 3400 851 Elegant Deco
Cambridge Glass Rosepoint Crystal Clear Handled Ice Bucket 3400 851 Elegant Deco
$56.25
5 Piece Anchor Hocking Manhattan Open and Closed Handled Serving Bowls Set
5 Piece Anchor Hocking Manhattan Open and Closed Handled Serving Bowls Set
$99.00
CANDLEWICK CRYSTAL 400 51 6 HANDLED MINT DISH
CANDLEWICK CRYSTAL 400 51 6 HANDLED MINT DISH
$27.50
Amber Crackle Glass Pitcher W clear Applied Handle 3 3 8 Tall VGCond
Amber Crackle Glass Pitcher W clear Applied Handle 3 3 8 Tall VGCond
$6.00
Pyrex 8 SQUARE BAKING DISH with Handles 222 R 2 Quart Clear Glass
Pyrex 8 SQUARE BAKING DISH with Handles 222 R 2 Quart Clear Glass
$8.00
Vintage Glass Candy Nut Mint Dish Bowl Silver Handle
Vintage Glass Candy Nut Mint Dish Bowl Silver Handle
$4.00
Clear glass two handled 4 footed dish
Clear glass two handled 4 footed dish
$19.99
GLASS CANDY BOWL WITH SIDE HANDLES ENGRAVED FLOWERS  LEAVES
GLASS CANDY BOWL WITH SIDE HANDLES ENGRAVED FLOWERS LEAVES
$4.00
VINTAGE CLEAR PRESSED GLASS HANDLED SERVING PLATE WITH SAWTOOTH EDGE 7 1 4
VINTAGE CLEAR PRESSED GLASS HANDLED SERVING PLATE WITH SAWTOOTH EDGE 7 1 4
$4.95
INDIANA DEPRESSION GLASS PRETZEL PATTERN CLEAR CHEESE PLATE W HANDLE 6 3 8
INDIANA DEPRESSION GLASS PRETZEL PATTERN CLEAR CHEESE PLATE W HANDLE 6 3 8
$4.95
Ruby Red Whitefriars Jug with Clear Handle ref B812
Ruby Red Whitefriars Jug with Clear Handle ref B812
$21.22
5 Cut Crystal Aperitif CORDIALS with Handles
5 Cut Crystal Aperitif CORDIALS with Handles
$25.00
Imperial Clear Handled Basket Waffle Block Pattern Monticello VGC
Imperial Clear Handled Basket Waffle Block Pattern Monticello VGC
$14.99
Fenton Daisy and Button Large Crystal Handled Flower Brides Basket GC
Fenton Daisy and Button Large Crystal Handled Flower Brides Basket GC
$29.99
Pyrex Flameware Spouted Sauce Pan With Lid Clear Handle
Pyrex Flameware Spouted Sauce Pan With Lid Clear Handle
$28.00
Pyrex Measuring Cup 532 Clear Glass with Red Letter Open Handle 1 Qt 32 Oz USA
Pyrex Measuring Cup 532 Clear Glass with Red Letter Open Handle 1 Qt 32 Oz USA
$6.50
Vintage Brass  Crackle Glass Angel Handle Heavy Basket
Vintage Brass Crackle Glass Angel Handle Heavy Basket
$33.00
EAPG CRYSTAL ARCHED OVALS HANDLED CREAMER
EAPG CRYSTAL ARCHED OVALS HANDLED CREAMER
$20.21
Heisey Glass Sauce Relish Dish with Handle Vintage
Heisey Glass Sauce Relish Dish with Handle Vintage
$6.99
Fenton 95 tall 875 wide Cranberry  White Hobnail Basket with clear handle
Fenton 95 tall 875 wide Cranberry White Hobnail Basket with clear handle
$39.50
Simon Pearce Addison Glass Contemporary Modern Wine Carafe Decanter Handled
Simon Pearce Addison Glass Contemporary Modern Wine Carafe Decanter Handled
$135.00
CAMBRIDGE Rose Point Clear Divided Dish with Handles
CAMBRIDGE Rose Point Clear Divided Dish with Handles
$14.99
GLASS VINTAGE SERVING PLATE HAS HANDLES AND DESIGN IN IT 12 1 2 ACROSS
GLASS VINTAGE SERVING PLATE HAS HANDLES AND DESIGN IN IT 12 1 2 ACROSS
$12.00
VINTAGE CLEAR GLASS JUICER REAMER WITH POUR SPOUT AND HANDLE
VINTAGE CLEAR GLASS JUICER REAMER WITH POUR SPOUT AND HANDLE
$11.99
CONDIMENT PLATE WITH THREE SECTIONS THICK GLASS HAS HANDLES 9 1 2X 7 1 2 DIAM
CONDIMENT PLATE WITH THREE SECTIONS THICK GLASS HAS HANDLES 9 1 2X 7 1 2 DIAM
$12.00
GLASS BASKET WITH HANDLE  ETCHED WITH LEAVESSTAR DESIGN IN BOTTOM61 8X4 1 4
GLASS BASKET WITH HANDLE ETCHED WITH LEAVESSTAR DESIGN IN BOTTOM61 8X4 1 4
$8.00
Elegant Cambridge Rose Point Floral Divided Oval 2 handled Dish Bowl 12+
Elegant Cambridge Rose Point Floral Divided Oval 2 handled Dish Bowl 12+
$38.25
Vintage Anchor Hocking Glass Tab Handled Serving Dish
Vintage Anchor Hocking Glass Tab Handled Serving Dish
$3.95
Vintage 3 Section Pressed Glass Nut Candy Bowl Dish w Fluted Handles 7 Diameter
Vintage 3 Section Pressed Glass Nut Candy Bowl Dish w Fluted Handles 7 Diameter
$2.25
CLEAR GLASS VINTAGE DISH WITH HANDLE VGUC 85
CLEAR GLASS VINTAGE DISH WITH HANDLE VGUC 85
$9.50
LOVELY YELLOW SQUARE GLASS VASE WITH CLEAR GLASS HANDLE 925
LOVELY YELLOW SQUARE GLASS VASE WITH CLEAR GLASS HANDLE 925
$8.95


Recently Purchased Clear Handle:


vintage anchor hocking clear bubble glass bowls with handles set of 3, clear glass basket with handle ribbon edge, vintage brass handle lidded crystal glass candy dish with brass footed holder, vintage crystal boat relish dish with decorative handles , fostoria american crystal handled sugar bowl exc, fostoria dandelion heavy crystal handled open sugar bowl pressed floral exc, anchor hocking waterford or waffle 2 handle 4 14 oval sugar bowl exc 3 avail, vintage fostoria american clear stem 2056 glass tray with center handle euc, vintage depression glass dish clear leaf design with handle, imperial glass crystal clear handled hobstar 5 nappy bowl marked exc, pyrex clear large handled clear deep dish 95 pie plate 2229, anchor hocking 5075 clear pressed glass 6 low bowl w handles panels dots exc, vintage jeannette aztec rose embossed nappy serving bowl with two handles 1950s, mikasa €silent night€ handled round basket clear and frosted glass with santa an, pink glass bowl with clear handles, antique american brilliant cut glass pitcher 812 applied handle exquisite, vintage pyrex ca1950 683c a22 clear domed flattop lid wrounded handles, vintage northwood glass cherry amp; cable creamer and sugar bowl double handle, vintage two 2 handled glass hand painted creamercup, vintage relish dish candy dish pressed clear glass handled flower design 912 , jeannette national clear glass hobnail 10 round torte platter handled tray , cut glass sugar bowl wwinged handles beautiful, waterford crystal glandore gravy sauce boat 7x5 inch w3inch handle clear, mint condition vintage 1985 hofbauer byrdes basket bird handle 24 lead crystal, irish coffee mug christmas tree set of 6 indiana glass gold rim handle pedestal, duncan miller first love nut dish nappy wtab handle 7 14 w, hofbauer german lead crystal ruby byrdes basket with handle, imperial glass cape cod crystal clear spider dish handle 5 34 candy nut , vintage leaded crystal handled basket made in germany, vintage deep clear cut glass serving plate w center handle flower etched floral, cobalt blue glass large clear glass handled floral patriotic vase, lot of 2 clear hobnail glass serving dishes with open handles platter bowl, mid century barware libbey 4 tempo glasses with metal wood handle carrier, fostoria clear coin handled nut tray, vintage indiana clear glass tiara sandwich plate or small serving tray, fostoria american divided relish boat dish oval serving upturned solid handles, rarehandmadepolandeuropean725vasecobaltblueglassampclearhandlenice, 2 villeroy amp; boch new wave latte glasses with metal handles 1137373421, teal blue aqua hobnail pitcher clear applied handle large 9, vintage clear hazelatlas glass handled bonbon dish in 577 colors pattern, vintage cut glass severing tray w flowers amp; handles 115 x 725 , handblown orange glass amp; clear basket candy dish with handle ruffled wavy edge , fostoria american crystal d handle straight punch cups 6 pieces, beautiful large cambridge tray platter depression glass handle, 6 fostoria american crystal d handle straight punch cups, dansk crystal glasses 2 beer mugs handle cups super rare w sticker 65 tall, vintage kig malaysia raised rose pattern clear glass bowlfrosted glass handles, vintage crystal punch glasses with green handles and clear glass cup set of 2, fancy federal clear glass petal design two tier tidbit tray w handle, clear art glass pitcher vase white spiral accent stripe clear glass handle 475, nice 19th c 7 tall clear threaded art glass jug wapplied handle; poss nash, delicate hand blown clear glass 375 tall creamer with handle beautiful unique, vtg anchor hocking wexford pattern pressed glas ice bucket chrome tongshandle, clear glass bowl with handles vintage estate collectable , vintage federal clear glass petal pattern 10 14 serving bowl with handle, viking glass candy dish w handle decorated with flowers , signed libbey american brilliant cut glass handled nappie, crystal glass basket bowl clear with frosted leaves lines braided handle 6 tall, vintage pyrex casserole dish oval handles clear 2 quart 702 baking dish , vintage viking art glass basket orange body w clear handle mid century modern, greentown glass clear wild rose with festoon lamp with handle, vintage beer mug tankard handled glass stein diamond pattern cut, pyrex measuring cup 4 cups 532 clear red letter open handle 1 qt 32 ounce usa, vintage fireking measuring cup 498 2 cup 16 oz dhandle red lettering cro81, set of 2 coffee tea drink glass mugs silver metal handles holders kitchen bar, vintage imperial glass candlewick clear heart candy dish nut tray wloop handle , fostoria glass starflower basket base no handle stunning , heisey 17 handled decanter, vintage orange crackle glass lefthanded pitcher small 3 applied handle clear, vintage oven originals 8 oz measuring cup pour spout d handle metrics blue, vintage anchorhocking fireking 40s; blackgraphics 1c dhandle measuringcup, pyrex flameware glass 6 cup water kettle teapot 8446b replacement handle 8836h, eapg us glass two bands covered low compote with handles circa 1880s, imperial candlewick vintage400249 beaded handleice water pitcher, a hocking fireking 8 cup glass measuring cupmixing bowl spout amp; handle kitchen, duncan miller radiance 14pc punch bowl set clear glass ruby red blue handle cup, clear glass toscany sierra irish coffee mugs 8oz 4 angle handle euc, clear etched glass scalloped pedestal candy dish with two handles35 in tall, vintage fenton small green glass basket clear handle 7hx675lx5w, vintage hand blown crystal clear glass handle footed ruby red pitcher poland 11, vintage hazel atlas small jug bottle with handle, opalescent spiral optic pitcher with clear handle, viking glass red clear handle cruet, vintage pressed cut glass lidded candy dish brass handle clear, antique clear imperial pansy quilted carnival glass bowl with handle iridescent, vintage fenton milk glass ruffled edge basket with clear glass handle, pyrex bowl with handles 2l clear glass with lid, cut glass clear ice bucket star scroll design no handle 7 14 tall x 7 34, vintage cambridge rose point handled footed ruffled edge bon bon nice, anchor hocking 9 square refrigerator dish cover clear ribbed handle, vintage scalloped rim wing flame handle 14 inch oval serving or center bowl, fostoria chintz serving bowlvintage blown glassdouble handled10 inch, pilgram hand blown vase red with clear handle 4 34 tall, vintage fenton style round vaseclear smokey purple glass with clear handle, 1 waterford crystal cut tankard mug handled 13oz 490502 criss cross fan, vintage cranberry opalescent glass 85 water pitcher coin spot dot clear handle, vintage clear crystal glass pitcher w handlecut pressedflowers75 inch tall



Comments are closed.