Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invisible Command Buttons
Message
De
03/08/2001 14:53:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00539138
Message ID:
00539592
Vues:
10
>>Kevin,
>>
>>The outline you are talking about is the Focus rectangle and is there for a purpose. However if want to stop this being displayed then put NODEFAULT into the GotFocus() method of the button. One thing you should be aware of is that this works well with invisible buttons but if you use this trick on a standard 3D button then the button will not animate.
>>
>>HTH
>>Neil
>
>Thanks for the reply!
>
>Unfortunately this also prevents the MouseDown event from firing. I can force the MouseDown event to fire from within the GotFocus event, but then the box flashes on/off on the MouseUp event. I can't find a way to get rid of this flashing, and in a way it's more annoying then the consistant box.
>
>---
>
>This seems to be all fairly basic, so stop me at any time if I'm wildly off from a much simpler solution.
>
>A little history: I'm doing this in order to have the illusion of "pretty" buttons using images and labels. I'm trying to give the effect of the button moving down on MouseDown and up on MouseUp. If I just had a picture it would be a simple matter of modifying it's methods, but with the label in place I decided it would be easier to cover it all up with a single object to keep all the code modifications are in one place.
>
>This seemed to be the perfect task for an invisible button; it's a button after all! The code itself didn't take any more then 10 - 15 minutes to produce, and I'm happy with the results with the exception of the border. I can use a shape or, as Mr. Basoz suggested, a container, but that seems... wrong to me somehow. But if that's what has to be done then that's what I'll do!

Oh saw this by chance Kevin :) If that seems wrong visit my signature (FoxyClasses) to download samples and I think you'll see what you're referring applied :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform