FBA The Creator

The True Multiplatform PC / PocketPC Opensource Development Tool - Read Only Mode - Kept only for historical purposes - Thank you all ;)
It is currently Thu Jun 04, 2026 2:41 am

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jun 17, 2008 7:52 pm 
Offline
Tutorials Contributor
Tutorials Contributor
User avatar

Joined: Tue Jun 17, 2008 3:39 am
Posts: 59
Location: Midwest, US
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?


Top
   
PostPosted: Wed Jun 18, 2008 1:13 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
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 ;)


Top
   
PostPosted: Thu Jun 19, 2008 4:49 pm 
Offline
Tutorials Contributor
Tutorials Contributor
User avatar

Joined: Tue Jun 17, 2008 3:39 am
Posts: 59
Location: Midwest, US
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited