473,395 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Panel as menu

Hello,

I want to make menu with panel component, but i have one big problem.
If user click outside panel, it (panel not user lol) must be hidden.
(just like main menu component) It's there way to make it possible?

Best regards,
Szymon Kosok

Nov 17 '05 #1
2 2055
> Hello,

I want to make menu with panel component, but i have one big problem.
If user click outside panel, it (panel not user lol) must be hidden.
(just like main menu component) It's there way to make it possible?

Best regards,
Szymon Kosok


You could listen to Mouseclick-Messages in the WndProc funtion and check
if the position the user clicked at is outside your panel.
Nov 17 '05 #2
psg
"Szymon Kosok" <sz**********@nootoplist.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I want to make menu with panel component, but i have one big problem.
If user click outside panel, it (panel not user lol) must be hidden.
(just like main menu component) It's there way to make it possible?


I think you should write your own panel and override OnMouseLeve event and
add Visible = false there. Moreover you will probably need to add some
protection against hiding the panel when control inside panel is entered by
mouse cursor (because panel's OnMouseLeve event will be rised then too). I
think you can combine MainMenu with Panel(s) i.e. when MenuIem is clicked
you can show your panel Panel below MenuItem that was clicked.

PZDR PSG
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Edwin Knoppert | last post by:
Well not a to serious issue but would be nice. The menu DOES work when positioned normally, even with absolute position stuff. The problem is that i have an ASP:Panel which is absolute...
3
by: John Salerno | last post by:
I'm using the sample code of the file 'simple.py' and trying to make a single window with a panel in it, but I keep getting an error. Here's my code: (I know I might need something else, like a...
2
by: SR | last post by:
I have 2 controls that seem to conflict with each other. On my Master page I have a Menu control and on my Content page Panel control. The formatting is great, all fine and dandy, until I hover...
1
by: Marcus Smaby | last post by:
I am trying to build a simple site using a master page containing a header graphic and a vertical side menu. I use the MS ASP Menu control. There is a single contents panel. The menu is multiple...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.