Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add custom Grid Hdr class and transfer Props/Mthds from orig
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Add custom Grid Hdr class and transfer Props/Mthds from orig
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01060429
Message ID:
01060429
Views:
58
Hi all

I could get the following code to work, but alas I am not sure how to transfer all the properties / methods (if defined) from the original header class to the just replaced class. Plus note, I cannot also reuse the name of the original header. This grid is predefined grid I just want to replace the header class for OOPism. Please advise.
FOR EACH loColumn IN THIS.COLUMNS
   FOR EACH loObj IN loColumn.CONTROLS
      IF loObj.BASECLASS = "Header"
         lcName = loObj.NAME

         loColumn.REMOVEOBJECT(loObj.NAME)
         loColumn.ADDOBJECT(lcName+"a", "ihdrGridHeader")
      ENDIF
   ENDFOR
ENDFOR
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform