Flex :: Adobe - Can't Custom Style The Tooltip
Mar 16, 2010
I'm having trouble changing the font size of my TextInput tooltip. The text input looks like this:
<s:TextInput id="first"
toolTip="Hello"/>
then I create a style like this:
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
[Code]....
P.S. I also get a yellow warning: "CSS type selectors are not supported in components: 'mx.controls.ToolTip'" but it still compiles since it's just a warning, but nothing happens.
View 2 Replies
Similar Posts:
Mar 7, 2012
How can we customize the background and font color of a single instance of a tooltip for one component? (Without changing all tooltips in the application.)
This is needed for the HALO component set (4.1 SDK), not Spark (css methods preferred).
View 1 Replies
Mar 25, 2011
I am using stringValidator component in flex.
<mx:StringValidator id="toValidator" source="{To}" property="text" triggerEvent="click" >
</mx:StringValidator>
It is working properly but problem is that I have applied borderSkin on ToolTip in my default styleSheet which change the appearance of the message by the validator.
mx|ToolTip
{
borderSkin: Embed(source="assets/componentImages/TabBar-tab_selectedUpSkin.png");
}
Now I want that this borderSkin should not be applied on my stringValidator.
View 2 Replies
Feb 16, 2012
I got struck with tooltip position as well as style. I used string validator to perform validation. Error tooltip is coming right hand side by default. I want to change it on top of the text field as well as its clolor also. but I just want it to perform with every tooltip not with any specific one.
View 1 Replies
Oct 19, 2010
I have a Spark Component (a Group) which doesn't behave as wanted.The tooltip is only shown when the component is enabled=true which the following example shows:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"[code]/....
In the Halo component the toolTip is shown. And this is, what I want to achieve.In my case I want to try something like this:
<s:Group toolTip="{cartEntries > 0 ? 'great!' : 'go and buy!'}"></s:Group>
View 1 Replies
Aug 17, 2010
I have a button to which I have applied stylesheet(below) which works great.
.toolButton
{
up-skin :Embed(source='resources/angle.png');
over-skin :Embed(source='resources/angleH.png');
down-skin :Embed(source='resources/angle.png');
}
Now, I have a new requirement where I need to keep the button in pressed(down) state until the user clicks on this button again.
View 1 Replies
Jan 11, 2012
There's some custom namespaces in my Flex project, as well as the usual namespaces like "mx" and "s". I'd like to use getStyleDeclaration on a style that's in a custom namespace, and I can't seem to figure out the proper syntax.My stylesheet looks partially like this:
.WidgetTitle
{
fontWeight: bold;
}
[code]....
If I try the same thing with a custom namespace, it outputs null:
trace(styleManager.getStyleDeclaration("myNamespace|ScaleBar")); // output: null
I've tried all the combinations I can think of: "myNamespace|ScaleBar", "myNamespace.ScaleBar", "myNamespace ScaleBar" etc and I can't find any documentation on how to do this.
View 1 Replies
May 23, 2011
Would anyone know how to customize the "tooltip" / mouseover popup window in a Candlestick Component?By default, It just displays open / high / low / close data, but I need to add additional details such as date, time, and a few others...I'm guessing this is simple one, using item renderers maybe, but I cannot seem to get my head around it, or find any decent documentation online..
View 0 Replies
Nov 23, 2011
I'm using a custom tooltip in order to be able to use html tags. The method I used is described here.I'm using SDK v.3.5. I also did a little hack so that the TooltipManager.tooltipClass would work (check this post for more details).Here's some code.
HtmlTooltip.as:
public class HtmlTooltip extends ToolTip
{[code].....
Everything works fine BUT 2 things: First, font colors tags don't work. If ever I use sth like <font color='0xadadad'>...</font> it won't work. However, if I use <u>...</u>, it works fine
Second, the <a href='...'>...</a> does not work either. I checked in several websites, and the solution would be to set the selectable property of the text to true.
View 1 Replies
Jun 22, 2011
I have a Custom Component that has a couple of Canvas with some background colors assigned to them. Now i have hard coded the colors, i want to move them to an external css file. So i would like to have the css declaration like this :
[Code]...
My question is if i can define custom style names like dividerRightColor and if so, how can i use that value inside my MXML Component? I have seen examples of using them inside Pure AS components.
View 2 Replies
Apr 27, 2011
I've been looking for some examples on creating a custom statusbar for an AIR application, but haven't found anything really useful. That was until I started looking around in the Tour de Flex AIR app for an example, and it was right there (part of the app itself). Would anyone have some suggestions on replicating this statusbar. The trouble I'm having is that I cannot seem to get the value of a dynamic variable to display. I'm attempting to display the current user.
View 2 Replies
Oct 26, 2010
I have this custom toolTip:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code].....
View 2 Replies
Feb 16, 2010
I'm using the DataGrid component to display a score-board for a game.I was hoping I could create an individual style for 1 row to highlight the current players score-board position.
View 1 Replies
Mar 19, 2010
how to create dynamic button tooltip and get tooltip data from XML.
View 0 Replies
Sep 17, 2009
using pencil tool inside flash i can create stippled line style, well, im using graphics.lineTo(mouseX, mouseY) to create a drawing API but i need use some in this line a style like stippled stroke, or if is possible use stroke ( and how ) to make the same line using stippled style?
How to custom this line?
View 5 Replies
Nov 14, 2011
NOTE: I chose to keep the history of the topic cause I think the searching process might be usefull to someone. If you want the solution go to the bottom of my post.
I searched but I didnt find my answer either on Google and StackOverflow (not even a single tutorial on it).I would like to create a rollover highlight on a button, like the windows 7 taskbar. The highlight moves and is function of where the mouse is on the button. I dont want any image on my button (only color gradient) to keep a standard component.
[Code]...
View 1 Replies
Nov 29, 2009
So as far as I can tell list-style-image (or any list-style at that) is not one of the available css properties enabled with a TextField.I want to have a list of items with bullets in front of them, but using a custom png image for the bullet.
View 0 Replies
Mar 21, 2011
Multiple axis creation via MXML works fine:
http:[url]...
But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?
<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....
View 2 Replies
Mar 2, 2012
This is NOT duplicate of my earlier post (its is slightly different)But this is similar issue with similar error but its not the same error The error I am getting now is below while dispatching the custom event from my custom component
TypeError: Error #1034: Type Coercion failed: cannot convert events::MapEvent@a74ab51 to flash.events.MouseEvent.
dispatchEvent(new MapEvent(MapEvent.CLICKED_ON_MAP));
Note: The error in my earlier post is giving below error message
Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent
The difference here are two things, the earlier error is while converting flash event to custom event and now this one is while converting custom event to flash event and secondly, I have no clue why it is trying to convert to the mouseevent where I am just dispatching my custom event with proper listeners.
This is my custome event
package events
{
import flash.events.Event;
import ui.map.MapElement;
[code]...
View 1 Replies
Dec 24, 2009
My flex app has various Custom components. I want the tooltips for all of them to show at the top-right corner.Is there a Application setting that I can do this with? Or do I have to do this at the component level.
View 1 Replies
May 24, 2010
I have a buttonbar that has 3 buttons. I'm trying to set a tooltip for each of the buttons, but not sure where. The ButtonBar itself has a skin, which in turn includes a skin for each of the buttons.
<s:ButtonBar id="bb" selectedIndex="0" skinClass="skins.bbSkin">
<s:dataProvider>
<s:ArrayList>
[code].....
View 1 Replies
Jan 4, 2011
I need to create a tooltip for tabbar how to create it?
View 1 Replies
Jan 20, 2011
I am trying to add tooltip in the skin of button bar button but not able to do that, what to do?
View 1 Replies
Feb 10, 2011
I have a nice looking fxg button, to which I want to attach a tooltip- how do I achieve that without much hassle? (the spark button does this out-of-box, but is not very visually pleasing)The examples I have seen on search is reverse- using fxg effects in the tooltip.
View 1 Replies
Jan 12, 2012
I am using Bitmapimage in my code.After a lot of seach on google i could not find How tooltip can be used with Bitmapimage.
View 1 Replies
May 26, 2010
I'm displaying a list of buttons, some of which might be disabled. I need to show a tooltip on the disabled buttons with an explanation of why it's disabled, but it seems I can't disable the button without disabling the tooltip. Is there a simple way around this?
View 3 Replies
Jul 13, 2010
I have an AIR app that I have developed for a client.It has a system tray icon with the company name, app name etc, displayed in a tooltip.This all works very simply except that the client in question has a & in their name.No matter how I encode this, it never seems to get displayed.
View 2 Replies
Aug 18, 2010
I have a chart with 2 line series in it.So, "Jan" (x-axis point) will have 2 Y-axis pointsThe problem :Is there anyway to force flex to show tooltip on both series simultaneously?
View 1 Replies
Dec 2, 2010
I have an ArrayCollection that's acting as the data provider for a tilelist (called favoriteLinksList) I use an itemRenderer called FavoriteItem as the tilelist's itemRenderer. This FavoriteItem looks like this:
[Code]...
View 2 Replies
Dec 15, 2010
I have a button in a flex project and I want to add the picture inside the tooltip of the button, I try to extends ToolTipBorder and then use the borderSkin, however, it did not work.
View 2 Replies