public void SetDefaults()
 {
     clickStyle             = ButtonClickStyle.kButtonClick_ThrobAndGo;
     actionId               = FrontEndActions.kFrontEndAction_None;
     makeClickableWhenShown = false;
     flagClicked            = false;
     clickedOneFrame        = false;
     wasPressed             = false;
 }
        public void Initialise(FrontEnd.SwitchInfo switchInfo)
        {
            active = true;
            FrontEnd.ButtonInfo info = new FrontEnd.ButtonInfo();
            info.position   = switchInfo.position;
            info.goToScreen = FrontEndScreenEnum.kFrontEndScreen_Invalid;
            for (int i = 0; i < (int)SwitchState.tates; i++)
            {
                info.texture = switchInfo.texture[i];
                (button[i]).Initialise(info);
            }

            position = switchInfo.position;
            actionId = FrontEndActions.kFrontEndAction_None;
        }
        }                                                     ///@property(readwrite,assign) CGPoint position;

        public FrontEndButton(int buttonId)
        {
            //if (!base.init()) return null;

            hangingButton   = null;
            zobjectLabel    = null;
            goToScreen      = FrontEndScreenEnum.kFrontEndScreen_Invalid;
            myId            = buttonId;
            zobject         = new Zobject();
            state           = ButtonState.EInactive;
            isClickable     = true;
            actionId        = FrontEndActions.kFrontEndAction_None;
            soundEffectId   = (int)Audio.Enum1.kSoundEffect_ButtonPress;
            flagClicked     = false;
            clickedOneFrame = false;
            wasPressed      = false;
            isDisabled      = false;
            labelOffset     = Utilities.CGPointMake(0, 0);
            //return this;
        }
        }                                              ///@property(readwrite,assign) bool active;

        public void SetActionId(FrontEndActions inThing)
        {
            actionId = inThing;
        }                                                             ///@property(readwrite,assign) FrontEndActions actionId;