I'm making an MDI application in which I would like to use the AppStylist for the mdi parent and childs. It works fine except for a mdi child called with the ShowDialog() method. Each form has the UltraToolBarsManager. If the ribbon is visable I get the round (office 2007) icon in the titlebar of the dialog, which I don't want. When I set the Visable property of the ribbon to false and the FormDisplayStyle to RoundedSizable it seems almost ok, except that the minimize, maximize and close button are not styled properly. Is there a way to style a modal form the same way as a non-modal form (having the same titlebar)?
Hi,
I'm afraid I do not understand what you mean. You cannot show an MDI Child form using ShowDialog. This results in an exception " Form that is not a top-level form cannot be displayed as a modal dialog box. Remove the form from any parent form before calling showDialog."
Of course, you are right. It is a mdi application, but when starting a model form I do not set the MdiParent property. So I should rephrase my question to how to style a modal form without having the round ribbon icon (so just a titlebar, like a non-modal form in an MDI application).
Okay, so MDI has nothing to do with it, it's just a modal dialog?
I just tried this out and it seems to work fine for me. What exactly is wrong with the buttons? Can you post a screen shot?
Thanks for your help. It turns out that the minimize, maximize and close button are sytled differently when the Visable property of the Ribbon is set to false. The difference between a modal and non-modal form was actually in my code. It is still not the way I would like it to be, but when I set the visable property to false both on the modal and non-modal forms, then at least they look the same.
Well, if that's the case, it looks like abug to me. I can't see why a modal form would be any different. I recommend that you Submit an incident to Infragistics Developer Support.
Normally, I would forward this over to them for you, but it's probably best in this case if you go through the web and fill out the form, because I suspect that the information you fill in there such as operating system might be relevant to the problem.
Indeed, MDI has nothing to do with it (except maybe that the StyleManager is called from the form that starts the modal form). The difference between the modal and non-modal form is visable for example when the example style 'Trendy.isl' (not my personal favorite ;-) is used: