SpecialEffect=0 Slow to respond

rube

Registered User.
Local time
Today, 05:31
Joined
Jun 21, 2003
Messages
76
In an attempt to dress up one of our apps, we have been using custom icons and the Mouse Move/Up/Down to give it more of a "web" based feel where the buttons (images) rise when you mouse over them.

We used to use command buttons, but with the custom icons, you would get the "edge ring" around the command button depending on the color scheme.

The problem is, when I use the MouseUp Event to reset the image to flat (me.imgXyz.SpecialEffec=0), and open another form, it takes a second to set the special effect. I timed it against a command button that calls the same form, the time is identicle, but because the image does not go back flat until the form is loaded, it gives the appearance of being slower or stuck.

I have tried to reset the image via a call to a Procedure, and the same with opening the form.

Is there another option I have or something I have overlooked.

Thanks,

Rube
 
I use the specialeffect property all the time on raise text boxes, with the MouseUp/MouseDown event, to sink or raise then. This way I can simulate a colored botton, that is, set the text box's backcolor.

The no speed degredation.
 
Comparison

Thanks for the reply. We use this too, some to change color/border, giving it an Outlook type feel, and others we raise. In this app, we take an image and "turn" it into a button, the speed is the same as a regular button as you said, no degredation, but the command button snaps back to raised immediately after the mouse button is released, with the image we raised to a button(1), then pushed (2), it does not go back to flat (0) until after the called form is loaded, giving it a little "lag" time until it goes back flat.

If I take out the call to the form, it behaves as quickly as a command button.

Thanks for the input.

Rube
 

Users who are viewing this thread

Back
Top Bottom