User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22

Thread: Test if menu is visible?

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Test if menu is visible?

    Hello,

    Is it possible to test if the menu is visible?

    I don't mean the menu bar (File Edit etc), I mean can I test if the user has clicked the menu bar and any of the drop down menus are visible?

    Thank you

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    No. You *might* be able to do something with the Advanced Menu Object, however.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I tried that and there didn't appear to be away.

    It is a real problem for me.

    When the user moves the cursor over buttons (in top left hand corner of my application), a tooltip appears explaining the use of the button. Problem is, when the "File" or "Edit" menu is open, the tooltips because the cursor is over the buttons but the menu is open at the same time and it looks horrible.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    How did you get tooltips when the hover over the menu items then?
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Using the tooltips object, when the cursor is overlapping the active object which is my button.



    The problem is when the button is hidden by the menu, the tooltip still appears when the cursor is over it and it looks wierd/ugly/stupid etc...

    Any whacky work around suggestions are welcome

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Verbage's Avatar
    Join Date
    Dec 2010
    Location
    Lakewood, CO, USA
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Disable windows menu buttons and create your own drop downs

  7. #7
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    That's an idea.

    I'd prefer not to though if I can avoid it though...

  8. #8
    Firecodemonkey

    Join Date
    Aug 2006
    Location
    London, UK
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Two things:

    1) You normally detect this because Windows sends a message when the mouse enters the button. If something else covers the button (e.g. a menu) then Windows doesn't send that message. So in a C program this kind of thing is easy.

    2) If you are using something that is drawn, as opposed to a real Windows control (i.e. you are using an Active System Box instead of a Button) then you don't get the messages, because you're not a control. So to do the tooltip effect, you have to constantly check the position of the mouse, and if it's in the same area as your button then you show the tooltip... even if there's something in front of the button.

    Your problem is number 2.

    The easiest fix is to insert a Window Control object and use the 'Window has focus?' condition. When the menu is selected, the window in which the playfield is drawn does *not* have focus, so you shouldn't display a tooltip.

  9. #9
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thank you ChrisB, that is exactly the kind of answer I was after. Only thing, it doesn't work. When the menu is selected, the window still has focus.

    Based on what you said about windows not detecting a button under a menu, I figured I'd try it with the standard MMF button object but this didn't work either. Only because I was still using the tooltip object to display the tooltip and doing so if the mouse was over the button (which is still true when the menu is covering it).

    However, using the built in tooltip feature of the standard MMF button object, it does work as you described. When the button is hidden by a menu or any other windows object (edit box, list, etc) the built in tooltip does not display. Which is good!

    Problem is, I want pictures as my buttons and if you switch the button object type from "Test Push Button" to "Bitmap Push Button", then you are no longer able to assign a tooltip.

    However, you can still use have a tool tip if you use "Text and Image Push Button", and it is possible to shrink the button size so that only your image is visible. The problem with this is when you put your cursor over the button there is an ugly flicker and the actual button is visible for a short moment.

    So back to square one. Any other suggestions for checking if the menu is visible?

  10. #10
    Firecodemonkey

    Join Date
    Aug 2006
    Location
    London, UK
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, that's weird - I tried it myself and it does exactly what I expected.

    This is not because my suggestion works; I had left the 'Run while resizing' box unticked in the runtime options. This stops the application whenever you resize the window, or have a menu open.

    I have no suggestions for you using the stock objects, but if you don't need the application to do anything while the menu's open or you're resizing it, you might like to investigate that option.

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Actif non visible
    By markymoniom in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 22nd April 2012, 12:39 AM
  2. [BUG] Edit box isn't visible
    By qenio in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 6th August 2011, 01:04 PM
  3. Sub-Application not visible
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd November 2010, 08:19 PM
  4. Health bar not visible
    By jrandkellerrock in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 12th July 2009, 03:02 PM
  5. Backdrop not visible
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th May 2009, 01:54 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
  •