Hi,
I have a UltraFormattedTextEditor control that I am trying to change the ForeColor appearance to at run time.
In the AppStylist, the ScrollBar horizontal height and Vertical width have been modified in the Shared Object Role Settings.
The UltraFormattedTextEditors scroll bar looks correct when its ResolutionOrder is set to Default.
However, I need to change the resolution order in the UltraFormattedTextEditor to ControlThenApplicaton so I can change the ForeColor at run time.
When I do this, the ScrollBarLood settings are ignored.
I am able to get around this by getting the ScrollBar custom propeties from the stylefile and reapplying them to the ScrollBarLook properties at run time. This seems cumbersome to me.
Is there a way to not loose the ScrollBarLook settings when the ResolutionOrder is set to ControlThenApplication?
Thanks
Harlan
Hello Harlan,
The ControlThenApplication ResolutionOrder means that any control that uses an Appearance to provide a default look for any of its elements will get applied before the isl like in the case with the UltraFormattedLinkEditor.
There are another ways to override the UltraFormattedLinkEditor Appearance FontColor settings.
One option would be to take out the FontColor settings from the Style set and set it on the editor’s Appearance object in your application.
Another option would be to create a derived style set, which is based on the one you already have and change the editor’s FontColor in the new one. In your application, you will change the StyleSetName on the editor where you want the text styling applied.
Thanks for the quick reply.
So, it sounds like you are saying that even though the scrollbar has a different Appearance instance then the UltraFormattedTextEditor, that appearance is also overridden if the UltraFormattedTextEditor resolution order is set to ControlThenApplication?
Is that correct?