How to copy the sourceText property and all other style from another layer? - expression

So I have this problem of inheriting all the value and styles from another text layer. I just don't know where it's gone wrong. Please see the attachment. I want both color of the text layers to be controlled by a Color Control. Is it possible?
I've managed to copy the sourceText by directly pick whip from the main text layer or link the setFillColor from the Color Control. But didn't manage to do both at the same time.
This is my code:
thisComp.layer("Main Text").text.sourceText.style;
thisProperty.sourceText.setText("thisComp.layer("Main Text").text.sourceText")

Related

Set secondary color of all views

image of an Editor
Like shown in the image above my secondary color for all my views is pink.
But I want it to be a different one.
Where can I set the Color globally?
For the Entries that pink color is the color accent of the application
Which can be modified of course. example
But if you want a little more customization for this view and maybe others. You will have to use custom renderers. Here is another question about that

Is it possible to change the black colour of CKEditor Toolbar icons(in the moono skin), like one can with webfonts.?

I have just upgraded to CKEditor 4.4.5 from 3.5, and notice quite a few changes !! One of the changes is the new skin called Moono which looks great. However it did get me wondering whether it would be possible to change the black in the menu icons to a custom colour, for branding reasons for example. We do this in the rest of the web application using a combination of Server code and CSS.
Many thanks.
Toolbar icons in Moono are images, so if you want to change them, you'd need to create a new skin or use an alternative one from the CKEditor Addons Repository.
However, since Moono is a monochromatic skin, maybe for branding purposes it would be enough for you to use the so-called "chameleon feature" that lets you change the UI color with a simple configuration option?
If so, just use config.uiColor to provide a mataching RGB color value or an HTML color name, as in:
config.uiColor = '#AADC6E';
See a working example here: http://sdk.ckeditor.com/samples/uicolor.html

How to display long content in wp7?

Project target on wp7.5 and above
I use a listbox to display detail information of a post in a forum.
I use a richtextbox to show the body of the post which is mixed by texts and pictures. I create a behavior and bind tje content to the RichTextBox.
But what tricks me is the RichTextBox can't display all the body. I check online, get to know the reason is the height limitations of the controls which height can not be more than 2048px.
I saw people recommend a article named The Scrollable TextBlock as a solution. But I found no way to implement this.
1 You can't put a ScrollView inside a richtextbox
2 Scrollable TextBlock only supports text, but what I want is a control which can hold both text, image.
3 can bind with text
How to solve the problem?
Just a suggestion you can use the webbrowser control in your application and for the text and images display you can generate the Run time HTML and pass to webbrowser.
you can get an idea to render your text in html form see this link
Hope it helps

Powerpoint - want to define a color palette that is NOT a color scheme

I import Spotfire graphics into Powerpoint quite frequently. Spotfire has its own specific color palette, which aren't the standard colors used in powerpoint, at least I don't think so.
I often must create my own legend or for other reasons match the spotfire color palette, and I do this by entering the RGB codes for the spotfire colors. I would like to do this one time and have the spotfire color palette always available in powerpoint without having to re-type.
I do not think I want to use a color theme, because I want my colors to stay consistent if I end up using different templates (themes). That is, I don't want to call spotfire default blue "Accent 1", because if I change background templates (themes) I think it will overwrite Accent 1 with the new template's Accent 1.
So I want a color palette that is always available to me regardless of what theme I choose.
Any thoughts?
You're dismissing themes for all the right reasons. They wouldn't work for what you're after. You'd pretty much need to buy or write an add-in to do what you want.
For example, it might install n buttons on the toolbar/ribbon, where n = the number of colors you need on your palette. When the button is clicked it sets the fill, for example, of the currently selected shape/shapes to the appropriate color.
You could have different sets of buttons for fill, outline etc, or have the code figure out whether the user has pressed, eg the CTRL key. Click = set the fill, CTRL+Click = set the outline.
Because I was curious I decided to attempt to create a simple Add-In that will allow you to select a chart, series in the chart, and then apply colors.
You can download from Google Docs (revised link)
https://docs.google.com/file/d/0B1v0s8ldwHRYMFFPZ29FNmI0TkE/edit?usp=sharing
The file is saved as a PPTM to expose the code modules. Save As a PPAM and load the Add-in; it will be available from the Add-Ins command bar. I have tested briefly and seems to be working.
Here's the nuts & bolts of it:
First declared several custom colors as Public Const variables. These can be modified using the long value (converted from RGB) to suit whatever you need.
The macro requires that the selection be a Shape, and further that the Shape .HasChart = True. There is some logic to trap these conditions.
A user form has a ComboBox that populates with a list of Series from the selected chart, and 8 CommandButtons colored for each of the defined colors, will send that color to the chosen series.
You could add additional CommandButtons and colors as needed, or tweak the existing code to suit your specific needs.
Although the slide templates have a default color theme attached to them, you can switch slide templates and still use any XML color scheme at your disposal.

disable text selection in gwt

i am pretty new to GWT,
i have an image that i have placed a text on top, i need the text to look as part of the image.
i have used the image widget and the HTML widget to position it on top of it, i need this text to change according the locale.
the problem that the text is selectable, so it does not look right.
1) is there any way to make the text un-selectable?
2) is there a better way to achieve that?
thanks
This is handled by the user-select attribute.
See: http://www.tek-tips.com/viewthread.cfm?qid=1184318&page=1

Resources