Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex Flex 4:htmlText属性和指针_Apache Flex_Actionscript 3_Flex4_Htmltext - Fatal编程技术网

Apache flex Flex 4:htmlText属性和指针

Apache flex Flex 4:htmlText属性和指针,apache-flex,actionscript-3,flex4,htmltext,Apache Flex,Actionscript 3,Flex4,Htmltext,我需要手动光标出现在滚动火花标签上。我尝试了useHandCursor+buttonModeproperties,但没有结果。对于spark Label是否有类似htmlText的属性(我需要下划线)?欢迎任何替代解决方案。谢谢。此代码适合您的需要吗 <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://

我需要手动光标出现在滚动火花标签上。我尝试了
useHandCursor
+
buttonMode
properties,但没有结果。对于spark Label是否有类似htmlText的属性(我需要下划线)?欢迎任何替代解决方案。谢谢。

此代码适合您的需要吗

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <s:Label buttonMode="true" horizontalCenter="0" text="Test" textDecoration="underline" verticalCenter="0" />
</s:Application>

如果希望能够将样式混合在一起,可以使用以下选项:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <s:RichText buttonMode="true" horizontalCenter="0" verticalCenter="0">
        <s:content>Hello, <s:span textDecoration="underline">World</s:span>!</s:content>
    </s:RichText>
</s:Application>

你好,世界!
根据:

Spark体系结构提供了三个 文本“基本体”--标签、RichText、, 和RichEditableText--作为其 只为你需要的东西付钱。 标签是最快和最简单的 重量轻,但其性能有限 功能:无复杂格式, 没有滚动,没有选择,没有 编辑,没有超链接。超文本 和RichEditableText是建立在 文本布局框架(TLF)库, 而不是全职员工。RichText添加了 能够呈现富HTML格式的文本 具有复杂的格式,但仍然是 完全不互动。 RichEditableText是最慢和最简单的 最重的,但可以做到这一切:它 支持虚拟化滚动 文本行、选择、编辑、, 超链接和从中加载的图像 网址。你应该用最快的 这符合你的需要


这个代码适合你的需要吗

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <s:Label buttonMode="true" horizontalCenter="0" text="Test" textDecoration="underline" verticalCenter="0" />
</s:Application>

如果希望能够将样式混合在一起,可以使用以下选项:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <s:RichText buttonMode="true" horizontalCenter="0" verticalCenter="0">
        <s:content>Hello, <s:span textDecoration="underline">World</s:span>!</s:content>
    </s:RichText>
</s:Application>

你好,世界!
根据:

Spark体系结构提供了三个 文本“基本体”--标签、RichText、, 和RichEditableText--作为其 只为你需要的东西付钱。 标签是最快和最简单的 重量轻,但其性能有限 功能:无复杂格式, 没有滚动,没有选择,没有 编辑,没有超链接。超文本 和RichEditableText是建立在 文本布局框架(TLF)库, 而不是全职员工。RichText添加了 能够呈现富HTML格式的文本 具有复杂的格式,但仍然是 完全不互动。 RichEditableText是最慢和最简单的 最重的,但可以做到这一切:它 支持虚拟化滚动 文本行、选择、编辑、, 超链接和从中加载的图像 网址。你应该用最快的 这符合你的需要


肯定感谢您的
文本装饰
,康斯坦丁。假设我没有尝试将
useHandCursor
buttonMode
放在一起。我已经添加了一个样本,将样式混合在一个标签中。很抱歉,使用
useHandCursor
会造成混淆。将
buttonMode
设置为
true
对于手动光标来说已经足够了。@Constantiner我曾尝试单独使用
buttonMode
,但似乎不起作用。我想我们甚至必须设置
useHandCursor
@Anji您是否尝试运行我发布的代码示例?没有
useHandCursor
,它们就可以正常工作。绝对可以!感谢您的
文本装饰
,康斯坦丁。假设我没有尝试将
useHandCursor
buttonMode
放在一起。我已经添加了一个样本,将样式混合在一个标签中。很抱歉,使用
useHandCursor
会造成混淆。将
buttonMode
设置为
true
对于手动光标来说已经足够了。@Constantiner我曾尝试单独使用
buttonMode
,但似乎不起作用。我想我们甚至必须设置
useHandCursor
@Anji您是否尝试运行我发布的代码示例?没有
useHandCursor
,它们工作正常。