Button design

fabioltj

Fabio Juliato
Local time
Today, 13:13
Joined
Sep 8, 2005
Messages
15
Hello all,

How can I re-design my form command button? I mean, how can I change the back color from the standard access command button ? Or how I can let it transparent.
Is it possible to create a round button instead of a square one ?

I'm always using the tool box and so, the command button option to create them. I don't know if there is another way to do that...

Thanks in advance
 
Use the search button, this question's been answered many times, examples have also been posted
 
I really searched, but I can't find. I supose that you refer to access 2000 when you say A2K. So this is that I'm using... I've tried seek in access help, book,etc but I'm unable to re-design the button command. For eg. to change the back color, etc.
Do Anybody here have patient enough to help me in this issue more one time? Or ever show me where is the last posted message about this issue...

Thanks a lot
 
The "standard" ( grey) button , you'll get from the toolbox is just one possibility. In fact you can design your own button on the basis of a label,
a text field, and other objects. Basically , it's a matter of defining the 'on click' event relevant to the button, text field, label, etc.

So, on your form, insert a label, modify the label properties to your needs ( color, size, etc) and put something like this in the 'on-click' function :

Private Sub Label59_Click()
On Error GoTo Err_Label59_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "FormXXXX"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Label59_Click:
Exit Sub

Err_Label59_Click:
MsgBox Err.description
Resume Exit_Label59_Click

End Sub

Save the form, and once in view mode, click on the label and you will see that FormXXX is opened.
Succes.
 
Thanks for your attention.

Ok I've tried to do that through a label, and I already have my function code up & running such as: to open anothers forms,etc.

But How can I create the button effect? In other words, how can I produce the depressed effect when I click on the button (now label) ?

Thanks in advance
 
Help

How can I make the button effect on a label ?

I've already had a code linked with a label, and when I click on the label I want to see the label going down and up like as a button.
Is it possible to do that?
 
You can use the Mouse Up & Mouse Down events (in your label/button) for a small movement of the button;

In MouseUp Event put - Me! YourlabelName.SpecialEvent=1
In MouseDown Event put – Me! YourLabelName.SpecialEvent=2

I think the 1 & 2 are in the correct order, if not just reverse them.

Do a search for MouseMove event. It's a bit long to explain here but using that you can make your button do some extra tricks. There's lots of button tricks in these postings and it's not difficult to find them. Good luck.
 

Users who are viewing this thread

Back
Top Bottom