Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hacking the VCX
Message
From
18/01/2008 11:18:03
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
18/01/2008 10:44:28
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01282951
Message ID:
01282999
Views:
7
>>>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 
Previous
Reply
Map
View

Click here to load this message in the networking platform