Hello,
On my App I have two types of buttons: an UltraCheckEditor button and an UltraButton button.
I want to set the appearence of UltraButton to the same property values of my UltraCheckEditor button.
How can I do this?
Thank you.
Best regards,
Maria
Can you please help me out?
Hi Maria,
I'm not sure if these two controls support all of the same styles. There are many settings that affect the appearance of the button. So without knowing exactly what appearance and style you want, it's hard to offer you any useful advice.
You should look at properties like ButtonDislpayStyle, UseOsThemes, and Appearance.
I set my UltraCheckEditor properties:
b = new UltraCheckEditor(); b.Size = new Size(95, 22); b.Style = Infragistics.Win.EditCheckStyle.Button; b.Click += new System.EventHandler(this.b_Click); b.CheckedChanged += b_CheckedChanged; b.UseOsThemes = Infragistics.Win.DefaultableBoolean.False; b.UseAppStyling = true; Color back = Color.FromArgb(230, 243, 255); b.BackColor = back; b.Appearance.TextHAlign = Infragistics.Win.HAlign.Center; b.Appearance.TextVAlign = Infragistics.Win.VAlign.Middle;
But, it does not work on my case. The button appearence does not assume this properties.
How I am doing worng?
Thank you in advance.
Hello Maria,
Are you trying to apply all these properties to the UltraButton? It does not have support of EditCheckStyle, nor CheckedChanged or BackColor as Mike said. The easiest way to style the UltraButton would be to use the AppStylist I think.
Thank you for your reply.
I change my code so now I have two UltraButton Groups. I'm using AppStyle on both groups.
Now I need to set the appearence of my selected button until I select another one, but with AppStyle set to true I cannot do this...
Is there any solution?
I have to say that I am a little bit confused now, are you trying to give the UltraButton an appearance when it is on focus, until you select another button or you want to change it's selected appearance? If you want the last, you could also change it from the AppStylist. I do not know if this is the best way to help you here, so if you like, you could tell me all of your requirements and your final goal and I could try and make it work for you. A screenshot, picture(if you could make one) of your needs might help as well.
I was able to solve my problem changing the Appearence oh the UltraCheckEditor.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.