home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!west.West.Sun.COM!male.EBay.Sun.COM!exodus.Eng.Sun.COM!rita!jmk
- From: jmk@sun.com (John Mani)
- Newsgroups: comp.windows.open-look
- Subject: Re: TextField Is It?
- Date: 25 Jan 1993 22:09:40 GMT
- Organization: Sun Microsystems, Inc.
- Lines: 22
- Distribution: world
- Message-ID: <lm8p94INNipk@exodus.Eng.Sun.COM>
- References: <1993Jan22.215007.3504@cactus.org>
- Reply-To: jmk@sun.com
- NNTP-Posting-Host: rita
-
- >How can I create this function?
- >Boolean IsTextField(Widget)
- >{
- >
- > if(check_to_make_sure_that_widget_is_a_TEXTFIELD )
- > return(TRUE);
- > else
- > return(FALSE);
- >}
- > Is there a way to do this?
-
-
- if ( XtIsSubclass(w, textFieldWidgetClass))
- return True;
- else
- return False;
-
-
- rgds
- -john mani
- OLIT Engg
- SunSoft Inc
-