[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms HACKING,1.2,1.3
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms HACKING,1.2,1.3 |
Date: |
Mon, 16 Jun 2003 23:54:29 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms
In directory subversions:/tmp/cvs-serv4406/System.Windows.Forms
Modified Files:
HACKING
Log Message:
New section on traps to look out for when stubbing classes.
Index: HACKING
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/HACKING,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** HACKING 12 Jun 2003 07:56:35 -0000 1.2
--- HACKING 17 Jun 2003 03:54:27 -0000 1.3
***************
*** 137,140 ****
--- 137,158 ----
}; // class HypotheticalControl
+ Stubbing
+ --------
+
+ If you are in the beginning stages of implementing a standard SWF
+ control from the MSDN docs its probably a good idea to begin by stubbing
+ all non-inherited methods, events, and properties.
+
+ During this process if there are some methods your not sure what to do
+ with, just call its matching base class method.
+
+ One case we found this to be a problem was the CreateHandle() method
+ from some controls, if you stub it but don't call the base class method
+ it makes your control not work as expected.
+
+ Then later on as you go implementing events and such you may encounter
+ the reasons as to why these methods were overriden and you can do what
+ you want there.
+
Theme support
-------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms HACKING,1.2,1.3,
Rhys Weatherley <address@hidden> <=