Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slick trick for a command button
Message
From
07/11/2005 22:54:00
 
 
To
07/11/2005 22:41:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01065541
Message ID:
01066290
Views:
16
>>For a command button
>>
>>Mouse Enter
>>
>>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>>this.caption = "Some text"
>>
>>Mouse leave
>>
>>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>>this.caption = ""
>>
>>Create and place a jpg the size of the button, over the button. I use a gradient fill in the jpg.
>>
>>When the mouse passes over the jpg, it will raise like an eyelid and expose the text on the button for clicking.
>
>Hi Grady
>
>As per your code above, you place this in the Mouse Enter/Leave of the button and then place a JPG OVER the button.
>
>In that case the Mouse Enter and Leave of the button would never be fired,since the JPG is sitting over the button and its Mouse events would fire.
>
>Have you left out something or am I missing something?
>
> Save to: Default
>
>
>
>
>
>Switch color theme
>Select message background color...
>Select message area width...
>Disable message width in percentage
>Change toolbar background color...
>Adjust message text font size...
>Disable auto links
>Enable acronyms
>Disable message header
>Enable auto quote
>Re: Slick trick for a command button Thread #1065541 Message #1065986
>
>Try setting special effects for the command button to 2 (hot tracking)

Yes, but with the image OVER the button how will it's (the button) events fire? That was my question.

Doing as you describe in your original post:

"Create and place a jpg the size of the button, over the button. I use a gradient fill in the jpg."

With the jpg "over the button" as you say, the button never gets any mouse events so of what use is entering code in the Mouse Enter and Mouse Leave events?

Could you explain a bit more please?
-------------------------------------
It works on my 386 1 gig computer using VFP 9. Have you tried it yet?
-------------------------------------
I ain't skeert of nuttin eh?
Yikes! What was that?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform