home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / openloo / 5155 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  831 b 

  1. 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
  2. From: jmk@sun.com (John Mani)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: TextField Is It?
  5. Date: 25 Jan 1993 22:09:40 GMT
  6. Organization: Sun Microsystems, Inc.
  7. Lines: 22
  8. Distribution: world
  9. Message-ID: <lm8p94INNipk@exodus.Eng.Sun.COM>
  10. References: <1993Jan22.215007.3504@cactus.org>
  11. Reply-To: jmk@sun.com
  12. NNTP-Posting-Host: rita
  13.  
  14. >How can I create this function?
  15. >Boolean IsTextField(Widget)
  16. >{
  17. >
  18. >    if(check_to_make_sure_that_widget_is_a_TEXTFIELD )
  19. >        return(TRUE);
  20. >    else
  21. >        return(FALSE);
  22. >}
  23. >    Is there a way to do this?
  24.  
  25.  
  26.     if ( XtIsSubclass(w, textFieldWidgetClass))
  27.         return True;
  28.     else    
  29.         return False;
  30.  
  31.  
  32. rgds
  33. -john mani
  34. OLIT Engg
  35. SunSoft Inc
  36.