 |

|
Can we change background color from current one to blue (office like)
|
|
|
|

|
"Out of Memory" exception when docking toolstrip left or right...
|
|
|
|

|
I do not even care about this if you don't have compiled binaries to prove.
I am tired of extracting, converting and compiling everyone's projects.
|
|
|
|

|
Dude, chill. The article describes the technique well enough, you don't even have to download anything.
J
|
|
|
|

|
For someone in a hurry to get the control (like me), this is a murderer.
|
|
|
|

|
Does anybody know if there is a renderer with Windows 7 theme and if NET 4.0 will include renderers with Vista and Windows 7 theme?
|
|
|
|

|
when switch back to the default renderer(ToolStripProfessionalRenderer) by:
FooToolStrip.Renderer = new ToolStripProfessionalRenderer();
the height does not set back to default(28px), it's still very high(much larger than 28px), and font color does not set back to system default(black), it's still white.
Regards,
unruledboy_at_gmail_dot_com
http://www.xnlab.com
|
|
|
|
|

|
I converted your renderer to vb.net and changed your menu(incorporating the same button colors and made a transparent rounded button when mouse is over item), added a vista form background, and created a vista button as well. Would you mind if I posted my code if I gave you credit for all of your code?
|
|
|
|

|
There's absolutely no problem as long as you mention my work.
Thanks for asking.
Remember to send me the link to the article! Looking forward to see it.
Jm
www.menendezpoo.com
|
|
|
|
|

|
hi Jose
i'd like to if this button is also available for vb 2005 or 2008.
2nd-) Let's say that i'm using vb 2005, how can i create this kind of button using code 2005?
Regards.
|
|
|
|

|
Actually, the code provided with the article was made in vs 2005.
If you want the source code in VB, I strongly suggest using the Lutz Roeder's .Net Reflector to uncompile in VB Mode.
Thanks
Jm
|
|
|
|

|
Is this legal in a commercial application?
|
|
|
|

|
The control looks very good. Is there any way to implement the same look and feel in web pages of asp.net
|
|
|
|

|
Use images. No fading, but it works.
"Cookies are delicious delicacies." - Mozilla Foundation
|
|
|
|

|
Hello,
first: your project is great!!!
My question:
I program an openSource control library, them all controls of Windows Vista contains and a library for playing media files. I would use your sourcecode with a little modification (only namespace and class-name) in these projects.
Can I do this?
My Site: julian-w.de
(Sorry for my bad English, I'm from Germany)
|
|
|
|

|
Very good work, at least showing that winforms was underused when it came to graphics. The big problem is that
1) it takes a lot of code to do compared with WPF
2) it gets even harder when you try skin all the other controls like the datagridview, panels etc which are essential if you want a complete application. Look at http://www.componentfactory.com/[^] and see the amount of work it takes to create complete applicatios in winforms. This is a project by 1 guy
|
|
|
|

|
Can I do this with just a form that has command button instead of the toolstrip?
|
|
|
|

|
Set the ToolStrip with a button's Dock property to none and move it there.
"Cookies are delicious delicacies." - Mozilla Foundation
|
|
|
|

|
I made a translation in vb.net. Can I upload it or send it on email to you do it?
-- modified at 5:56 Tuesday 27th November, 2007
|
|
|
|

|
actually if you need sexy and fine UI just move to WPF instead of WinForms
|
|
|
|

|
Yes, but then i have to learn XAML.
|
|
|
|

|
mofle wrote: Yes, but then i have to learn XAML.
no, you can do it in code but yes, XAML make this much more easy
actualy WPF and XAML is our future so we MUST learn it...
|
|
|
|

|
Yes, but most people still use Windows XP and only have .NET 2.0, so if we want to get to the biggest crowd, we still have to use .NET 2.0 and WinForms.
|
|
|
|

|
.NET 3.5 installs just fine on XP.
But you're right, not many people are going to have it yet; at least until Microsoft pushes it out over Automatic Updates, then we can start developing applications that use it.
Actually, did they do it already? I can't tell since I just downloaded and installed it the day it came out.
|
|
|
|

|
Yes, you're right.
Anyway, i haven't used XP in over a year, so i can't answer you on that one.
|
|
|
|

|
And what if you've been asked to spruce up and existing application? Porting the entire application would be a huge and risky job.
|
|
|
|

|
Not only that, it has been widely ack-ed by even MSFT themselves that WPF in fact makes your apps by default look very ugly. To make an awesome WPF app you really need designers involved.
And of course unless you are satisfied with an additional 5-fold (that is 500% for those that love diminishing returns) hit on CPU, and naturally an additional 30 MB of runtime bloat at the very least.
WPF has its purposes sure, and it has some great features (mainly enhanced experience from JS/DOM, markup history and plenty of 'nickage' from SVG too), but it is long shot away from being widespread, stable, efficient or a tech you want to bet your company on.
Go on then, adopt it so our customers can be happier
|
|
|
|

|
When i add a TextBox to the ToolStrip the text isn't visible.
I can't find a solution to turn the text to black.
Can somebody help me?
|
|
|
|

|
Hi!
The new version of the renderer now supports ToolStrip and ComboBox on the toolbar.
I submited the update of the article, but in the meanwhile you can download it from my site:
http://menendezpoo.com/VistaRenderer3.zip[^]
Thanks a lot!
Jm
|
|
|
|
|
|
|

|
Hi,
After applying your renderer, ToolStripComboBox ceased to render it's items properly. Items are only redrawn when hovered. I'm using Windows Vista with default theme.
Michał Bryłka
Theory is when you know something, but it doesn't work.
Practice is when something works, but you don't know why.
Programmers combine theory and practice: Nothing works and they don't know why.
|
|
|
|

