Thread: Problem with Mouse Over Menu!!! HELP!!!

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    15

    Question Problem with Mouse Over Menu!!! HELP!!!

    Hello!!!

    i am facing some problem with my mouse over menu which will change colour whenever the user mouse over on it. my menu consist of 2 main option and when u mouse over 1 of the main option it has a sub menu which consist of 2 sub option which enable user to click on it. Another main option don't have sub menu, it just allow user to click on it.

    but the problem is the sub menu always appear whenever i mouse over the sub menu coordinate(x,y) without mouse over the main menu, which is annoying, for example i set the sub menu will appear when x = 30, y = 5, then it will appear when i mouse over (30,5).

    the sub menu should appear after i mouse over the main option, then hold to let the user choose n click on it, and disappear when the mouse moved leave the range of the main option .

    here i attach my cpp file, hope that u guys can have a look on it and help me to solve my problem!!

    thanks a lot!!

    os:winxp
    compiler:MinGW
    this program should run under win32console mode.

    thankyou....

  2. #2
    Registered User
    Join Date
    Sep 2005
    Posts
    15
    can anyone please help me ???

  3. #3
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    Have a bool that tells you that they have moused over the main menu. You should be able to figure it out from there.
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    15
    thanks...i have got it!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Popup menu problem
    By Gravedigga in forum Windows Programming
    Replies: 2
    Last Post: 09-26-2004, 07:12 AM
  2. server question
    By xddxogm3 in forum Tech Board
    Replies: 24
    Last Post: 01-21-2004, 01:12 AM
  3. Context Menu cursor problem
    By dWorkVan in forum Windows Programming
    Replies: 4
    Last Post: 07-14-2003, 11:42 AM
  4. pop up menu problem
    By bigtamscot in forum Windows Programming
    Replies: 5
    Last Post: 06-10-2003, 01:46 AM
  5. Mouse input problem
    By Trauts in forum C++ Programming
    Replies: 0
    Last Post: 05-18-2003, 09:41 PM