auto hide a panel or tool bar ( please any help)
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: auto hide a panel or tool bar ( please any help)

  1. #1
    Join Date
    Dec 2010
    Posts
    3

    auto hide a panel or tool bar ( please any help)

    hello all ..


    I'm working with a java desktop application as a project demanded from my super visor in the university, actually i faced a problem, i really couldn't deal with it


    my project contains many Panels, one of them will be considered as a fixed one

    i mean in the right space of my frame [ the change of panels (depends on my program) will be happened ] , but the left panel will be fixed when the panels in the right space changing..


    see this picture may explain more :

    http://dl.dropbox.com/u/1214581/panels.png


    my question is :

    can you tell me please how can i make the ( fixed panel ) as auto hide panel ?
    i mean how can i make it hidden when the mouse come to its area then it will show up ?


    sorry if I'm bothering in somehow .. and i really wish to have an answer

    huge thanks in advance

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: auto hide a panel or tool bar ( please any help)

    Add a mouse listener to the panel and listen for mouseEntered and mouseExited events. When you receive one change the visible state of the panel.

    The only problem you may have is depending on the layout manager you are using you may find that when the panel is not visible the neighbouring area is resized to cover where the panel was.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  3. #3
    Join Date
    Dec 2010
    Posts
    3

    Re: auto hide a panel or tool bar ( please any help)

    can you ( please ) give a simple code describing the idea ?

    .
    .

    thanks a lot dear for your responding

  4. #4
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: auto hide a panel or tool bar ( please any help)

    Google for "writing a MouseListener".
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  5. #5
    Join Date
    Dec 2010
    Posts
    3

    Re: auto hide a panel or tool bar ( please any help)

    Thanks a lot.. i really appreciate your help

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center