N
nh
Perhaps stupidly, when I started writing a database I
broke with tradition and made my own 'hover-buttons'
instead of using command buttons:
Basically, the buttons are text boxes using the following
code on the form...
Private Sub Form_Open()
Me!MyButton1.BorderStyle = 0
Me!MyButton2.BorderStyle = 0
End Sub
Private Sub Detail_MouseMove()
Me!MyButton1.BorderStyle = 0
Me!MyButton2.BorderStyle = 0
End Sub
Private Sub MyButton1_Click()
DoCmd.OpenForm.....
End Sub
Private Sub MyButton1_MouseMove()
Me!MyButton.BorderStyle = 1
End Sub
I love the effect, but the database has grown into
somthing much larger than originally planned. I now find
myself spending hours just getting new buttons to look
like the others. Unfortunately its too late to go back and
change them all to command buttons.
Each new button not only requires its own event
precedures, but modifications to all of the others'.
Can anyone suggest a way of making the task of creating a
new button simpler? Is it possible the 'save' or 'copy'
one button as a control with its code attached, and keep
re-using it? Am I stuck with it the way it is?
Thanks
Nick
broke with tradition and made my own 'hover-buttons'
instead of using command buttons:
Basically, the buttons are text boxes using the following
code on the form...
Private Sub Form_Open()
Me!MyButton1.BorderStyle = 0
Me!MyButton2.BorderStyle = 0
End Sub
Private Sub Detail_MouseMove()
Me!MyButton1.BorderStyle = 0
Me!MyButton2.BorderStyle = 0
End Sub
Private Sub MyButton1_Click()
DoCmd.OpenForm.....
End Sub
Private Sub MyButton1_MouseMove()
Me!MyButton.BorderStyle = 1
End Sub
I love the effect, but the database has grown into
somthing much larger than originally planned. I now find
myself spending hours just getting new buttons to look
like the others. Unfortunately its too late to go back and
change them all to command buttons.
Each new button not only requires its own event
precedures, but modifications to all of the others'.
Can anyone suggest a way of making the task of creating a
new button simpler? Is it possible the 'save' or 'copy'
one button as a control with its code attached, and keep
re-using it? Am I stuck with it the way it is?
Thanks
Nick