Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » QAT Collapse All
Subject Author Date
Gunter Avenius Oct 6, 2008 - 8:56 AM

Hello,




Elegant Ribbon 3.1, vb2005.




I want to create a ButtonGroup with three ToggleButtons in the QAT with Code.


How can i do this?


This works not:



Dim btn As New Elegant.Ui.Button
Ribbon1.QuickAccessToolbarControls.Add(btn)

Thanks and

best regards

Gunter


 

Technical Support Oct 8, 2008 - 7:07 AM

You should associate a command with a control in order to add it to the quick access toolbar.

For example:

Button b = new Button();
b.Command = new Elegant.Ui.Command("SomeCommand");
ribbon1.QuickAccessToolbarControls.Add(b); 

Gunter Avenius Oct 8, 2008 - 8:47 AM

Thanks.