Subject |
Author |
Date |
|
Lionel Keene
|
Nov 19, 2009 - 9:46 AM
|
I’ve added a Ribbon control to my form, and when I tried adding a control or two to the group box on the ribbon tab I found it impossible to arrange the control layout. For example, adding a Label control to the group box by dragging from the ToolBox window places the Label in the top center of the group box. It isn’t possible to drag the label to another location within the group box as I normally would using WinForms Designer within VS as every time I try to drag it to a new location (say, to the vertical center of the group box) it snaps back to its default placement. What is the concept behind the layout behavior and what is the proper way to go about arranging my controls the way I want in the ribbon group boxes? Is there a little article somewhere? Do I have alignment options? Thank you.
Otherwise, so far the Ribbon looks great! Very impressive.
-L
|
|
Technical Support
|
Nov 19, 2009 - 7:06 PM
|
We will prepare a sample illustrating a custom arrangement of the controls inside the ribbon group. We will provide it in 24 hours. Stay tuned.
|
|
Lionel Keene
|
Nov 19, 2009 - 5:58 PM
|
I’ve given up on the Panel approach and am trying to work with the Ribbon control the way it "wants" me to, but I’m still having a heck of a time. I see in your RibbonGUI demo that you have a group labeled "Font" when the "Home" tab has focus. In the Font group you have two Label controls with drop down list box controls right next to them. They appear to have their vertical centers aligned.
I’ve been trying for the last hour (!!!) to duplicate this simple arrangement and I cannot. First a drop a Label control onto the group and change its Text property to whatever. The Label is now centered in the upper portion of the group and cannot be moved or resized. I then drop a Textbox control onto the group and it appears centered directly beneath the Label control. It cannot be moved or repositioned. There is no (intuitive) way that I can see to move the Textbox such that it is to the right of the Label control.
I’m starting to think that I have some fundamental misunderstanding of how this control is meant to be used. Does this Ribbon control, in fact, allow for unique arrangements of controls on its surface? If so, how? If not, how does one know a priori what the permissible patterns are?
-L
|
|
Technical Support
|
Nov 20, 2009 - 2:34 PM
|
Try the following sample
Custom panel-based container
It uses a custom container inherited from Elegant.Ui.Panel and allows you to arrange child controls arbitrary. Please let us know if id does not help.
|
|
Lionel Keene
|
Nov 20, 2009 - 3:57 PM
|
I see now. I had actually tried to change the Back Color property of the Panel to Transparent earlier to improve appearance, but I was trying to do it through the property window and of course was unable to. I didn’t think to derive from the Panel class and SetStyle(...). This will do I believe.
Thanks for doing that!
-L
|
|
Technical Support
|
Nov 19, 2009 - 1:50 PM
|
Any ribbon group is compliant with the layout presented in Microsoft Office applications. In order to manually arrange controls, just add a Panel to your ribbon group and use it as a container for your controls.
|
|
Lionel Keene
|
Nov 19, 2009 - 4:44 PM
|
You mean the controls in each of the Ribbon groups are only allowed to adopt a certain (prefixed) configuration?! I was unaware of this limitation...maybe this won’t work for me after all.
I’ve tried the Panel control trick but, unfortunately, the Panel is also subject to the snapping behavior where it is pinned to its initial location and can only be resized and not repositioned within the group box. I suppose the idea is to expand the dimensions of the Panel such that it fills the group box and then start dropping your controls onto it. This ends up looking utterly horrid and would be a terrible shame to do since this ribbon control looks so nice out-of-the-box. Is there no other way around this?
-L
|
|
Lionel Keene
|
Nov 18, 2009 - 2:02 PM
|
Hello all, I’ve just downloaded an evaluation version of Elegant Ribbon. After installing it, I can see the Ribbon Controls in the Toolbox of Visual Studio Pro 2008, but I also have a copy of Visual C# Express 2008 and the Ribbon controls do not show up in the toolbox there. How do I get the tools in C# Express? Thanks in advance. -L
|
|
Lionel Keene
|
Nov 19, 2009 - 9:40 AM
|
|
|
Technical Support
|
Nov 19, 2009 - 4:08 AM
|
We use a standard way to integrate our components with the Toolbox using a toolbox provider. Apparently the Visual C# Express doesn’t support it. But you can add items manually to the toolbox as it is described below.
First of all, add references to Elegant.Ui.RIbbon and Elegant.Ui.Common to your project (select the dlls from the location where the Elegant Ui is installed on your computer). Then open a form to show the Toolbox, right-click on it to invoke a context menu and select Choose items. Navigate to Elegant.Ui.Common.dll and Elegant.Ui.Ribbon.dll from the installation directory. After that all the Elegant Ui components should appear in the toolbox list.
|
|
Pavel Murashov
|
Nov 17, 2009 - 2:01 AM
|
I put Elegant.Ui.ComboBox into Elegant.Ui.StatusBar, and fill ComboBox items dynamically in runtime. But ComboBox width size set automatically for first selection item. How I can set width size for ComboBox in StatusBar constantly? Thanks.
|
|
Technical Support
|
Nov 18, 2009 - 6:49 AM
|
The ComboBox control is sized automatically because it has its AutoSize property set to true. In order to specify a custom width use the code like as follows: private void Form1_Load(object sender, EventArgs e)
{
comboBox1.AutoSize = false;
comboBox1.Height = comboBox1.PreferredHeight;
comboBox1.Width = 200;
}
|
|
Martin Eeltink
|
Nov 16, 2009 - 9:03 AM
|
I am using a gallery on a usercontrol. The gallery in the ribbon looks fine but the gallery on the user control is not effected by the formframeskinner. How can i use a formframeskinner on my user control ? Thanks a lot,
Martin
|
|
Martin Eeltink
|
Nov 23, 2009 - 7:32 AM
|
|
|
Technical Support
|
Nov 23, 2009 - 9:42 AM
|
The gallery control has some special appearance when used inside a ribbon group. The gallery appearance inside a UserControl is different, but it still depends on the selected theme. Your screenshot shows that the gallery is ok, it is supposed to look like that and there is no way to make it look the same as in the ribbon. Anyway you can play with the visiblity of certain gallery elements. Run the ControlsSample sample(it comes with the Elegant Ui installation) and selecte the "Gallery" tab page to see the ways you can customize it.
|
|
Technical Support
|
Nov 16, 2009 - 1:38 PM
|
The Gallery control default appearance differs from the one in the ribbon. When you place a Gallery control into a container that is not a ribbon group it looks different. Can you send us a screenshot of the gallery in your project?
|
|
Vladimir Djuric
|
Nov 15, 2009 - 2:34 AM
|
Is it possible to add predefined hint text to TextBox control when it is empty. This kind of TextBox is for example available in Internet Explorer in right top corner for search providers. If it is not possible are you considering to implement this? Regards,
macofaco
|
|
Vladimir Djuric
|
Nov 16, 2009 - 1:53 PM
|
Thank you for your response. it would be really cool to have such control :) I think I also found small rendering issue in application menu. Please see screenshot for details: 
|
|
Technical Support
|
Nov 16, 2009 - 2:09 PM
|
Thank you for reporting the issue. We’ll fix it in the next release.
|
|
Technical Support
|
Nov 16, 2009 - 1:13 PM
|
We do not support this feature at the moment. Thank you for your question. We will try to add this support in the next release.
|
|
Alex Pag
|
Nov 11, 2009 - 5:34 AM
|
How i can set drop down list items count in combo box ribbon element?
|
|
Technical Support
|
Nov 11, 2009 - 9:21 AM
|
You cannot set the Count property. It is incremented when you add items. It is a get property. Or if you mean something else, please elaborate.
|
|
Alex Pag
|
Nov 11, 2009 - 5:23 AM
|
Hi. Show me please how i can active tab page programmatically. I try use Select() function but this function don’t work...
|
|
Technical Support
|
Nov 11, 2009 - 5:44 AM
|
You cannot set the Count property. It is incremented when you add items. It is a get property. Or if you mean something else, please elaborate.
|
|
Technical Support
|
Nov 11, 2009 - 5:36 AM
|
You can use the SelectedTabPage method of the tab control.
|
|
Alex Pag
|
Nov 11, 2009 - 5:33 AM
|
How i can set drop down list items count in combobox ribbon control?
|
|
Alex Pag
|
Nov 11, 2009 - 5:31 AM
|
|
|
Alex Pag
|
Nov 10, 2009 - 4:36 AM
|
hi. how i can set combobox ribbon for autosearch items with pressed symbol ? (such as standart combobox if i set dropdownstyle = dropdownlist)
|
|
Technical Support
|
Nov 10, 2009 - 6:28 AM
|
You can do this with the following properties of the combo box:
- AutoCompleteMode - AutoCompleteSource - AutoCompleteCustomSource
|
|
Alex Pag
|
Nov 10, 2009 - 3:29 AM
|
Hi, i can create combobox with multicolumns?
|
|
Technical Support
|
Nov 10, 2009 - 7:59 AM
|
Unfortunately a multicolumn combo box is not supported yet.
|
|
Pavel Murashov
|
Nov 10, 2009 - 3:24 AM
|
How I can load image for Application Button dinamically?
Thanks.
|
|
Technical Support
|
Nov 10, 2009 - 6:01 AM
|
You can do this using the following code: ribbon1.ApplicationButtonImages.Images.Add(
new ControlImage(
"Normal",
System.Drawing.Image.FromFile(<Image path>)
)
);
|
|
Roger Kohnstamm
|
Nov 10, 2009 - 2:52 AM
|
Hi
I have a problem with putting a background image on my elegant Ribbon
I try this
System.Drawing.Image d = System.Drawing.Image.FromFile(<Image path>) this.ribbon1.BackgroundImage = d;’
It won’t show up the image in my ribbon.
I also tried to add it to the tabpage oor the ribbon-group but it won’t show an image? What am I doing wrong.
Thanks in advance
Roger
|
|
Technical Support
|
Nov 10, 2009 - 4:52 AM
|
The background image property is not supported in Elegant Ribbon. It is not mentioned in the Microsoft User Interface Design Guidelines either (see for example, this article).
However we can consider adding this property. Could you elaborate on this? If you provide a screenshot that would be great. Are you talking about a background image for the ribbon group or the entire ribbon page with several ribbon groups?
|
|
Imgen Wakin
|
Nov 5, 2009 - 9:42 PM
|
I upgraded from v3.1 to v3.3 lately but encountered two issues. Issue 1: a context menu which is supposed to be show up when user right click shows up at my app’s startup which is weird Issue 2: the font changed from Arial (which I set programmatically) to some other font which is even more weird. Can you guys help me out here. What kind of change should I make when I upgrade?
|
|
Technical Support
|
Nov 10, 2009 - 8:50 AM
|
We checked the issues you mentioned and found no problems. Could you create a very simple project that illustrates the problem and send it to us at support@prof-uis.com? Thank you.
|
|
Imgen Wakin
|
Nov 5, 2009 - 9:43 PM
|
PS: I’m using VS2008 Express + Win7 RC(Build 7100)
|
|
Technical Support
|
Nov 7, 2009 - 7:55 AM
|
Thank you. We will do some testing in order to locate the bug and notify you of the results.
|
|
esraa khedr
|
Oct 27, 2009 - 10:47 AM
|
Dear, i need to know how can i select a new tab. For Example at Ribbon UI Sample If the Home Tab is selected, how can i go to Page Layout tab, or View tab, or any other tab at the ribbon ?!!! Expecting your reply Thanks
|
|
Technical Support
|
Oct 28, 2009 - 8:23 AM
|
You can use the Ribbon.CurrentTabPage property to get or change the tab page that is currently selected.
|
|
esraa khedr
|
Oct 25, 2009 - 6:38 AM
|
Dear; How can i create an event on ribbon.HelpButton?!! Thanks
|
|
Technical Support
|
Oct 26, 2009 - 8:29 AM
|
You can subscribe to clicks on the Help button using Ribbon.HelpButtonClick event. You may also want to know that all the properties related to the ribbon help button are called Ribbon.HelpButtonXXX with where XXX being the name of a specific property of the help button.
|
|
esraa khedr
|
Oct 25, 2009 - 6:30 AM
|
Dear; I have tried to use Elegant ribbon on Windows Vista but didn’t work!!! how can i make it work?!! Thanks
|
|
esraa khedr
|
Oct 27, 2009 - 10:36 AM
|
Sorry for being imprecise; i will try to describe in detail i did the setup of Elegenat Ribbon on my PC, then took the EXE of ribbon sample and tried to open them on other PCs but didn’t work. then i installed Elegant Ribbon on these PCs, some accomplished the installation process and some did not. there was an error " couldn’t complete installation becuase (mscoree.dll) was not found " Is there any prerequisites to make EXE work on different PCs and different operating systems? thanks
|
|
Technical Support
|
Oct 28, 2009 - 3:50 AM
|
|
|
esraa khedr
|
Oct 28, 2009 - 6:32 AM
|
Thanks for reply Actually i have tried this on multiple PCs one of them didn’t have .Net frame work and EXE worked well !!!! Another one i tried to install Elegant but gave the error i mentioed before, when i tried to uninstall; couldn’t accomplish the uninstallation and crashed. Another PC that contain .Net frame work. tried to setup Elegant and installation accomplished well. but when i tried to start the EXE crashed. I dont know what is the problem, please support me with solutions for these scenarios Thanks very muhc
|
|
Technical Support
|
Oct 28, 2009 - 9:23 AM
|
The presence of .NET Framework is mandatory for using Elegant Ui. No component in our distribution package can work without .NET Framework. As for the application crash, please send us the error details, so we could help you efficiently.
Please also note that Windows Vista and Windows 7 comes with .NET Framework out of the box. So there is no need to install .NET Framework on these OSes. If an OS does not have .NET installed (e.g. Windows 2000 or Windows XP), you should install it manually as we described in the previous message.
You wrote Another PC that contain .Net frame work. tried to setup Elegant and installation accomplished well. but when i tried to start the EXE crashed.
Could you make a screenshot or provide more info about that?
|
|
Technical Support
|
Oct 25, 2009 - 12:00 PM
|
Thank you for your feedback. Could you be more specific? What do you mean by "didn’t work"? Please let us know if we can reproduce the problem using a sample application coming with Elegant Ribbon?
|
|
Zaharia Octavian
|
Oct 20, 2009 - 2:17 AM
|
Hi there! Does any body knows way the validating event does not fire when a button in the ribbon is pressed? I have a user control on my form for editing the properties of an entity. I change something and when the validating event is fired I perform the same operation for that entity. Now if I change something in that editing form and press a button on the ribbon the validating event is not fired. Does any body knows a solution for this? Best regards, dexter
|
|
Technical Support
|
Oct 22, 2009 - 7:23 AM
|
Actually there are certain conditions that should meet for Validating event to be raised. You can learn this from here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.validating.aspx
The main condition is that the validate control is loosing its focus. The ribbon control is more like menu and it doesn’t take the focus from the focused control in the most cases, it means that Validating event also will not fire.
We can suggest you a workaround for this:
1) Subscribe the Ribbon.PreviewMouseDown event.
2) Insert the following code into the event handler method:
private void ribbon1_PreviewMouseDown( object sender, Elegant.Ui.PreviewMouseEventArgs e )
{
if ( e.Target != null && e.Target.GetType() == typeof( Elegant.Ui.Button ) )
{
Validate();
}
}
This should solve your problem. If you still experience any problems please let us know.
|
|
Roman Bachmann
|
Oct 12, 2009 - 6:12 AM
|
I’d like to have a look at the new Office2010 GUI, so I decided to update my 3.2 installation to 3.3. Because of the fact that an update is not designated, the 3.3-setup asks me so uninstall 3.2 and install afterwards 3.3. This works fine. :) But: When I compile the project (now with the new version 3.3), I get an error notifing me about a missing assembly-reference (Elegant.Ui was not found). What do I have to do now? Which References do I have to delete/refresh? And do I have to delete the 3.2-items in the visual studio toolbox manually? Thanks in advance
|
|
Roman Bachmann
|
Oct 12, 2009 - 10:25 AM
|
Thank you for your answer. I deleted all references and added them again. This works perfectly now! The toolbox wasn’t cleared automatically (I can’t remember that I’ve added them manually). OS: Windows 7 Professional x64, Visual Studio 2008 SP 1. Thanks again for this great support.
|
|
Technical Support
|
Oct 12, 2009 - 12:32 PM
|
Thank you for your kind words. By the way, are you sure that the items in the toolbox are of version 3.2 rather than 3.3? If they can be added onto the form then they should of the latest one.
|
|
Roman Bachmann
|
Oct 12, 2009 - 1:11 PM
|
Uh, I didn’t try to add them. Hovering the Items showed me Version 3.2.0. I was confused because both versions were listed (for example Button 3.2.0 & Button 3.3.0).
|
|
Technical Support
|
Oct 12, 2009 - 6:38 AM
|
It seems your project expects v.3.2 to be supplied because it was set up to work with 3.2. So after upgrading to v.3.3 you should switch the project references to v.3.3. After that the project should be compiled successfully.
As for the toolbox items, they should have been uninstalled unless you did not add them manually. Please let us know which OS and Visual Studio you are using?
|
|
Vinit Patil
|
Sep 28, 2009 - 10:24 PM
|
In shell dialog ,first entry of the dialog not selected directly, I am using shell dialog for open file.
|
|
Vinit Patil
|
Sep 29, 2009 - 6:58 AM
|
Please see my above reply
|
|
Technical Support
|
Sep 29, 2009 - 1:16 PM
|
|
|
Vinit Patil
|
Sep 29, 2009 - 6:57 AM
|
CExtShellDialogFile dlgShellFile(NULL,CExtShellDialogFile::__EFDT_OPEN_SINGLE);
dlgShellFile.m_comboFileTypes.SetFilter(
filter
);
if( dlgShellFile.DoModal() == IDOK )
{
CString pathname;
pathname = LPCTSTR(dlgShellFile.m_arrRetValNames[0]);
OpenDocumentFile( pathname );
} This I check this code for Operating System " Vista "
Also I check the prof UI available sample examples. (e.g AviFrames) I got the same action, first entry from dialog box is not selecting. Any thing else please let me know. Thanks in advance.
|
|
Technical Support
|
Sep 29, 2009 - 4:31 AM
|
We are sorry but could you tell us what shell dialog you mean in your message?
|
|
esraa khedr
|
Sep 27, 2009 - 7:45 AM
|
Dear i am trying to use Gallery.SelectedItemChanged event, but the selectedItem property doesn’t differentiate between the different selected items Can you help me to use this property properly ?!! Regards, Esraa
|
|
Technical Support
|
Sep 30, 2009 - 12:43 PM
|
The output you are getting is completely correct. The fact is that in both cases you receive a reference to the object of the class GalleryItem that exposes all the properties for each gallery item. It is naturally for class objects that WriteLine method produces the object type name string. You can cast the e.OldValue or StyleGallery.SelectedItem to the type GalleryItem to access the item properties. You can also call StyleGallery.Items.IndexOf(e.OldValue) or StyleGallery.Items.IndexOf(StyleGallery.SelectedItem) in order to get the correspondent item index.
|
|
esraa khedr
|
Sep 30, 2009 - 12:54 AM
|
Thanks very much for reply, but unfortunately it did not work with me. I have tried the following code private void StyleGallery_SelectedItemChanged(object sender, GallerySelectedItemChangedEventArgs e)
{
Console.WriteLine(">>"+StyleGallery.SelectedItem);
Console.WriteLine(">>>"+e.OldValue);
} and the result was "Elegant.Ui.GalleryItem" for each time i select a new item which is unexpected, i’ve expected to find an index of the selected item or any other unique identifier Waiting for reply, Thanks
|
|
Technical Support
|
Sep 28, 2009 - 4:53 AM
|
We have just checked this. The SelectedItem property changes each time when you select a new item in the gallery. When you handle the Gallery.SelectedItemChanged event, you can get an old value from in the EventArgs. The new value is in the SelectedItem. void gallery1_SelectedItemChanged(object sender, GallerySelectedItemChangedEventArgs e)
{
//gallery1.SelectedItem;
//e.OldValue;
} So this should work. If not, please elaborate so send a test app to our support mail box.
|
|
esraa khedr
|
Sep 30, 2009 - 12:54 AM
|
Thanks very much for reply, but unfortunately it did not work with me. I have tried the following code private void StyleGallery_SelectedItemChanged(object sender, GallerySelectedItemChangedEventArgs e)
{
Console.WriteLine(">>"+StyleGallery.SelectedItem);
Console.WriteLine(">>>"+e.OldValue);
} and the result was "Elegant.Ui.GalleryItem" for each time i select a new item which is unexpected, i’ve expected to find an index of the selected item or any other unique identifier Waiting for reply, Thanks
|
|
esraa khedr
|
Sep 27, 2009 - 4:43 AM
|
Dear I would like to know whether ElegantRibbon supports Docking feature or not, and if it does would you send to me a screenshot?!! Regards
|
|
Technical Support
|
Sep 30, 2009 - 12:45 PM
|
The Elegant Ui doesn’t support dockable containers yet. We are going to add support for these in version 3.4. Right now we are releasing version 3.3.
|
|
Technical Support
|
Sep 28, 2009 - 4:29 AM
|
Do you mean the ribbon itself can be docked? No, the ribbon cannot be docked. It replaces the menu line, which is at the top. If you mean something else, please elaborate.
|
|
esraa khedr
|
Sep 30, 2009 - 12:56 AM
|
Thanks for reply Actually i didn’t mean docking at the ribbon, i mean docking at windowsforms controls Do you Support Docking at windowsforms controls? Regards
|