public IButtonHoverType2 Initialise(ButtonType2Drawer aDrawer) { // button initialised as a type 2 non-toggle button with internal mouse tracking iTrackingArea = TrackerHelper.Create(this, this.Bounds, false); // create and initialise the cell ButtonHoverCellType2 cell = new ButtonHoverCellType2(aDrawer); Initialise(cell); return(cell); }
public IButtonHoverType2 Initialise(NSImage aImage) { // button initialised as a type 2 non-toggle button with internal mouse tracking iTrackingArea = TrackerHelper.Create(this, this.Bounds, false); // create and initialise the cell ButtonHoverCellType2 cell = new ButtonHoverCellType2(); cell.ImageOff = aImage; Initialise(cell); return(cell); }