User Tag List

Results 1 to 6 of 6

Thread: Button problem

  1. #1
    No Products Registered

    Join Date
    May 2009
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Button problem

    I'm having a problem with a button on my game. I need to click it with the mouse as normal, but I also need to use the space-bar for another part of my game. Problem is, after clicking the button once, it seems to be 'focused' or something, and an clicks of the spacebar also now press the button, even if I move the mouse-pointer away.

    Is there some way to stop this behaviour?

  2. #2
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Button problem

    Well you could click on the background to defocus the button, but thats how windows controls work. Same with edit boxes. If you just have a button and no other controls like scrollbars, editboxes, lists and so on you could also make an active and turn this into a button using the alternate values of the buttons for the different states like mouse over, pressed, and so on.

  3. #3
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Button problem

    Switch over to using the Active System box over the button object if possible. This will work like you want with no hassle.

    I like Active System boxes over the old button object anyway -- more options and controls

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Button problem

    Try using the action "Set focus off".

    The advantage of using Button object (or ButtonCS object ) is that those buttons use the Windows theme and then don't looks like the Windows 3.1 - Windows 2000 buttons.

  5. #5
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Button problem

    Does the regular button object have that?
    I can't find it --- It would be a nice action.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Button problem

    Ho... If the regular Button object don't have that, you can use the Window control object to save the "focus state" at start of frame and restore it each time a button is clicked.

Similar Threads

  1. Problem with unselecting radio button
    By Microbe in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 17th March 2013, 07:55 PM
  2. Transparency with the MMF2 Button Problem
    By amaire13 in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 10th December 2012, 06:57 AM
  3. Button and Joystick image problem
    By Shadeve in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 21st February 2012, 10:40 PM
  4. Button object with Sub-Application problem
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 15th May 2010, 04:13 AM
  5. F10 Button Problem
    By Eliyahu in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 1st June 2008, 06:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •