Hyperlink (1 Viewer)

ddrew

seasoned user
Local time
Today, 21:06
Joined
Jan 26, 2003
Messages
911
I have a form with a number of boxes on that have been made to react as buttons. I did it this way in order to allow me to colour them.

I also have a number of ordinary buttons on my form, with thease I have made the cursor change to a pointing finger when the the mouse passes over them simply by putting SPACE_ in the Hyerlink Property as boxes dodnt have a Hyperlink roperty is it possible to create the same effect with code. Thank You!:D
 

kolorasta

Registered User.
Local time
Today, 17:06
Joined
Feb 19, 2007
Messages
18
you can create a textbox to look like an hyperlink with the font color what you want doing this:

create a textbox with the color and other atributes you like for the text.
then create a button with an SPACE in the hyperlink property and backgrount prop to TRANSPARENT and no caption...
resize the button to the same size like the textbox. put the button over the textbox and put whatever you want in the ONCLICK event of the button..

tip: set the tabstop property for the textbox to "NO" so it never get focus. If the textbox gets focus this technique doesn't work.

that's all
 
Last edited:

Users who are viewing this thread

Top Bottom