|
 |
|
|
Hallo, I have converted the C# renderer into VB, but there is the folowing problem:
The Menustrip is rendered in blue thats ok, but when the mouse goes over an item there is no gradient background. When I debug the code I see, that at the code DrawGradientToolItem(e.Graphics, e.Item, _itemToolItemSelectedColors) the array _itemToolItemSelectedColors has colors in it but all colorvalues are argb=(0,0,0,0). The converted code has no errors! But what can it be? Who can help me? Should I send some more code?
greetings- Dietrich
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
I Found the Solution
Change the name of the following Variables by putting a c in Front of them
#Region "Public Fields" Public cInsideTop1 As Color Public cInsideTop2 As Color Public cInsideBottom1 As Color Public cInsideBottom2 As Color Public cFillTop1 As Color Public cFillTop2 As Color Public cFillBottom1 As Color Public cFillBottom2 As Color Public cBorder1 As Color Public cBorder2 As Color #End Region
#Region "Identity" Public Sub New(ByVal insideTop1 As Color, ByVal insideTop2 As Color, ByVal insideBottom1 As Color, ByVal insideBottom2 As Color, ByVal fillTop1 As Color, ByVal fillTop2 As Color, ByVal fillBottom1 As Color, ByVal fillBottom2 As Color, ByVal border1 As Color, ByVal border2 As Color) cInsideTop1 = insideTop1 cInsideTop2 = insideTop2 cInsideBottom1 = insideBottom1 cInsideBottom2 = insideBottom2 cFillTop1 = fillTop1 cFillTop2 = fillTop2 cFillBottom1 = fillBottom1 cFillBottom2 = fillBottom2 cBorder1 = border1 cBorder2 = border2 End Sub #End Region
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
When a menu item is checked, it is also ticked. I don't know if it is possible to repair it, but I just came it across and wanted to tell it.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
After using this renderer, I got some icon issue. For example some of my icons for main menu consists of several sizes. In that case the renderer picked up a larger size than the standard for main menu, and the effect is bad.
And why not host this renderer on SF.net or CodePlex or Google Code so people can fire bug report easily?
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
Hi,
Very nice-looking renderer.
One small detail, in:
OnRenderToolStripContentPanelBackground
where you comment:
// Must call base class, otherwise the subsequent drawing does not appear!
Actually, you will not need this call - and you will eliminate the heavy background flicker - if you properly set e.Handled to true when you have painted it yourself.
Cheers,
JD
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
"You can check out our Krypton Toolkit free library at http://www.componentfactory.com/products.php"
Where is the 'free' library ?
I couldn't seem to find it.
If there is no free library, please revise your article and stop using it to lure people to a site where you are selling a commercial product.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
Even quicker, just download the free toolkit directly from here...
http://www.componentfactory.com/downloads/KryptonToolkit251.msi
Regards Phil
Phil Wright http://www.componentfactory.com The Free UI Control Library for .NET2
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Can anybody say is this source code is free. Because as I saw on http://www.componentfactory.com/ the source is 99$ So how And where did you got that. Can I use it freely. Thanks.
Osikas
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
I am not representing Phil, but it seems this source code is not the final code inside Krypton Toolkit, and Phil does not place an explicit license agreement here. So why not make use of the code freely? If Phil wanted to sue you later, he must have stated blah blah blah here to warn you already.
Also notice you will get no support from Component Factory for this article. Phil why not explicit state that we can freely use this article's source code?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
You'll need to pay for the Krypton Navigator Toolkit. There is a very cool Tab Control that can be drawn in any Office 2007 Theme.
I don't thing the autor will be agree to give all for free. if so, Where's the download link???
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
it is very slow to drawing when i load my application.
http://farm2.static.flickr.com/1054/838707123_307a518ae7.jpg?v=0
How can i improve performce for load in in render mode ?
Thanks.
thachvv
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
how can i renderer progressbar on status strip to make it the same as in office 2007? and how can i get other color tables of office 2007 schemas? thank you in foreward
Nothing is impossible
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
I am not familiar with MCL or MRL, but I suggest you use only open source or free components in an open source project.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
When the renderer draws the "check" for checked tool strip menu items, it draws it too large if the tool strip's image scaling is set to something larger than the default 16x16.
This has been fixed in the latest release of the actual Krypton Toolkit, but for those who don't only need the renderer, here is one possible fix. (This is probably not how it was fixed in the toolkit, but it does work.)
In the protected override void OnRenderItemCheck(ToolStripItemImageRenderEventArgs e) method of the Office2007Renderer class, add the following code (only what is italicized in bold, the rest is to provide context):
// Staring size of the checkbox is the image rectangle Rectangle checkBox = e.ImageRectangle;
// The default ImageScalingSize is 16x16, so we need to adjust the size // if the toolstrip is set to something larger. Size defaultScalingSize = new Size(16, 16); if (Size.Subtract(e.ToolStrip.ImageScalingSize, defaultScalingSize) != Size.Empty) { checkBox.Size = defaultScalingSize; }
// Make the border of the check box 1 pixel bigger on all sides, as a minimum checkBox.Inflate(1, 1); // Can we extend upwards?
----------------------------- In just two days, tomorrow will be yesterday.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
Hello,
It'd be great to provide all 3 themes of office 2007, including silver and black themes. as far as I've seen this only supports for blue theme.
Another question is, does these 3 themes of office 2007, relate (in anyway) to themes of windows xp?? are they selected automatically based on current windows xp theme, or they are selectable by user?
Thanks for the great work H. Eskandari
|
| Sign In·View Thread·PermaLink | 2.80/5 (11 votes) |
|
|
|
 |
|
|
If you still need an example you'll find it here:
http://www.angelonline.net/Portal/Blog/tabid/73/EntryID/13/Default.aspx[^]">
Regards /// Angel
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
The default may be theme dependent, but the office 2007 interface color scheme can be chosen from the Options menu of the application.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.Visit my homepage Oracle Studios[ ^]
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |