Flex 用Grid实现类似于Html的细线表格
我们在用Flex进行开发的时候,有时候需要实现像html 细线表格的那种效果,原理很简单,但是需要一些技巧,不然的话很难控制线条的粗细,其实只需要设置几个样式就能搞定,一下是源码,大家可以运行一下看看效果<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Style>
Grid
{
border-style:solid;
border-color:red;
border-sides:right;
horizontal-gap:1;
vertical-gap:1;
background-color:red;
}
GridItem
{
background-color:white;
}
</mx:Style>
<mx:Grid width="387" x="347" y="225">
<mx:GridRow width="100%">
<mx:GridItem width="50%">
<mx:Spacer width="50"/>
</mx:GridItem>
<mx:GridItem width="50%">
<mx:Spacer height="50"/>
</mx:GridItem>
</mx:GridRow>
<mx:GridRow width="100%">
<mx:GridItem width="50%">
<mx:Button label="Button"/>
</mx:GridItem>
<mx:GridItem width="50%">
<mx:Button label="Button"/>
</mx:GridItem>
</mx:GridRow>
<mx:GridRow width="100%">
<mx:GridItem width="50%">
<mx:Button label="Button"/>
</mx:GridItem>
<mx:GridItem width="50%">
<mx:Button label="Button"
borderColor="#CCCCCC"/>
</mx:GridItem>
</mx:GridRow>
</mx:Grid>
</mx:Application>
相关文档:
声明:自己想的、写的东西,转载请注明出处; 不要向我要代码; from CSDN ID: wander000
目的:在做小程序时,显示一些重要的数据如帐号密码等,不想让别人直接看到,在指定组件上按规定好的轨迹晃动鼠标才显示。
问题:一、直接打开数据库不就看到明码了?二、怎么判断鼠标轨迹的形状?
解决:一、数据库存取时用上加 ......
假设父窗口是p,子窗口是c,子窗口进行操作后返回父窗口
父窗口:
var flag:Boolean = false;
var c:pop = pop(PopUpManager.createPopUp(this,pop,false)); // 新建子窗体对象
c.callFunction = this.fresh; // 子窗体中可以调用的父窗体函数(这里是子窗体关闭时,用来刷新父窗体的内容
function fresh():void
  ......
IF OBJECT_ID(N'dbo.p_ExportHtml') IS NOT NULL
DROP PROC dbo.p_ExportHtml;
GO
/*-- == 导出表/视图中的数据为html 文件======================
此存储过程用于将指定的表/视图中的数据导出为 html 文件
由于是使用存储过程, 因此文件目录基于 sql server 服务器
存储过程中会使用xp_cmdshell ......
Flex Project Nature/Add Flex Project Nature 执行后出现以下错误,
Severity and Description Path Resource Location Creation Time Id
Server SDK: Directory does not contain a Flex SDK.
需要在工程属性的Flex co ......
1.复制内容到系统剪贴板
System.setClipboard(strContent);
2.复制一个ArrayCollection
//dummy solution( well, it works )
var bar:ArrayCollection = new ArrayCollection();
for each ( var i:Object in ac ){
bar.a ......