
#import "MyButton.h"

@implementation MyButton
- mouseEntered:(NXEvent *)theEvent
{
    [selftargetButton setTitle:"Yes"];
    [targetButton setTitle:"No"];
    return self;
}

- setTargetButton:sender :othersender;
{
    selftargetButton = sender;
    targetButton = othersender;
    return self;
}

- (BOOL)acceptsFirstResponder
{
    return YES;
} /* acceptsFirstResponder */

- initFrame:(const NXRect *)frameRect title:(const char *)aString tag:(int)anInt target:anObject action:(SEL)aSelector key:(unsigned short)charCode enabled:(BOOL)flag
{
    [super initFrame:frameRect title:aString tag:anInt target:anObject action:aSelector key:charCode enabled:flag];
    [self setBordered:0];
    [self setEnabled:0];
    [window addToEventMask:NX_MOUSEENTEREDMASK];
    [window addToEventMask:NX_MOUSEMOVEDMASK];
    return self;
}

@end
