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

jas*_*son 2 apache-flex actionscript-3

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

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

以下是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>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

在此输入图像描述

mke*_*man 5

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