Setting an undeclared style in MXML
Hi folks,
for a component that renders via a programmatic skin I would like to set style values in MXML, which are not declared by the component.
Lets say I had developed a skin for a button that makes the border blink, and I need a "border-blink-color" style.
The following code obviously wouldn't work
<mx:Button borderBlinkColor="#ff8822" label="Test" />
however, setting it via CSS or AS works.
Now is there a way to achieve my goal using MXML?
Did you try giving your button an id and setting the style in actionscript?
In a creationComplete handler:
myButton.setStyle("borderBlinkColor", 0xff8822);
<mx:Button id="myButton" borderBlinkColor="#ff8822" label="Test" />
-Darrell
Similar Messages
-
Set the css style of text in a column according to the value of another col
I'd like to set the css style of text in a column according to the value of another column. Each field may end up with a different style of text as a result, for instance.
Any ideas? I looked thru the forums but couldn't find anything.
Thanks,
LindaDoes the class=t7Header make it into the rendered HTML?
---The text "class="tHeader" does not show but the other text is rendered using the style t7Header as defined in the stylesheet! Exactly what I wanted.
You might want to use a div or a span instead of a p.
---Yes -
What's very cool is we can create a display column that is dynamically filled with the html and style wrappers based on a lookup to see what style should be applied according to the actual data value. This is critical as our tables are all dynamic so I can't depend on using the additional APEX methods to control the display of a column (as the # of columns in the view vary from instance to instance) and I did not want the display specs to muddy up my SQL queries.
I wonder why this is not well documented. It is so easy!
Thanks again for your help.
Linda -
AppleScript Pages: How to set "following paragraph style"?
How do you set "following paragraph style" for paragraphs or paragraph styles using AppleScript?
I've tried several approaches, and all cause a run-time gag with the netorious error -10000
More generically, what is the syntax for changing a property of a paragraph style that was user created?
TIA!JonRKibler wrote:
How do you set "following paragraph style" for paragraphs
Here's an example that changes the following paragraph style of the first four paragraphs :
tell application "Pages" to tell front document
set following paragraph style of paragraphs 1 thru 4 to paragraph style "Heading 1"
end tell
JonRKibler wrote:
How do you set "following paragraph style" for paragraph styles using AppleScript?
Here's an example that changes the following paragraph style of the paragraph style "Heading 1" :
tell application "Pages" to tell front document
set following paragraph style of paragraph style "Heading 1" to paragraph style "Heading 2"
end tell
JonRKibler wrote:
More generically, what is the syntax for changing a property of a paragraph style that was user created?
If you know the name of the style, here's an example that changes the value of the space before :
tell application "Pages" to tell front document
set space before of paragraph style "xyz" to 14
end tell -
Setting the default style sheet
I am trying to set the default style sheet to my customized css - mainstyle19-en.css. I know that I have to run this command - ant make_main_css -DCOLOR=19 but I don't have ant in my path and it is not recognizing it as a command. How do you put that in the path? Also - where are you supposed to run this command? I know somewhere on the server where the image server is located, but where exactly?
Thanks for your help,
Karen.In addition, if you are using .net, Sarah Wheeler created a simple portlet that allows the user to create a header portlet with the ability to change the stylesheet. I have modified it a little and would be happy to share my version. Take a look at this thread - http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_283309_4352_2758_4823_43/http;/PRODGADGET12.plumtree.com/collab/discussion/app/threadDetails.jsp?projID=39883&forumID=48674&threadID=80810&messageID=80894 (If the link doesn't work, it is located Discussions: Pluggable Nav, Style Sheet Mill, PEI, UI Cust: Changing colors/style sheets with custom header portlets?)
If you send me an email at [email protected] will send you the code.
Michael [email protected] -
Setting the font style of a TitleWindow or Panel w/o creating a skin?
N00b question - Is it possible to set the font style of a TitleWindow or Panel header/label with out creating a custom skin? Looking for a simple way and I can find one in the docs.
Thanks in advanceYes, using advanced css to style the specific title label in the skin:
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
s|Panel #titleDisplay
fontStyle: italic
</fx:Style>
<s:Panel title="hello" />
-Kevin -
Setting default paragraph style (InDesign CS4, AppleScript)
I'm trying to set the default paragraph style to [Basic Paragraph], but this produces an error.
Setting other styles does work, what's wrong with "[Basic Paragraph]"?
tell application "Adobe InDesign CS4"
tell active document
tell text defaults
set applied paragraph style to "[Basic Paragraph]"
end tell
end tell
end tell
Thanks,
PeterAlternatively you could use:
set applied character style of text defaults to character style 1
set applied paragraph style of text defaults to paragraph style 1
Cheers
Tobias -
Setting the font style and color for FileChooser labels
Hi Friends,
I have a certain standard Font style and color set for my application GUI. Now, I want to set the style and color for Swing components like FileChooser. Is it possible ?
Also is it possible to localize JOptionPane ?
Please advise.
Best regards,
Harilal.Does anybody knows how to do that?
-
How about setting default layer styles to 90 degrees by default?
Who ever really uses 120 degrees for anything? If I could count the number of times I've had to change my layer styles to 90 or 180 from the junky 120, I'd reach a number which doesn't exist because it's so damn big.
Fix this, or give users an option to set a default and designers will LOVE YOU.There's also the "Make Default" button at the bottom of the Layer Styles dialogue box if you tend to use certain settings often.
-
Issue setting chart title styles.
Hello all,
For some reason I am having an issue with setting underline and color fill for the title.
-fx-font-size: 12px;
-fx-underline: true;
-fx-fill: red;
the font size works, but the other 2 do not. When in scene builder and this is put under "Style" I have to click .chart > .chart-title > -.text and it will switch the font size, but wont do anything else.
Am I doing something wrong?
Thanks,
~KZI made a styleSheet and it worked, not too sure why it isn't working with setStyle, but hopefully someone can explain .
-
Setting a stroke style on a Skinnable container?
I have a SkinnablerContainer skin that I made using the "new skin from copy". I've got it working with the fill properties included, but I'd also like to add some control for stroke. I did this, but the component instance says "Cannot resolve attribute 'borderWeight' for component type spark.components.SkinnableContainer".
<fx:Script fb:purpose="styling">
<![CDATA[
* @private
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
bgFill.color = getStyle("backgroundColor");
bgFill.alpha = getStyle("backgroundAlpha");
bgStroke.color = getStyle("borderColor");
bgStroke.weight = getStyle("borderWeight");
super.updateDisplayList(unscaledWidth, unscaledHeight);
]]>
</fx:Script>
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
</s:states>
<s:Rect left="0" right="0" top="0" bottom="0" radiusX="12">
<s:fill>
<s:SolidColor id="bgFill"/>
</s:fill>
<s:stroke>
<s:SolidColorStroke id="bgStroke"/>
</s:stroke>
</s:Rect>OK, so what component could I use that supports a borderColor?
Also, in the past I have "made up" my own styles:
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
minWidth="21" minHeight="21"
alpha.disabled="0.5">
<fx:Metadata>
[HostComponent("spark.components.Button")]
</fx:Metadata>
<fx:Script>
[Bindable] private var tColor:uint;
[Bindable] private var tColorOver:uint;
[Bindable] private var tColorDown:uint;
[Bindable] private var tColorDisabled:uint = 0xCCCCCC;
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
bgcolor.color = getStyle("backgroundColor");
bgcolorover.color = getStyle("backgroundOverColor");
bgcolordown.color = getStyle("backgroundDownColor");
tColor = getStyle("color");
tColorOver = getStyle("colorOver");
tColorDown = getStyle("colorDown");
super.updateDisplayList(unscaledWidth, unscaledHeight);
</fx:Script>
<s:Rect top="0" left="0" right="0" bottom="0" radiusX="6" radiusY="6">
<s:filters>
<s:BevelFilter strength=".3" distance="2" blurX="4" blurY="4"/>
</s:filters>
<s:filters.down>
<s:BevelFilter strength=".3" distance="-2" blurX="4" blurY="4"/>
</s:filters.down>
<s:fill>
<s:SolidColor id="bgcolor" />
</s:fill>
<s:fill.over>
<s:SolidColor id="bgcolorover" />
</s:fill.over>
<s:fill.down>
<s:SolidColor id="bgcolordown" />
</s:fill.down>
</s:Rect>
Why does it work here? Or does this only support css and not mxml? -
JDeveloper 11.1.1.3 (PS2)
We're using a code style with
-- Indentation Size = 4
-- Use Tab Character = Checked
-- Tab Size = 4
Every time we restart JDeveloper, my documents appear to be reformatted with a tab setting of 2, although the code style still says it's 4. I can reformat the document by going into Code Style, and clearing the Tab Checkbox. I then have to go back in and recheck it. Can someone please take a look?
Thanks,
TomThere appear to be bugs filed for this and related issues already (c.f. bug#9793235). They are marked as fixed in 11.1.2 or 11.1.1.4 (depending on the bug) - I guess you could file an SR and ask for a backport to 11.1.1.3
John -
CS6, setting line weight/style
How can I set a stroke weight and style as a default so that once set I can continue to draw in that weight and style? For example, in order to draw blades of grass I'd like to set my stroke to a certain thickness and also a predifined color and taper. I don't want to create a bunch of lines, select them all and THEN make the change. I want to draw in "real time", not have to go back later to make changes by either changing the properties or applying a style or brush.
Setting a default is what I am looking for here.
ThanksAppearance panel: see in the panel menu the setting "New object has basic appearance". This has to be OFF. Then set your appearances and draw on.
-
I am trying to apply custom JavaScript via JSLink to change how the data is shown on the Listview page. The JavaScript works fine, however my chosen view style (shaded and newsletter) either gets overridden or set to Default. I've been searching
forums for multiple days and cannot seem to find a solution to this challenge. There are no errors on the page and I'm using IE10. I want the benefit of newsletter or shaded formatting with the ability to override the column data.View styles are old 2010 technology, if you haven't noticed have a look for the in list search box. It disappeared whenever i used a custom view layout. I suspect it's because the old styles didn't get any of the updated changes and are just using an old
xslt stylesheet still.
In 2013 MS want you to be using JSLink to handle the shading, it's annoying in places but there's plenty of examples of how to do shading etc. in JSLink -
Hi, I'm working with C# and COM automation to compile a tv guide. I need to apply for every textframe the right char style. Right now I parse each char and I set the style in this way:
ch.AppliedCharacterStyle = charStyle;
this tast is very slow process.
How can I work on a set of characters appplying the style in a single command? Is it possible?
Thanks a lot,
AndreaI don't think that GREP will be usefull ;)
Andrea need to find begin and end of interesting part of Paragraph content
time is easy - first 5 chars or to first space
but finding the rest ... or wait ;)
Andrea - do all your listings have structure:
(time)( )(type)( )(title)
where:
(time) is 4 or 5 characters
(type) is any text without spaces
(title) is title without any other parts like, description, rating, etc.
and all parts are separated by ( ) - space ?
if yes - you can use NestedStyles feature of ParagraphStyle - by setting " " (space) as first and second "up to" sperarator
and one more question - can you export or can you request TV listing in other format - with (tab) as "field" separator ?
below is link to example InDesign Tagged Text file with ParagraphStyles set to " " (space) as separator
http://www.adobescripts.com/TVGuide.zip
just place it to your InDesign document :)
robin
www.adobescripts.com -
In FF 3.5 through 4.0b11, the Tree-style Tabs extension kept tabs open when I exited so that when I re-opened the program, all tabs re-opened at the same time. Now, every time I return ot the program, I have to re-load all of the tabs I use on a daily basis.
Hi,
I'm using the Tree Style Tab and love it.
However, I was wondering if there's a way to collapse/expand the tab sidebar using a keyboard shortcut.
Ideas, anyone?
Iddo
Maybe you are looking for
-
So just like I said, when i go to open firefox, the screen goes blue, and says that my computer is at risk. This is the only problem it happens to, I have tried uninstalling and re stalling the program and nothing seems to work. I really like firefox
-
My MacPro is constantly frozen with the spinning ball
Can anyone please take a look at my system's configuration below, and maybe tell me why my system has slowed down and the dreaded spinning ball is a constant friend? Thanks for any help. Hardware Information: MacBook Pro (15-inch Early 2008) MacBook
-
How to create an installati​on CD using LV 8.0?
How to create an installation CD using LV 8.0? I want to create an Installation CD so I can install the LV application to an user computer. Thanks a lot
-
Query Producing Incorrect Results
Hello: I am trying to perform a number of queries on a database and although I am not receiving an error message; I know that the returned results are incorrect. For example, in my test data; I have only 1 record that matches the SchoolBoardID (There
-
Oracle EBS Implementation Help
Hello Everyone, Greetings of the day!!!! Professionally i am a technical consultant with only 12 months of experience, Now i got chance to enhance my technical knowledge in Oracle EBS Implementation project. I am totally fresh for this Implemenation