Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not Necessary but would be nice
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00139787
Message ID:
00139872
Vues:
22
Hi Bob,

This could be achieved using a timer and two containers. The container will be the substitute for the button and will have its SpecialEffect set to 0. Use a smaller interval for the timer. Something like 150 will do it. If you try controlling the SpecialEffect property setting from the timer it dosn't work. (Don't ask me why < g > ) What is required is that you have one container with SpecialEffect set to 0 and another with SpecialEffect set to 1. The KeyPress() event would make the sunken container visible and the timer would make the Raised container visible.

The new problem would be getting the click of the button. Simply calling the same Keypress() event with the right parameters will again give the effect of a button.

>Thanx, but I would like am building a small calculator that
>can drop under a Text Box like Quicken/MS Money has. The other
>calculator is too big. I would also like the calculator
>to have the same Color Scheme as the forms (Looks more like
>it was meant to be there, than just slapped in there)
>
>Thanx thou!
>Bob :-)
>
>
>>>Hi All,
>>>
>>>I was looking for a way to [Press Down] a button on a form
>>>upon interception of the Keypress event. Lets say in like
>>>a calculator type form, where the user would either Hit a button
>>>with the mouse (Thus showing the button being pressed)
>>>or intercepting the #'s from the Keypad and showing the #'s being
>>>pressed on the form.
>>>
>>>I have tried firing out to some of the different events and
>>>styles (3d plain, etc..) and was wondering if anyone has
>>>any suggestions?
>>>
>>>Thanx,
>>>Bob :-)
>>
>>Why not try the built in calculator? it comes up with ACTIVATE WINDOW CALCULATOR and you can get the value of an operation from the _CALCVALUE system variable. HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform