tag:blogger.com,1999:blog-29331675.post8946589024738477850..comments2024-03-05T17:37:00.995+01:00Comments on The Delphi Geek: TWinControl.Controls Enumerator, Revisitedgabr42http://www.blogger.com/profile/06903558857617342477noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-29331675.post-5531789798081941162015-09-02T08:36:19.004+02:002015-09-02T08:36:19.004+02:00Link rot, sorry.
GpVCL was moved to GitHub: https...Link rot, sorry.<br /><br />GpVCL was moved to GitHub: https://github.com/gabr42/GpDelphiUnits/blob/master/src/GpVCL.pasgabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-36222718840799710932015-09-02T02:22:25.910+02:002015-09-02T02:22:25.910+02:00Is there a reason the link is broken to http://gp....Is there a reason the link is broken to http://gp.17slon.com/gp/files/gpvcl.zip? We still can't enumerate over TWinControl.Controls, can we?DKHhttps://www.blogger.com/profile/14492076690760554850noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-73739001431388147742008-02-06T15:34:00.000+01:002008-02-06T15:34:00.000+01:00I'm aware of that.The problem occurs when you have...I'm aware of that.<BR/><BR/>The problem occurs when you have two class helpers for TWinControl in two different units, written by different authors. Then you have to manually change one of them to descend from the other class helper - and you have to do it every time the unit changes.<BR/><BR/>In my opinion a simple function is better and more stable.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-52087135612913754982008-02-06T14:56:00.000+01:002008-02-06T14:56:00.000+01:00You can use the syntaxTYPE THelperClass2 = CLASS ...You can use the syntax<BR/><BR/>TYPE<BR/> THelperClass2 = CLASS HELPER(THelperClass1) FOR TClassToBeHelped<BR/><BR/>to have more than one active CLASS HELPER for a given class...HeartWarehttps://www.blogger.com/profile/09697248982136383213noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-79970145993754027712008-02-06T11:49:00.000+01:002008-02-06T11:49:00.000+01:00I'm trying not to use class helpers too much, main...I'm trying not to use class helpers too much, mainly because of the weird implementation which only allows one active helper per class.<BR/><BR/>And in this case, there's not much difference between typing EnumControls(control) and control.EnumControls.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-14026918827315013332008-02-06T11:38:00.000+01:002008-02-06T11:38:00.000+01:00Also why not add the function to the TWinControl c...Also why not add the function to the TWinControl class using a class helper, would make the code using it look nicer.David Glassborowhttps://www.blogger.com/profile/16408649996030228777noreply@blogger.com