Ribbon in a non-form container

Topics related to the Krypton Ribbon.

Moderators: Phil Wright, Chris Porter

Ribbon in a non-form container

Postby Chris Porter » Tue Dec 01, 2009 6:17 pm

Reading on the recent thread regarding a Ribbon not rendering properly when located inside of a KryptonPanel made me wonder if it would be possible for the Ribbon to either prevent itself from being placed in an incorrect container (something besides a form) or possible give a warning when the user attempts do make this mistake.
Chris Porter
 
Posts: 714
Joined: Fri Oct 12, 2007 5:39 am
Location: Oklahoma City, OK, US

Re: Ribbon in a non-form container

Postby Phil Wright » Tue Dec 01, 2009 10:15 pm

I actually spent some time getting the Ribbon working when not placed as an immediate child of the Form. If you try this with the 4.1 release it might just work.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Ribbon in a non-form container

Postby dg78 » Wed Dec 02, 2009 10:03 am

I have always problem with ribbon and the form titlebar even if I have only a form without panel. It is good with 4.0 and not good with 4.1.
I have also sometimes, when I put a ribbon from the toolbox, a small square of grey color underneath the cursor and it doesn't want to remove.
In C:\Program Files\Component Factory\Krypton Suite 4.1.0\Bin\PublisherSigned , there is not Toolkit.dll and Navigator.dll.
dg78
 
Posts: 28
Joined: Sat Oct 24, 2009 12:10 am
Location: France

Re: Ribbon in a non-form container

Postby Phil Wright » Wed Dec 02, 2009 10:35 am

Redownload the installer as it should now install the missing publisher signed files.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Ribbon in a non-form container

Postby dg78 » Wed Dec 02, 2009 5:58 pm

I did :
- uninstall Krypton 4.1, then I looked on the Gac (c:\windows\assembly) : nothing about Component Factory, it is the same in Program Files

- I install first Krypton 4.0 : in the Gac I found the dll and there is the Component Factory folder in Program Files with no missing published dll. Everything is good for the Component Factory code in Documents and Settings.
I run my code and it is good for my form with a ribbon in a panel. This form existed already then I do't use the toolbox.
I install first Krypton 4.0 just to see it is good with 4.0

- I uninstall Krypton 4.0, then I looked on the Gac (c:\windows\assembly) : nothing about Component Factory, it is the same in Program Files

- I install now Krypton 4.1 : in the Gac I have only 4 dll (workspace is missing) and in Program Files in PublisherSigned there are only 2 dlls (docking and ribbon). Everything is good for the Component Factories code in Documents and Settings.
I run my code and now it is not good for my form with a ribbon in a panel. . This form existed already then I do't use the toolbox.
It is the same if I reference the dll or if I add the Component Factory code as projects and I reference these projects.

Why is it good in 4.0 and not in 4.1 ?
Do you know where and how in the code, the ribbon take the form tittlebar ?
dg78
 
Posts: 28
Joined: Sat Oct 24, 2009 12:10 am
Location: France

Re: Ribbon in a non-form container

Postby Phil Wright » Wed Dec 02, 2009 10:47 pm

I just downloaded the KryptonSuiteSource410.zip file and installed it. There were all the publisher assemblies. Are you sure you have downloaded the latest version?
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Ribbon in a non-form container

Postby dg78 » Thu Dec 03, 2009 1:24 am

I downloaded from a link you sent me the 18th november. I sent you a copy by mail.
dg78
 
Posts: 28
Joined: Sat Oct 24, 2009 12:10 am
Location: France

Re: Ribbon in a non-form container

Postby dg78 » Thu Dec 03, 2009 2:35 am

Oh oh !! I downloaded again with the same link and I have another file dated 19th November with 52 646 Ko in KryptonSuiteSource410.msi instead of 51 528 Ko the first time I downloaded the 18th.

You did some changes without to write on the forum.

Perhaps you are as me, with age, you begin to lost memory or it is your new assistant Billy who does the changes without to say you. ;-)

Now, all dlls are here and a ribbon in a simple form is OK but inside a panel it is not good.

Thanks to answer to my last question :
Do you know where and how in the code, the ribbon take the form tittlebar ?

Dominique
dg78
 
Posts: 28
Joined: Sat Oct 24, 2009 12:10 am
Location: France

Re: Ribbon in a non-form container

Postby Phil Wright » Thu Dec 03, 2009 10:11 am

I am not sure I understand your last question.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Ribbon in a non-form container

Postby dg78 » Fri Dec 04, 2009 8:10 pm

Sorry for the delay, I was out of my office.

Here the image to illustrate my last question.

Image

Of course I could put in a form, first a ribbon and then a panel, then it will be ok.
But my forms inherits from a base form in which I have a panel and some control. I want for some forms add a ribbon, then I have the problem that the ribbon does not "take" the tittlebar of the form.
dg78
 
Posts: 28
Joined: Sat Oct 24, 2009 12:10 am
Location: France

Re: Ribbon in a non-form container

Postby Phil Wright » Tue Dec 29, 2009 11:49 am

The ribbon will only integrate with the form chrome if it is a direct child of the form. I would suggest you could always add a ribbon in your base form and then choose to not show it when it is not needed.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Ribbon in a non-form container

Postby Liqdfire » Sat Feb 06, 2010 5:57 am

When I put the ribbon in just a user control, in the designer it does not render at all. However, once I drop that user control onto a form it renders perfectly. Is there anyway to get it to render on just the user control so I can design how the user control is supposed to look?
Liqdfire
 
Posts: 17
Joined: Tue Jan 27, 2009 7:54 am

Re: Ribbon in a non-form container

Postby Phil Wright » Mon Feb 08, 2010 10:29 am

No, it needs to be inside a Form before it starts to render as that is the expected ultimate owner of the control.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia


Return to Krypton Ribbon

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron