Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Containers in VFP6 - MouseDown & MouseUp events
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Containers in VFP6 - MouseDown & MouseUp events
Miscellaneous
Thread ID:
00190549
Message ID:
00190549
Views:
44
Hi,
I'm subclassing a containter to make a New Command Button class. In VFP5, I have not problems, but in VFP6 my little code don't work.

The code is:
Define Class NewButton As Container
    SpecialEffect = 0

    Procedure MouseDown
        LParameters nButton, nShift, nXCoord, nYCoord
        This.SpecialEffect = 1
    EndProc

    Procedure MouseUp
        LParameters nButton, nShift, nXCoord, nYCoord
        This.SpecialEffect = 0
    EndProc
EndDefine
When I create an object bassed on NewButton on my form and run it, I hold down the left button of the mouse over the NewButton object and don't change the specialeffect property.

I try it in VFP5 and works ok

Is this a VFP6 bug ??

Any suggestion ???

Thanks in advance
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.
Next
Reply
Map
View

Click here to load this message in the networking platform