apache-flex - DataGrid 中的 buttonMode 和 useHandCursor 属性不起作用

标签 apache-flex actionscript-3

如果我在 DataGrid 中将“buttonMode”和“useHandCursor”的属性设置为 true,它不会像我预期的那样工作。只有当我将光标移动到两行之间的边缘时,才会显示手形光标。

我期望的是无论光标移动到哪里,它都应该始终显示手形光标。

以下itemRenderer:

<?xml version="1.0" encoding="utf-8"?>
<mx:Label 
    xmlns:mx="http://www.adobe.com/2006/mxml"
    useHandCursor="true" buttonMode="true">
    <mx:Script>
        <![CDATA[
            import valueObject.Employee;

            override public function set data(value:Object):void{
                super.data = value;
                var employee:Employee = value as Employee;
                this.text = employee.lastName;
            }
        ]]>
    </mx:Script>
</mx:Label>

enter image description here

enter image description here

最佳答案

您应该在 ItemRenderer 类上设置 useHandCursor="true"buttonMode="true"mouseChildren="false"。然后,在 DG 上,您可以设置 useHandCursor="false",这样手形光标就不会显示在 DG 边框和/或滚动条上。

关于apache-flex - DataGrid 中的 buttonMode 和 useHandCursor 属性不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4043593/

相关文章:

actionscript-3 - 输入文本更改整数? AS3

apache-flex - 在videodisplay flex中加载youtube视频

java - 我该如何调试这个 IE7 问题?

apache-flex - 集成 R 和 Flash/Flex 的最佳方式

flash - 滚动完成时为每个项目制作一个带有 HGroup "snap"的 Flex/AIR 滚动条

apache-flex - 如何在 Flex 中刷新应用程序?

arrays - ArrayCollection 扩展错误

actionscript-3 - ffprobe/ffmpeg : know if a input is a video, 图像或音频

apache-flex - 我可以通过 https 使用 flash.net.NetConnection 吗?

apache-flex - 使用 Flex UI 和 Spring/Hibernate/BlazeDS 后端的简单文件上传?