文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>DataGrid中每个cell点击的位置判断

DataGrid中每个cell点击的位置判断

时间:2008-03-13  来源:yedong

<?xml version="1.0"?>
<!-- dpcontrols/DataGridEvents.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="500" height="400">
   <mx:Script>
   <![CDATA[
      import mx.events.ListEvent;
      private function itemClickEvent(event:ListEvent):void {
         clickColumn.text=String(event.columnIndex);
         clickRow.text=String(event.rowIndex);
         eventType.text=event.type;
      }
   ]]>
   </mx:Script>
   <mx:DataGrid id="myGrid" width="350" height="150"
         itemClick="itemClickEvent(event);" x="0" y="0">
        
      <mx:ArrayCollection>
         <mx:Object Artist="Pavement" Price="11.99"
            Album="Slanted and Enchanted" />
         <mx:Object Artist="Pavement" Album="Brighten the Corners"
            Price="11.99" />
      </mx:ArrayCollection>
   </mx:DataGrid>
   <mx:Label text="ColumnIndex:" x="0" y="158"/>
   <mx:TextInput id="clickColumn" x="94" y="156" width="84"/>
   <mx:Label text="RowIndex:" x="0" y="184"/>
   <mx:TextInput id="clickRow" x="94" y="182" width="84"/>
   <mx:Label text="EventType::" x="0" y="210"/>
   <mx:TextInput id="eventType" x="94" y="208" width="84"/>
</mx:Application>

 

<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 height=420 width=560 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="14817"><PARAM NAME="_cy" VALUE="11113"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="http://blogimg.chinaunix.net/blog/upfile2/080313101935.swf"><PARAM NAME="Src" VALUE="http://blogimg.chinaunix.net/blog/upfile2/080313101935.swf"><PARAM NAME="WMode" VALUE="Transparent"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE="LT"><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="-1"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="1869762652"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false"> </OBJECT>
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载