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
Miscellaneous
Thread ID:
00190549
Message ID:
00190789
Views:
11
Esteban,

Normally when changing a property like SpecialEffect you have to force a repaint of the control to see it. Just add a this.Visible = this.Visible
>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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform