>>>I need to change the baseclass (I think) for a set of buttons (MyButtonsClass) I have in a container class. I changed all the Baseclass fields to MyNewButtonClass for the individual button records, but that did not seem to have any affect. Then I tried changing the Class field, and that resulted in errors when the VCX was compiled. What should be changed in order to have my buttons reference MyNewButtonClass instead of the default Foxpro CommandButton?
>>
>>You need to change Class and ClassLoc.
>>
>>BaseClass should be Button for buttons. Class would be MyNewButtonClass. ClassLoc needs to specify the location of the VCX MyButtonClass is in. ClassLoc is relative to the folder the Form is in.
>
>For the BaseClass, you meant CommandButton, not Button, right?
this is my class hack function. it just changes the .vcx name, you can add class name too:
class("myform.scx")
proc class
LPARAMETERS xfile
USE (xfile)
REPLACE classloc WITH "lib\forms.vcx" FOR classloc="..\..\kalem\lib\forms.vcx"
REPLACE classloc WITH "lib\kalem.vcx" FOR classloc="..\..\kalem\lib\kalem.vcx"
USE