Is it possible to display an icon in the top left corner of a Windows Form that is a different shape than the standard 16X16 pixel icon?
It appears that Skype has an icon that is much wider than standard: (See Attached Cropped Screen Shot)
Is it possible in a Windows From App… I could not figure out how to use the custom skin to create this?
Is it even possible using a custom skin?
Thanks in advance.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi David,
Thank you for contacting us. This issue is not directly related to our controls. To accomplish this task, you need to manually draw the form's caption by using WinAPI methods. We do not have any examples that demonstrate how to accomplish this task. I suggest you contact Microsoft, because they can provide you with more detailed information about this issue.
Thank you,
Pavel.
Hi,
Not the answer I was hoping for, I seen some of the custom skins and I am playing around with the editor, I was really hoping that we could disable the 16X16 right corner icon and add a custom graphic then move the title bar title over abit depending how long the graphic was. But assuming your answer is still going to be no.
Is the Custom Skin Editor only for adding very small images (tiled background images - Refering to the Christmas example snow flakes) and changing the colors?
Is there a way I can create my own custom skin using DevExpress Forms to create this effect? Or would I have to go back to standard forms and ask Microsoft for Help to acheive this Effect?
Sorry to keep asking, I have a customer who wants to use this and I am just trying to decide if I can do this using the Ribbon Form.
Thanks in advance.
Ah… Sorry I did not mean to confuse you guys… Let me try to clear things up…I am talking about the disabling the standard 16X16 (default) icon on the left hand side… not the right…
And for the image, is there a way to add a background to the title bar to acheive this effect of a logo like the example provided using custom skins… I seen how you can add snow flakes in the christmas skin and I think there is an October skin that has other images simular from the examples.
I tried searching DevExpress TV but I have not seen any examples on how to create these custom skins, let alone on how to adapt them to what I am trying to achieve.
I hope this clears things up.
Looking forward to your reply…
Hi David,
Our XtraForm provides a functionality to manage From.Caption painting when a skin is used. In this case, you can override the XtraForm border painter and implement your custom painting logic in corresponding overridden methods.
For example, override the GetIconSize and GetIcon methods to paint a custom Icon in the XtraFrom caption. I want to notice that you need to call SkinManager.EnableFormSkins to enable the title bar skinning painting.
Attached is a simple example that illustrates this approach.
I hope you will find this information helpful. Do not hesitate to contact us if you have any additional questions, or if you need further assistance.
Thanks,
Oleg
This is perfect…
Check out your modified example…
Thanks.
Hi.
I was thinking that DevExpress.XtraEditors.XtraForm and DevExpress.XtraBars.Ribbon.RibbonForm was the were close if not inherted forms some how, maybe not… Now I see there are totally different
Is there anyway to get this solution to work with the ribbon control?
I have included a sample. in C#
Thanks.
Hi David,
Thank you for your response. I have researched your sample. To implement the previously reviewed approach in the RibbonForm instance, your custom MyFormPainter class needs to be inherited from the RibbonFormPainter class:
public class MyFormPainter : RibbonFormPainter { .......... public MyFormPainter(RibbonForm owner, ISkinProvider provider) : base(owner, provider) { ............ } }
Please try this approach and let me know of your results. I am looking forward to your response.
Thanks,
Oleg
Hi.
Perfect It works…
I added some code and providing it just in case for reference later or someone else needs it…
Thanks.
You are welcome, David!
I am happy to hear that my assistance was helpful to you. Thank you for posting your code in this thread.
Should you have any questions regarding our products, do not hesitate to contact us.
Thanks,
Oleg