- 博客(26)
- 资源 (1)
- 收藏
- 关注
原创 About the drawing
<br /><br />About the drawing<br />1. Flex绘图可以使用flash.display.Graphics绘图。<br />Graphics 类拥有一系列的函数创建向量图形。Display 对象可以支持Sprite和Shape对象的绘图。这些类含有Graphics类型的graphics属性。例如函数drawRect()(直角矩形),drawRoundRect()(圆角矩形), drawCircle()(圆形), drawEllipse()(椭圆)。<br />
2011-03-24 00:49:00 569
原创 About the drawing
<br /><br />About the drawing<br />1. Flex绘图可以使用flash.display.Graphics绘图。<br />Graphics 类拥有一系列的函数创建向量图形。Display 对象可以支持Sprite和Shape对象的绘图。这些类含有Graphics类型的graphics属性。例如函数drawRect()(直角矩形),drawRoundRect()(圆角矩形), drawCircle()(圆形), drawEllipse()(椭圆)。<br />
2011-03-24 00:43:00 539
转载 Removing items from a Flex DataGrid control using the DragManager class
<br />Problem<br />You want to remove items from a Flex DataGrid control using the drag manager.Solution<br />The following example shows how you can drag an item from a Flex DataGrid control onto an Image control to remove the item from a data provide
2011-03-21 11:39:00 499
原创 关于AdvancedDataGrid的header的数据传递
<br />默认的情况下,表头会写headerText属性的文字,但是有时候想customize header就得用到AdvancedDataGridColumn.headerRender属性,这时候可以自己实现一个headerRender,但是数据的传输是个问题,数据的传输一般采用headerText属性,这是一个字符串,因此可以考虑使用xml进行传输,将xml转成String类型,传入,再解析回即可。
2011-03-19 17:13:00 479
原创 去除AdvancedDataGrid的header里的sort竖线
<br />通过AdvancedDataGrid的headerSortSeparatorSkin的属性设置可以改变其head SortSaparator的样式,默认为undifined,设置成mx.skins.ProgrammaticSkin可以消除该线。
2011-03-19 17:12:00 684
原创 About the Height and Width property of DisplayObject
<br /><br />关于DisplayObject的width和height属性的问题,主要两点记住:<br />1.当没有使用graphics去绘制内容时, 其width和height一定是0.<br />2.child DisplayObject对其宽度和高度没有影响。<br />注意:这里是DisplayObject类和其一些子类。UIComponent并不如此。<br />There are something to explain about the height and width of D
2011-03-19 17:11:00 624
转载 Implement the Singleton In AS3
<br /><br />Implement the Singleton In AS3<br />The following example implement the Singleton In AS3 at the run-time.I don’t know if there is some other way to implement the Singleton in Compile-time.<br /> <br />From http://www.tink.ws/blog/stricter-singl
2011-03-19 17:10:00 548
转载 A Way to implement Abstract Class In Flex
<br /><br />A Way to implement Abstract Class In Flex<br />It’s a fact that, until now(3.0) the ActionScript doesn’t implement the abstract class, it has Interface, but the abstract class is very useful when you have some logic that is fixed, and these cla
2011-03-19 17:09:00 914
原创 a color class for actionscript
<br /> 1//bill.lee created in 2011.2.10<br /> 2<br /> 3//version 1.0<br /> 4<br /> 5package <br /> 6{ <br /> 7 public class Color <br /> 8 { <br /> 9// contructor, use a number <br /> 10// actionscript的构造函数不能重载 <br /> 11 public functio
2011-03-19 17:08:00 578
原创 反射机制的研究
<br /><br />在某些情况下需要通过配置文件来获取类名进而进行实例化。<br /><?xml version="1.0" encoding="utf-8"?> <br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" <br /> creationComplete="init()"> <br /> <mx:Script> <br /> <![CDATA[ <br />
2011-03-19 17:05:00 446
原创 从配置文件中获取数据
<br /><br />//the following is a piece of simple code for assessing the xml config file in the project<br />package <br />{ <br /> import flash.xml.XMLDocument; <br /> <br /> public class ConfigLoader <br /> { <br /> import flash.events.
2011-03-19 17:01:00 754
原创 ASP.NET发布WebService
<br /><br />ASP.NET发布WebService<br />一.发布建立WebApplication的工程。在刚才工程TestWebService中添加WebService文件(后缀为asmx),填写名称。<br /> 打开刚才添加的文件可以看到代码如下:<br /> 代码using System;<br /><br />using System.Collections;<br /><br />using System.ComponentModel;<br /><br />using Syst
2010-08-20 10:57:00 8168
转载 利用.Net Remoting实现分布式数据库查询
随着传统的数据库、计算机网络和数字通信技术的飞速发展,以数据分布存储和分布处理为主要特征的分布式数据库系统的研究和开发越来越受到人们的关注。但由于其开发较为复杂,在一定程度上制约了它的发展。基于此,本文提出了在.Net环境下使用一种新的开发语言C#结合ADO.Net数据访问模型来开发分布式数据库系统,大大简化了开发过程。 1 分布式数据库系统 就其本质而言,分布式数据库系统的数据在逻
2010-01-06 12:51:00 846
转载 如何判断某个路径是否存在? 如判断C:/file/photo/目录是否存在
CFileFind finder; static const TCHAR szFileToFind[] = _T("C://SYS"); if (finder.FindFile(szFileToFind)) { finder.FindN
2009-05-25 14:34:00 1698
转载 关于std::fstream以及std::ifstream打开中文路径名失败的问题和解决方法
碰到的问题: 今天碰到这个问题了,是在使用Crypto++库的时候遇到的,该库操作文件是使用的std::ifstream。在我给文件生成签名的时候,每每碰到中文路径名就出错,后来跟进库代码一看是打开文件的时候出错。据说这个问题在VS2003以及之前版本是没有的,不幸的是我现在用的是VS2005的版本。产生问题的原因: 究竟是因为什么产生的这个问题呢?如果你跟进去VC实现版的STL代
2009-05-25 14:02:00 10254 3
原创 整理的一些资料
1.如何获取应用程序的 实例句柄?应用程序的实例句柄保存在CWinApp m_hInstance 中,可以这么调用AfxGetInstancdHandle获得句柄.Example: HANDLE hInstance=AfxGetInstanceHandle()2.如何通过代码获得应用程序主窗口的 指针?主窗口的 指针保存在CWinThread::m_pMainWnd中,调用AfxGetMain
2009-05-25 02:09:00 810
原创 关于字体
void C***View::OnDraw(CDC* pDC) { CRect rect,rcClient; GetClientRect(rcClient); COLORREF crLight = GetSysColor(COLOR_BTNHIGHLIGHT); COLORREF crShadow = GetSy
2007-07-10 17:35:00 682
转载 无模式对话框
创建无模式对话框无模式对话框与有模式对话框不同的是在创建后其他窗口都可以继续接收用户输入,因此无模式对话框有些类似一个弹出窗口。创建无模式对话框需要调用BOOL CDialog::Create( UINT nIDTemplate, CWnd* pParentWnd = NULL );之后还需要调用 BOOL CDialog::ShowWindow( SW_SHOW);进行显示,否则无模式对
2007-07-10 13:29:00 1372
原创 关于透明
1.透明矩形的绘制CRect* pRect; pRect = new CRect(0,0,20,20); dc.SelectStockObject(NULL_BRUSH); dc.Rectangle(pRect);
2007-07-09 20:10:00 581
原创 静态变量使用方法
// static_member_functions.cpp#include class StaticTest{private: static int x;public: static int count() { return x; }};int StaticTest::x = 9;int mai
2007-07-09 08:42:00 624
原创 WinCE 中写字的函数
Platform Builder for Microsoft Windows CE 5.0 DrawTextSee AlsoExtTextOut | RECTRequirementsOS Versions: Windows CE 1.
2007-07-08 18:27:00 989
原创 关于画图
Writes a character string at the specified location using the currently selected font. virtual BOOL TextOut( int
2007-07-08 18:08:00 637
原创 获取对话框大小
CRect rect; GetClientRect(&rect); int cx=rect.Width(); int cy=rect.Height();
2007-07-07 02:16:00 1606
原创 关于全屏
1.win 2000/xp中//---加在BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)中-----------------cs.style=WS_POPUP;cs.x = 0;cs.y = 0;cs.cx = GetSystemMetrics(SM_CXSCREEN);cs.cy = GetSystemMetrics(SM_CYSCR
2007-06-27 09:49:00 574
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人