Hi!
I am using the UltraToolbar. There I have Standard Toolbar Buttons and I have ControlContainers with Standard UltraButtons on them.
When using different styles I get different font Settings on my Ultrabuttons in the ControlContainers. Basically I am Setting Fontsize, bold and fontfamily in my Toolbarsettings. But the Appstylist changes this Settings and does not apply These Settings on my Ultrabuttons.
I tried to modify the Resolution Order in the isl (e.g. Office 2007blue), but did not get the expected result.
How can I copy the Buttonstyle of the Toolbarbutton to my UltraButtons?
TIAJosef Resperger
Hi Josef,
If they are UltraButton controls, then all you have to do is Style the UltraButton UIRole and apply the same font to it as you are applying to the toolbars.
Thanks for the quick reply, but I think it is not that easy.I am doing this all dynamic - the whole toolbar, and Buttons are used on the forms too. If I go to style the button in General, this would affect not only the Buttons inside the toolbar?
And how can I do this dynamically?
Hi,
I am glad to hear this. Thank you for sharing your solution with us.
We believe that the other community members could benefit from such threads.
Please feel free to let me know if a question about our toolset comes up on your mind.
I solved the Problem with another metod. I work with normal Toolbarbuttons again and catch the right mouse click and open a free Standing ToolStipmenu. That way I Need not concern with the style.
Thanks for your efforts
HI!
No, Actually I have no experience with that and I did not have time to study this in Detail in the meantime.Styling is a complicated matter to discover.Thanks for your concern anyway.Josef
Hi Resperger,
Did you have the time to try the 'StyleSet' approach. Do you think that it suits your needs?
Okay, I was just curious why you were using UltraButtons. I assumed there was a good reason, but I thought that if I understood what it was, maybe I could provide you with some alternative.
I'm afraid I'm still not entirely clear on what the issue is, though. The UltraButton control will display whatever font you tell it to use based on it's UIRole in AppStylist. So if you need to set the UltraButtons on the toolbar to use a different font than UltraButtons elsewhere in the application, then using StyleSets is a good option. There are other ways you could do it, like using a DrawFilter. But the StyleSet option is easier and requires less code, I think.