 |
|
 |
Thank you hany keep up the cool things !
got my 10/2 !
|
|
|
|
 |
|
 |
Excellent work
|
|
|
|
 |
|
 |
This is amazing. It opens so many cool UI features that will make my programs differ from the others. This is absolutely amazing.
|
|
|
|
 |
|
 |
Five stars for sure.
This control is VERY versatile. I've used it to create menu structures, selection dialogues, custom tooltips, and even markers on a map. Once I began using this control I came up with more and more ways I could use it.
I would post samples but I have used it just too many times to count. Fantastic work!
|
|
|
|
 |
|
 |
Maybe this way will work. Before the user clicks on the part of the combo box's dropdown, using
PoperContainer p = this.Parent as PoperContainer;
p.AutoClose = false;
to cancel the autoclosing of the container, and set AutoCLose=true after finishing your job.
I find this way when I will show the contextmenu of a button in the PopedCotainer(the container is also closed)
sorry for my pool english.
|
|
|
|
 |
|
 |
but it doesn't work at all. It still showes the original control that I draw in the design mode.
Anyone can help me?
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
you welcome
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hany Badrous
Love programming like playing music
|
|
|
|
 |
|
 |
I need the control without dropshadow. How do I get it???
It is possible using API?
|
|
|
|
 |
|
 |
I found the solution.
Just set: ToolStripDropDown.DropShadowEnabled = false;
|
|
|
|
 |
|
 |
Hi.
I have found an issue when using the ContextMenuStrip within the ToolStripDropDown control host. The problem is when the ContextMenuStrip is shown, the pop-up window is closed just in the moment the context menu's pop-up window appears.
This problem is resolved while using the ContextMenu class (which is pretty much deprecated in the moment). I was unable to solve this problem and don't want to use the ContextMenu instead of ContextMenuStrip. I have an intuition that the problem is that the ContextMenuStrip receives or is shown with WM_ACTIVATE but the ContextMenu does not. Do you have any idea how to solve this problem?
|
|
|
|
 |
|
 |
on the trackbar scroll event 0 value throws an exception
If you think you has fallen out of an elephant's nose ; I make you a donkey
|
|
|
|
 |
|
 |
right,thank you, it is because the font can not be set to zero....i did not focus on this as much as the example demonstrate the use of the context menu.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hany Badrous
Love programming like playing music
|
|
|
|
 |
|
 |
you are welcome
If you think you has fallen out of an elephant's nose ; I make you a donkey
|
|
|
|
 |
|
 |
Have you considered attaching to the lost focus event for the tree of child controls and then in the event handler check if any child still has the focus. If not you can close the menu.
The following code is a quick and dirty .NET 2.0 way to do it which might work.
Add the code to the SuperContextMenu class.
private List<control> descendantControls = new List<control>();
protected override void OnControlAdded(ControlEventArgs e)
{
AppendControl(e.Control);
base.OnControlAdded(e);
}
protected override void OnControlRemoved(ControlEventArgs e)
{
RemoveControl(e.Control);
base.OnControlRemoved(e);
}
private void AppendControl(Control c)
{
c.LostFocus += new EventHandler(child_LostFocus);
descendantControls.Add(c);
foreach (Control child in c.Controls)
{
AppendControl(child);
}
}
private void RemoveControl(Control c)
{
c.LostFocus -= new EventHandler(child_LostFocus);
descendantControls.Remove(c);
foreach (Control child in c.Controls)
{
RemoveControl(child);
}
}
private void child_LostFocus(object sender, EventArgs e)
{
if (this.Focused)
return;
foreach (Control child in descendantControls)
{
if (child.Focused)
{
return;
}
}
Close();
}</control></control>
modified on Wednesday, January 14, 2009 9:54 AM
|
|
|
|
 |
|
 |
Although this may not be seen by anybody, cause this was published a while ago, I'd like to appreciate your clean code agenda and thanks the OP for a clever and comprehensible hack (apart from naming). Your bugfix works nearly as expected. Under XP, compiled with Net 2.0 (and 3.5, too) the first click closes the contextmenu and highlights the chosen main menu Toolstrip. That way the user at least knows the click has been delivered. Well event better would be if the clicked ToolStripMenuItem would be opened. I tried for nearly half an hour, but gave up since its not of THAT importance to me. Anyway you'll both get the proper credits in my project.
|
|
|
|
 |
|
 |
I'm a big fan of a huge user-friendly interface. Great stuff
|
|
|
|
 |
|
 |
Hello.
its very good effort..but i want it in to Asp.net 2.0 and with many group of control..
if u have any sites or idea then plz reply me
asap
|
|
|
|
 |
|
 |
Everything is in the subject I think
I would like to add a CEdit box in CMenu item.. I'm beginner in MFC (advanced in embedded C FW), and it's seems not possible ?
|
|
|
|
 |
|
 |
Sorry I would mean VS6 and not VC6 put in title...
|
|
|
|
 |
|
|
 |
|
 |
(My English could be stupid, I'm German)
Very nice work, that is what I looked for!
But if it opens, you can see your contol in the taskbar.
Any solution?
|
|
|
|
 |
|
|
 |
|
 |
Sure, I voted with 5 because I need your control so much
I'll send you an email contains a screenshot and informations of my system.
edit:
Sent
modified on Wednesday, March 26, 2008 10:20 AM
|
|
|
|
 |