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:

AJKA Bohemian CZECH Ruby Red Cut to Clear Buzzstar HOCK Bell Zipper Handle Glass
AJKA Bohemian CZECH Ruby Red Cut to Clear Buzzstar HOCK Bell Zipper Handle Glass
$23.70
CLEAR GLASS CRYSTAL PLATTER TRAY W SWIRL PATTERNS AND HANDLES FOSTORIA
CLEAR GLASS CRYSTAL PLATTER TRAY W SWIRL PATTERNS AND HANDLES FOSTORIA
$19.99
Bohemian CZECH Ruby Red Cut to Clear Grapes Leaves HOCK Bell Notch Handle Glass
Bohemian CZECH Ruby Red Cut to Clear Grapes Leaves HOCK Bell Notch Handle Glass
$22.05
4 Vintage Pyrex Clear Glass Coffee Mugs Yellow Plastic Handle Holder
4 Vintage Pyrex Clear Glass Coffee Mugs Yellow Plastic Handle Holder
$20.00
VINTAGE SUGAR AND CREAMER SET CLEAR PRESSED GLASS BOWL WITH HANDLES SUNFLOWER
VINTAGE SUGAR AND CREAMER SET CLEAR PRESSED GLASS BOWL WITH HANDLES SUNFLOWER
$7.95
Vintage Fostoria American Clear Glass Nappy Bowl Handle 4 1 2 Serving Cereal
Vintage Fostoria American Clear Glass Nappy Bowl Handle 4 1 2 Serving Cereal
$5.99
Fostoria AMERICAN Clear 3 Cornered Handled Nappy
Fostoria AMERICAN Clear 3 Cornered Handled Nappy
$7.99
VINTAGE SET OF 5 CASSEROLE BOWLS LOVENWARE USA CLEAR AMBER BROWN W HANDLES
VINTAGE SET OF 5 CASSEROLE BOWLS LOVENWARE USA CLEAR AMBER BROWN W HANDLES
$11.95
Antique Bohemian KRALIK Cranberry Art Nouveau Glass Pitcher Applied Clear Handle
Antique Bohemian KRALIK Cranberry Art Nouveau Glass Pitcher Applied Clear Handle
$85.00
Vintage Cut Glass Dish With Handle Shape
Vintage Cut Glass Dish With Handle Shape
$29.99
Set of 10 Indiana Whitehall Clear Punch Glass Footed Cup Loop Handle American
Set of 10 Indiana Whitehall Clear Punch Glass Footed Cup Loop Handle American
$41.99
Vintage Avocado Green Epic Glass Basket Clear Applied Handle Sticker 1964 1970
Vintage Avocado Green Epic Glass Basket Clear Applied Handle Sticker 1964 1970
$33.74
STEUBEN CRYSTAL GLASS ASHTRAY w SINGLE CRIMPED HANDLE SIGNED STEUBEN
STEUBEN CRYSTAL GLASS ASHTRAY w SINGLE CRIMPED HANDLE SIGNED STEUBEN
$19.99
Vintage 1 qt Fire King Clear Glass  20 Round Casserole Dish W handles USA
Vintage 1 qt Fire King Clear Glass 20 Round Casserole Dish W handles USA
$9.97
Pilgrim Orange Strawberry Pontil Clear Handle Glass Pitcher
Pilgrim Orange Strawberry Pontil Clear Handle Glass Pitcher
$18.99
Glass Hand Blown Urn Vase Clear Attached Handles Beautiful Colors
Glass Hand Blown Urn Vase Clear Attached Handles Beautiful Colors
$32.99
Fostoria American Pattern Punch Cups Set of 12 straight side D handle vintage
Fostoria American Pattern Punch Cups Set of 12 straight side D handle vintage
$72.00
Elegant Glass Green and Clear Art Glass CREAMER w Swirl Handle
Elegant Glass Green and Clear Art Glass CREAMER w Swirl Handle
$18.39
Anchor Hocking Clear Line 17 Pattern 7 1 2 Tab Handled Bowl
Anchor Hocking Clear Line 17 Pattern 7 1 2 Tab Handled Bowl
$3.95
Set of 2 Vintage Clear Glass Pyrex Loaf Pans Tab Handles 212  213 1 1 2 Qt USA
Set of 2 Vintage Clear Glass Pyrex Loaf Pans Tab Handles 212 213 1 1 2 Qt USA
$16.99
Large Vintage Clear Glass Sugar Bowl With Handles
Large Vintage Clear Glass Sugar Bowl With Handles
$9.99
BEAUTIFUL VINTAGE BLOWN GLASS AMBER PITCHER VASE W APPLIED CLEAR HANDLE
BEAUTIFUL VINTAGE BLOWN GLASS AMBER PITCHER VASE W APPLIED CLEAR HANDLE
$56.25
Fenton Ruffled White Clear Edge Candy Dish with Handle
Fenton Ruffled White Clear Edge Candy Dish with Handle
$15.00
VTG 25th Wedding Anniversary Clear Glass Cake Plate With Handles Silver Trim
VTG 25th Wedding Anniversary Clear Glass Cake Plate With Handles Silver Trim
$10.99
DEPRESSION GLASS PIE PLATE DISH CLEAR GLASS w HANDLES ex cond
DEPRESSION GLASS PIE PLATE DISH CLEAR GLASS w HANDLES ex cond
$19.20
Vintage Glass 115 Clear Ringed Banded Handled Tidbit Tray
Vintage Glass 115 Clear Ringed Banded Handled Tidbit Tray
$10.99
Vintage Imperial Nucut 495 Glass Oval Double Handle Relish Nut Dish Bowl c 1912
Vintage Imperial Nucut 495 Glass Oval Double Handle Relish Nut Dish Bowl c 1912
$4.99
Vintage NUCUT Pressed Clear Glass Crystal Nappy Bowls One Handle 212
Vintage NUCUT Pressed Clear Glass Crystal Nappy Bowls One Handle 212
$45.00
Beautiful Unbanded Clear Etched Frosted Floral Divided Handled Condiment Dish
Beautiful Unbanded Clear Etched Frosted Floral Divided Handled Condiment Dish
$9.74
Vintage Diamond Cut Glass Ice Bucket Silver Hammered Handle Lidded
Vintage Diamond Cut Glass Ice Bucket Silver Hammered Handle Lidded
$1.00
Vintage crystal Glass Mug Vase Two Handle
Vintage crystal Glass Mug Vase Two Handle
$0.99
Vintage Anchor Hocking 2qt Handled Measuring Bowl
Vintage Anchor Hocking 2qt Handled Measuring Bowl
$12.99
LOVELY VINTAGE FOSTORIA SPARKLING SQUARE GLASS HANDLED NAPPY PERFECT CONDITION
LOVELY VINTAGE FOSTORIA SPARKLING SQUARE GLASS HANDLED NAPPY PERFECT CONDITION
$22.50
IMPERIAL CANDLEWICK CLEAR HANDLED PLATE WITH WHEAT CUTTING
IMPERIAL CANDLEWICK CLEAR HANDLED PLATE WITH WHEAT CUTTING
$25.00
3pc 1QT PYREX Baking Set 2 Baking Dash 1 Handle Ex Condition
3pc 1QT PYREX Baking Set 2 Baking Dash 1 Handle Ex Condition
$34.99
PITCHER DEEP CRANBERRY BLOWN GLASS PITCHER VERY NICE CLEAR HANDLE
PITCHER DEEP CRANBERRY BLOWN GLASS PITCHER VERY NICE CLEAR HANDLE
$11.76
Vintage Clear Glass 3 Division Serving Tray with Metal Handle
Vintage Clear Glass 3 Division Serving Tray with Metal Handle
$6.89
Vintage Fostoria Sandwich Cookie Plate Carry Handle Etched 11 1 2 ME
Vintage Fostoria Sandwich Cookie Plate Carry Handle Etched 11 1 2 ME
$29.99
Pyrex Clear Glass LOAF PAN with Handles 8 x 4 x 3 Baking Dish 213R
Pyrex Clear Glass LOAF PAN with Handles 8 x 4 x 3 Baking Dish 213R
$10.00
Vintage clear pressed glass brides basket with applied handle
Vintage clear pressed glass brides basket with applied handle
$26.99


