FBA The Creator
http://www.fbacreator.com/fbaforum/

menu_onstylusup and mousein
http://www.fbacreator.com/fbaforum/viewtopic.php?f=5&t=49
Page 1 of 1

Author:  phrebh [ Tue Jun 17, 2008 7:52 pm ]
Post subject:  menu_onstylusup and mousein

I am having a very strange problem. I have a function in a module called menu_onstylusup (which I copied from the Enlight code). Within the function I have a an if statement with a lot of elseifs to check on the mouse location with mousein. I have been building the statement one check at a time, and so I know that it has been working. However, the last one I added isn't working. I can't even get it to show a debug message in the output window. The strange thing is that all of my other mousein checks are still working. What's even stranger is that if I do the same check using menu_onstylusdown, it works just fine. It also works if I separete out the check into its own if statement. I tried moving the problem elseif statement to earlier in the list and it still didn't work, so I don't think that it's a limitation on the number of elseifs.

Here is a snippet showing the problem statement:
Code:
...elseif mousein(49,61,166,76) then
        debug("elseif Scoring")
    -- show scoring
    if HELP_MENU_CLICKED == 1 then
      HELP_SCORING_CLICKED = 1
      HELP_MENU_CLICKED = 0
    end...


And here is the separate if statement that works fine:
Code:
  if mousein(49,61,166,76) then
        debug("if Scoring")
    -- show scoring
    if HELP_MENU_CLICKED == 1 then
      HELP_SCORING_CLICKED = 1
      HELP_MENU_CLICKED = 0
    end
  end


Any thoughts?

Author:  evilmaio [ Wed Jun 18, 2008 1:13 pm ]
Post subject:  Re: menu_onstylusup and mousein

Hi,

can you post a your code (full or a part of it) which i can try to run?
I mean a simplified project which suffers this problem.

Thanks ;)

Author:  phrebh [ Thu Jun 19, 2008 4:49 pm ]
Post subject:  Re: menu_onstylusup and mousein

I tried streamlining my project, but then problem couldn't be reproduced. For various reasons, I'd rather no post what I have right now to a public forum, so I am PMing a link to you.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/