Ribbon-AppButton

Topics related to the Krypton Ribbon.

Moderators: Phil Wright, Chris Porter

Postby Waescher » Thu Dec 06, 2007 7:15 pm

I really loved to see the button in your blog, Phil.
Incredible working speed, indeed! :D
Waescher
 
Posts: 219
Joined: Thu Jun 14, 2007 10:11 pm
Location: Germany

Postby Waescher » Thu Dec 13, 2007 10:19 pm

Hey Phil,

I've tested the 2.6.9 Beta. Very nice work. I posted this reply into this thread because it's just on the AppButton:

I think it looks good, but the button is a little bit too small. Theres one pixel missing in width and height.

Just take a look at the pic (click to zoom):
Image

By the way: The distance to the form-border is different in office, too. Your button is positioned 1 pixel closer to the left and 2 pixel closer to the top of the form.
If you maximize a KryptonRibbon-Form, you'll see that the top pixels of the button are truncated ...

Anyway ... looks great! I love the new ApplicatinMenu :wink:

Best regards,
Waescher
Waescher
 
Posts: 219
Joined: Thu Jun 14, 2007 10:11 pm
Location: Germany

Postby Darkas » Fri Dec 14, 2007 7:50 am

I like it too, but there ist one thing with the menu of the appButton (it doesn't matter if a normal context menu or the appButtonMenu): if you click on the appButton while the context menu is shown, then it flickers and it shows the menu again, but I think it should be minimized, right?
cheers, Andre
Darkas
 
Posts: 90
Joined: Tue Apr 17, 2007 12:46 am
Location: Germany (Würzburg)

Postby Phil Wright » Fri Dec 14, 2007 11:41 am

Waescher - I have updated the button to be a pixel bigger in both directions and to start a couple of pixels further down.

Darkas - I have updated the button so pressing it when already open closes it down without automatically opening it up again.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Postby Waescher » Mon Dec 17, 2007 12:15 am

Oh, and please don't forget the AppButtonDoubleClick-Handler to exit the app, for example ...
Waescher
 
Posts: 219
Joined: Thu Jun 14, 2007 10:11 pm
Location: Germany

Postby Waescher » Sat Jan 12, 2008 1:39 am

Hi Phil,

why do you resize the RibbonAppButtonImage?

Another Office2007 vs. KryptonRibbon:

The button on the right is my approach to clone the MS-AppButton (of course I'm not going to release the software with the Microsoft-logo :wink: - it's just to show the difference). The image is not centered correctly.

Image

If I try to use a 32x32px image with the same icon placed a few pixel closer to the bottom, the ribbon resizes it.

Image

Wouldn't it be better to let the developer decide, how big the icon should be and how it's placed?
For example, to use an image which covers nearly the whole button, like Codejock does.
They use an semi-transparent white imprint/negative of their logo so the buttons state-colors shines through it - with a very nice effect, I think.

Image



Best regards,
Waescher
Waescher
 
Posts: 219
Joined: Thu Jun 14, 2007 10:11 pm
Location: Germany

Postby firda » Mon Jan 14, 2008 5:53 pm

Phil Wright wrote:Second
You are right. The actual app button is draw by two halfs. The top half is usually in the window caption area and the bottom half in the actual ribbon control. So drawing the button involves two windows messages, one for the caption are and another for the ribbon control. Because they are not part of the same single windows message you see a flicker because one half is painted a fraction before the other. Not sure how to improve on that.


I think, you can force the drawing of second half. It is one force painting per window = acceptable "performance reduction" (not noticable). There should also be some mechanism to clear the "dirty flag"... but I do not know right now.

Paint(OtherHalf.CreateGraphics())
firda
 
Posts: 5
Joined: Thu Jan 10, 2008 5:27 pm
Location: CZ

Previous

Return to Krypton Ribbon

Who is online

Users browsing this forum: No registered users and 0 guests