Different button images on switchboard

Chunk

Registered User.
Local time
Today, 13:33
Joined
Oct 25, 2004
Messages
64
Is there anyway to set differentbutton images for each section of a switch board.

Say I have a main switch board with "Customers", "Orders" and "Products". I want each one of these buttons to have an image.

However, when you click on "Customers" you go to the customers swicthboard, which then has "add", "delete" and "edit". I would like these three buttons to have images, but different images to those on the main form.

I hope that is clear.

Is it possible to do this, and if so how?

Thanks.
 
I presume you are talking about the built in switchboard. If you feel comfortable with it, you can modify the code in the Switchboard form. You'll need to understand how the form works first though. To start, open the Switchboard Items table and study it. You will see the data for each switchboard page. What you would need to do to the form is place code in the form's Current event that determines which "page" it is displaying based on the data it read from the table. You can then swap the image for the buttons for this page. Remember to handle both sides of the If -
Code:
If something Then
    make the button images one thing
Else
    make the button images something else
End If

You can do all eight buttons even if a given page has only a couple of entries. The form takes care of making the buttons visible or not as necessary.
 
Right, I see what your saying. Thanks. Ill try it.
 

Users who are viewing this thread

Back
Top Bottom