Hey guys
I am building a menu bar with eight categories and the way it works is that I have eight labels one for each category and if you click on one category 3 additional subcategories appear under the first category, the subcategories were in visible and is set to be visible when I click on the label for the first category and then becomes invisible when I click on the next category. I also have it set to on mouse move the backcolor turns yellow and the forecolor red every time I move my mouse on any one label.
The problem I am having is that there are a lot of labels and that means a lot of code to write. is there any way to have it tell the computer that for every label my mouse moves over to have the backcolor change yellow and the forecolor change red and when my mouse moves to another label to have it go back to it's original colors.
let me know if there is another way around this or else I have to write a lot of code.
This is what my menu bar looks like
-------------------------------------------------------
Categ1|Categ2|Categ3|Categ4|Categ5|Categ6|Categ7|Categ8|
------
Sub1 |<-These are the submenus that have visible set to
------ "False" and when you click on Categ1 their visible
Sub2 | is set to "True" When your mouse moves on one of
------ them the back color changes on which ever label
Sub3 | your mouse is on.
------
I am building a menu bar with eight categories and the way it works is that I have eight labels one for each category and if you click on one category 3 additional subcategories appear under the first category, the subcategories were in visible and is set to be visible when I click on the label for the first category and then becomes invisible when I click on the next category. I also have it set to on mouse move the backcolor turns yellow and the forecolor red every time I move my mouse on any one label.
The problem I am having is that there are a lot of labels and that means a lot of code to write. is there any way to have it tell the computer that for every label my mouse moves over to have the backcolor change yellow and the forecolor change red and when my mouse moves to another label to have it go back to it's original colors.
let me know if there is another way around this or else I have to write a lot of code.
This is what my menu bar looks like
-------------------------------------------------------
Categ1|Categ2|Categ3|Categ4|Categ5|Categ6|Categ7|Categ8|
------
Sub1 |<-These are the submenus that have visible set to
------ "False" and when you click on Categ1 their visible
Sub2 | is set to "True" When your mouse moves on one of
------ them the back color changes on which ever label
Sub3 | your mouse is on.
------