Recently Purchased Clear Handle:


4 clear glass salt spice sugar shaker w handle screw aluminum lid, victorian art glass basket candy stripe thorn handle webb stevens , butterfly flower etched cut clear glass candy bowl mint dish finger ring handle, hazel atlas royal lace clear oval vegetable bowl with handles, vintage hand blown art glass amethyst purple pitcher clear handle miniature , empoli white cased glass tall skinny mcm pitcher ewer clear handle , imperial old williamsburg glass 2 spout applied handle clear glass punch ladle, cambridge elegant glass etched rose point 3 part handled relish footed 11, cambridge elegant glass etched rose point 4 toed handled open dish 2 tall, cambridge elegant glass etched rose point 8 footed plate with handles 3500 161, vintage pitcher by federal glass 4 or 5 cup star sunburst handle spout, vintage webb art glass handled serving tray signed webb england, vintage clear glass juicer reamer large 8 size ribbed with handle pour spout, pyrex model 229 scalloped edge deep dish handled pie plate, vintage cranberry glass creamer with clear ornate handle, pyrex 13 qt model c702 oval casserole dish with 2 handles, clear glass serving dish with handles and wavy rim, glass twohandled cakepastry plate, vintage lot of 2 hand blown clear glass bowl with handle amp; etched wheat pattern, clear glass crescent bone dishes with beautiful handles set of two, 8 34 clear glass lid knob handle 408 no brand pot pan casserole, pyrex 229 round fluted pie plate with handles, fenton art glass clear satin water lily pattern basket wapplied handle signed , glass serving dish with handle, very small clear crystal depression juicerreamer flat handle star design, vintage anchor hocking stars amp; bars clear glass round handled candy dish 6, vintage glass pyrex 4 cup 32 oz measuring cup 1 quart d handle 532, candlewick 2 handle platter 8 12 across, vintage cobalt blue hand blown glass basket dish clear handle, vintage indiana glass wild rose nappy plate candy lemon slice server open handle, cambridge clear glass tidbitsandwich tray w teardrop handle gold gilding rim, 2 vintage pyrex clear glass baking loaf pans with handles 1 12 qt 213, vintage fostoria clear etched glass 825 handled plate, imperial elegant glass candlewick pattern two handle two section dish , vtg 50s jeannette 3125 clear glass aztec rose banded 2 handle scalloped bowl , pyrex 2 qt 19 l clear blue tint glass casserole dish w lid loop handles, duncan amp; miller elegant clear glass teardrop handled lemon plate 725 , vintage handled cake plate silver overlay footed poppy silver city 13 vgc, heavy clear glass sugar bowl w2 handles 3 tall 5 12 wide handle to handle, rare vintage pyrex lid fin handle replacement lid clear glass square, crystal clear romania hand blown aegean gold creamer pitcher cobalt handlebase, kig glass clear frosted satin tray bowl handled footed floral rose, vintage lead crystal clear leaf design 7 78 handled oval basket , vintage fostoria 2056 american center handle 12 round tray 19151982, murano italy art glass signed amethyst applied clear handle 4 34 cream pitcher, eapg heavy fostoria essex clear applied handle 10 pitcher 1905, vintage rainbow crackle glass clear with blue applied handle 5 14 cruet jug, cambridge signed decagon clear wheel cut floral amp; dots handled 1425 cake plate, vintage clear cut crystal fan diamonds amp; dots applied handle 6 18 pitcher, vintage bohemian czech heavy cranberry with clear handle amp; base 3 12 creamer, fostoria colony swirl clear 12 78 handled 3 part divided dish 19401973, fenton handmade heart shaped ruffled bowl with clear looped handle circa 1920, vintage fostoria 2510 sunray clear 7 78 handled pickle dish 19351943, rare pre mid century glass ribbed refrigerator square box with a handled lid, 2 pc fostoria american 2056 crystal handled round nappies 19151982, fostoria american 5 12 handled nappy, vintage fostoria 2510 sunray clear 5 handled round nappy 19351943, pressed glass heavy clear hobstar crosshatch and button 8 handled dish, fostoria century 2630 clear pressed glass 11 14 handled cake plate 19501982, vintage rectangular clear glass tray with fan tab handles relish tray w cup, cobalt blue studio hand blown glass basket 9 applied clear handle, waterford waffle cake plate w tab handles anchor hocking clear glass depression, 1112 cobalt blue glass pitcher with clear glass handle from poland, pressed glass hazel atlas ridge fan 3 part clear relish dish 572 tab handles, vintage tiara exclusive sandwich glass clear glass handled basket large, vintage clear etched glass bowl whandles amp; 2 condiment dishes, antique cut glass bowl whandles cut yellow to clear cut glass large bowl, fire king wheat 1 qt round 446 casserole 8 12 handle to handle clear 406 lid, vintage hand blown art glass pitcher vase dark green amp; clear with handle 5, vintage american fostoria tab handled underplate snack plate, vintage green depression clear glass handles flowers candy dish 85 pretty, candlewick cookie tray with handle, imperial glass 2 handle dish iron cross mark , serving bowl clear glass diamond 8 12 handles vtg, relish dish clear glass thousand eyes handle, vintage imperial glasscandlewick wafer tray w center handle nice, indiana glass relish tray 5 part clear handles fruits , bowls chip amp; dip clear glass amp; brass handles amp; holder, clear art glass basket split handle, compote pedestal handles clear glass scalloped top, vintage pressed glass 2qt water pitcher star burst pattern ribbed handle 9 tall, bohemia clear 2 handle 24 lead crystal vase czech republic 912 w pedestal , vintage anchor hocking moonstone heart shaped dish with handle, fostoria american oval handled relish dish, st louis france cut crystal chantilly 44oz water jug pitcher round handle, vintage indiana glass clear pretzel single handle cheese 7 38 plate saucer, rogaska richmond fine crystal ice bucket with handle beautiful , pyrex round 8 14 clear cake pans whandlesamp;cover 22111832, antique fenton hobnail cream amp; 2 handle sugar bowl w round tray clear glass dish, vintage pyrex clear glass 440 casserole lasagna dish pan with handles, vintage beautiful etched clear glass handled serving plate platter, eapg hickman creamer w applied handle, square relish tray with handles 7 clear glass 3 section quilted pattern , vintage pyrex mini individual casserole dishes with handles clear glass 2, pyrex clear glass divided replacement lid 945c tab handles low shipping, anchor hocking ripple dish with a handle on each side, vintage pressed glass vintage candy dish clear glass with handles



Comments are closed.