|
Hi!
The new version of the renderer now supports ToolStrip and ComboBox on the toolbar.
I submited the update of the article, but in the meanwhile you can download it from my site:
http://menendezpoo.com/VistaRenderer3.zip[^]
Thanks a lot!
Jm
|
|
|
|

|
Hi there..
Where setting the renderer for a menustrip, the menu does not draw properly, using XP SP2 cleartype. Can you please look into that, otherwise a great control( you got my 5).
Sk8tZ
|
|
|
|

|
When setting the WindowsVistaRenderer to the static ToolstripManager.Renderer property, all ToolStrips are rendered, including StatusStrip and MenuStrip. This is great, but the MenuStrip is not rendered correctly, so to fix the MenuStrip rendering, I had to change the following code. Maybe there's a more correct solution, but this works.
A separator line should not be drawn:
private void DrawVistaMenuBackground(Graphics g, Rectangle r, bool highlighted, bool mainMenu) {
int margin = 2;
#region IconSeparator
if (!mainMenu) {
int left = 22;
using (Pen p = new Pen(ColorTable.MenuDark)) {
g.DrawLine(p,
new Point(r.Left + left, r.Top),
new Point(r.Left + left, r.Height - margin));
}
using (Pen p = new Pen(ColorTable.MenuLight)) {
g.DrawLine(p,
new Point(r.Left + left + 1, r.Top),
new Point(r.Left + left + 1, r.Height - margin));
}
}
#endregion
if (highlighted) {
#region Draw Rectangle
using (GraphicsPath path = GraphicsTools.CreateRoundRectangle(
new Rectangle(r.X + margin, r.Y + margin, r.Width - margin * 2, r.Height - margin * 2), 3)) {
using (Brush b = new LinearGradientBrush(
new Point(0, 2), new Point(0, r.Height - 2),
ColorTable.MenuHighlightNorth,
ColorTable.MenuHighlightSouth)) {
g.FillPath(b, path);
}
using (Pen p = new Pen(ColorTable.MenuHighlight)) {
g.DrawPath(p, path);
}
}
#endregion
}
}
When calling the above method:
DrawVistaMenuBackground(e.Graphics,
new Rectangle(Point.Empty, e.Item.Size),
e.Item.Selected, (e.Item.Owner is MenuStrip));
Also, the text of them should not be drawn as the items:
protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e) {
e.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
if (!(e.Item.Owner is MenuStrip) && e.Item is ToolStripMenuItem) {
Rectangle r = new Rectangle(e.TextRectangle.Location, new Size(e.TextRectangle.Width, 24));
e.TextRectangle = r;
e.TextColor = ColorTable.MenuText;
}
base.OnRenderItemText(e);
}
/WeBe
|
|
|
|

|
Thanks alot..
Will Test..
Sk8tZ
|
|
|
|

|
Cool, it works..and I say thanks
But the way it renders, is not exactly correct, but I'm sure it can get there.
1) When mouse is over the menu, it should render like the the tool strip buttons.
2) When clicked, the menu should be rendered with the menu items like a tab on a tab control.
A good example would be to look, at the office 2007 renderer in codeproject I would assume. Would be nice to hear Mr Jose M. Menendez suggestions on these changes.
Thanks again.
Sk8tZ
|
|
|
|

|
Hey guys, sorry for the delay.
I've fixed the renderer so menus on the MenuStrip are rendered the same way that
ToolStrip buttons.
While the article is updated by the CodeProject people, you can download it from
my site:
http://www.menendezpoo.com/VistaRenderer4.zip[^]
Thanks a lot for the feedback.
Jm
|
|
|
|
|

|
Hi JM
The mouse over the menu strip works great, but when you click on the menustrip, the style it renders is not exactly right. I'm not to sure how fix this.
I can point you to the office 2007 render if you can assist, to see the behavior of the click on the menustrip.
http://www.codeproject.com/cs/menu/Office2007Renderer.asp
Thanks for your changes so far.
Sk8tZ
|
|
|
|

|
There seems to be a problem rendering the text on the ToolStripSplitButton.
When you get the mouse over the toolstripsplitbutton the text size increases and when you resize the toolstrip the text decreases back to its original state!
It is a bit weard!!! Please take a look into it.
All in all a great piece of code!
|
|
|
|

|
I've noticed that problem too, when running on XP, it seems to be the ClearType text rendering, I will run more tests and solve it, soon.
Thanks!
Jm
|
|
|
|

|
I found a way of solving this issue:
//The problem is fixed by the commented lines.
protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
{
//if (e.Item is ToolStripButton)
//{
e.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
//}
if (e.Item is ToolStripMenuItem)
{
Rectangle r = new Rectangle(e.TextRectangle.Location, new Size(e.TextRectangle.Width, 24));
e.TextRectangle = r;
e.TextColor = ColorTable.MenuText;
}
base.OnRenderItemText(e);
}
|
|
|
|

|
Felicidades por este trabajo!
Un saludo
|
|
|
|

|
Nice article! Can I have a taco?
|
|
|
|

|
Though this line made me LOL:
"Don't you miss the days when a button was drawn with a couple of lines to show a 3D effect"
Thanks,
Ben
|
|
|
|

|
Hi, first of all let me say that I love this work.
I have a suggestion that I like to put it on your consideration.
Can you add more color palettes by default to this control, for example, Blue and Silver.
I know that you have WindowsVistaColorTable, but you have the experience, and I know you can make this quickly.
Thanks anyway!
Best regards,
Mike Cast
|
|
|
|
 |