最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
NeoSwiff的图像按钮
时间:2022-07-02 11:28:40 编辑:袖梨 来源:一聚教程网
最近研究了一下NeoSwiff的SDK.能写出flash的C#语法编译器,太强了!! 他的独立IDE安装文件只有3m.
怀疑是不是有公开的C# 语法分析器......
作者对.net framework很熟悉.虽然它的GDI+与.net略有不同.
我用一个ImageButton扩展System.Windows.Forms.Button控件小试了一下
//ImageButton.ccs
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Component
{
public class ImageButton : Button
{
private Image image = null;
private String imagename = "";
public ImageButton()
{
InitializeComponent();
}
private void InitializeComponent()
{
this.Size = new Size(25,25);
}
public String ImageName
{
get { return imagename;}
set { imagename = value;}
}
protected override void OnPaint(PaintEventArgs e)
{
怀疑是不是有公开的C# 语法分析器......
作者对.net framework很熟悉.虽然它的GDI+与.net略有不同.
我用一个ImageButton扩展System.Windows.Forms.Button控件小试了一下
//ImageButton.ccs
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Component
{
public class ImageButton : Button
{
private Image image = null;
private String imagename = "";
public ImageButton()
{
InitializeComponent();
}
private void InitializeComponent()
{
this.Size = new Size(25,25);
}
public String ImageName
{
get { return imagename;}
set { imagename = value;}
}
protected override void OnPaint(PaintEventArgs e)
{