Extract UserControls from IssueVision Part I -- PaneCaption
2004-11-09 17:23
513 查看
IssueVision is the code example for Smart Client at DevDays 2004. You can get more infomation from DevDays 2004 video .
There are several XP style UserControls contained in this solution. Now, let's extract them for our own projects.
[CategoryAttribute("Appearance")]
[DescriptionAttribute("If should draw the text as antialiased.")]
[DefaultValueAttribute(true)]
[code]Thus, modify “private bool m_antiAlias = false;
There are several XP style UserControls contained in this solution. Now, let's extract them for our own projects.
PaneCaption
private bool m_antiAlias = false;[CategoryAttribute("Appearance")]
[DescriptionAttribute("If should draw the text as antialiased.")]
[DefaultValueAttribute(true)]
understood?
what? did not?
oh, my god. Let me explain.
“[DefaultValueAttribute(true)]” means the default value of this property(AntiAlias) is “true“; “private bool m_antiAlias = false;“
means it sets the property variant into “false“ when you put the control on form(design time).
As we known, in visual studio, it will modify the InitializeComponent() automatically when you changed a value in property toolbox. Now, the initialized value is “false” not the default value “true”. Obviously, the IDE think it's the default value! So, it write the opposite code.
[code]Thus, modify “private bool m_antiAlias = false;
”into “private bool m_antiAlias = true;”then you will enable “AntiAlias” ability.
Moreover, AllowActive has this problem too. I believe you can solve it yourself.
Enjoy it. ;)
相关文章推荐
- IssueVision的PaneCaption控件源码分析
- How to access UI controls from a user defined class (CFormView based SDI application)
- Kernel APIs, Part 1: Invoking user-space applications from the kernel
- Pass data from a ASP.NET page to ASCX user controls loaded dynamically
- Extract User Defined Region From An Chromosome Fasta File
- Down hash一种新姿势 How to Extract Windows User Passwords from Hiberfil.sys
- jar - user of jar command to list/extract file from a jar file
- SharePoint2010:从用户控件中打开文档 -Open document(s) in Office web apps (from User controls)
- linux内核中的copy_to_user和copy_from_user(一)
- How to pass ViewState value from web form page to web user control page?
- Use Web-Harvest to data-extract from www.vdisk.cn
- ISUP:ISDN用户部分(ISUP:ISDN User Part)
- copy_to_user和copy_from_user两个函数的分析
- jenkins配置邮件报错:501 mail from address must be same as authorization user
- Migrating Resource Adapters from OC4J to WebLogic, Part 1 Outbound
- XLINQ Introduction Part 3 Of 3 By Sacha Barber(Refer from codeproject)
- Developing SharePoint WebParts using User Controls and Web Applications
- SSH报错:org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [select o from User o where 1=1
- LINUX之 Copy_from_user函数详细分析
- An association from the table work_output refers to an unmapped class: org.ejs.sys.model.Part