home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / DemoApps / Graphics / 2D_3D / ShaderInspector / Source / PopUpMenu.m < prev    next >
Encoding:
Text File  |  1992-12-02  |  484 b   |  32 lines

  1. //    Copyright 1992  Thomas A. Dilligan
  2. //        All Rights Reserved
  3. //
  4. // For best results, set tabstop=4
  5.  
  6. #import "PopUpMenu.h"
  7.  
  8. @implementation PopUpMenu
  9.  
  10. - mouseDown:(NXEvent *)event
  11. {
  12.     [popUpList popUp:self];
  13.     return self;
  14. }
  15.     
  16. - initFrame:(NXRect *)frameRect;
  17. {
  18.     [super initFrame:frameRect];
  19.     popUpList=[[PopUpList alloc] init];
  20.     [self setIconPosition:NX_ICONRIGHT];
  21.     [self setAlignment:NX_LEFTALIGNED];
  22.     [self setIcon:"Spot"];
  23.     return self;
  24. }
  25.  
  26. - popUpList
  27. {
  28.     return popUpList;
  29. }
  30.  
  31. @end
  32.