Prev: I need to convert hex colors from Photoshop to something usablein GDI
Next: Something fun to play with
From: Tony Toews on 20 Jun 2010 14:43 On Sun, 20 Jun 2010 18:21:47 +0200, "Boris P." <bpnotvalid(a)nospamhotmail.com> wrote: >That guy is using an older version Paul Caton's subclasser. >If you look on PSC (look for "Paul Caton subclass"), you will somewhere >find a newer version. Be careful to use the latest on PSC (done by Paul >Caton, not La Volpe) there are many different versions out there. > >You have to include this new subclassing code in your usercontrol >instead of the old version. >The old version is not safe and crashes under certain circumstances. > >It's maybe tricky for your to update the old subclasser in your control, >but that's the only way for you if you want to do it yourself. Ahhh, ok, that makes a lot of sense. Indeed as far as I could tell it was failing at the end of the sobroutine in which the sub classing was being executed and before another subroutine started. Hmm, maybe I should just send your comments to the creator of the JCButton code and let him do the work. <smile> I'm in no hurry to get this implemented as it's a nice to have feature for my uttility not a must have. Thanks a *LOT* for the tip Tony
From: Tony Toews on 20 Jun 2010 14:43 On Sun, 20 Jun 2010 19:06:28 +0200, "Boris P." <bpnotvalid(a)nospamhotmail.com> wrote: >Also, you see this comment in the code: > >'========================================================================= >'PUBLIC ROUTINES including subclassing & public button properties > >' CREDITS: Paul Caton >'====================================================================================================== >'Subclass handler - MUST be the first Public routine in this file. That >includes public properties also > > >This is not done in the code you are using, but it has to be. Ahhh, also even more interesting. Tony
From: Tony Toews on 20 Jun 2010 15:22 On Sun, 20 Jun 2010 18:21:47 +0200, "Boris P." <bpnotvalid(a)nospamhotmail.com> wrote: >That guy is using an older version Paul Caton's subclasser. >If you look on PSC (look for "Paul Caton subclass"), you will somewhere >find a newer version. Be careful to use the latest on PSC (done by Paul >Caton, not La Volpe) there are many different versions out there. Is this it? SelfSub 2.1 updates and additions. Apr 13 Submitted on: 4/13/2006 5:34:17 PM http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=64867&lngWId=1 Thiis one is older Self-subclassing Controls/Forms - NO dependencies. Updated 09/10 Submitted on: 6/1/2004 4:58:34 AM By: Paul Caton http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=54117&lngWId=1 Submitted on: 10/30/2008 4:20:34 PM http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=71308&lngWId=1 No, This one is submitted by Sujip Maharjan Ah, here's the one not to use SelfSub, SelfHook, SelfCallback by Paul Caton Submitted on: 7/21/2007 3:58:14 PM By: LaVolpe http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=68737&lngWId=1 Tony
From: Tony Toews on 20 Jun 2010 15:42 On Sun, 20 Jun 2010 18:21:47 +0200, "Boris P." <bpnotvalid(a)nospamhotmail.com> wrote: >That guy is using an older version Paul Caton's subclasser. Sure would've been nice if the JCButton author retained Paul Caton's version info. Grumble, grumble. At least he prefixed all of Paul's stuff with Subclass_ Tony
From: Tony Toews on 20 Jun 2010 15:57
On Sun, 20 Jun 2010 19:06:28 +0200, "Boris P." <bpnotvalid(a)nospamhotmail.com> wrote: >Also, you see this comment in the code: > >'========================================================================= >'PUBLIC ROUTINES including subclassing & public button properties > >' CREDITS: Paul Caton >'====================================================================================================== >'Subclass handler - MUST be the first Public routine in this file. That >includes public properties also > > >This is not done in the code you are using, but it has to be. Hmm, Paul Cato's 2006 code doesn't state that. Tony |