[AccessD] Tab Control Hover Color Changing

Daniel Waters df.waters at outlook.com
Thu Apr 28 16:19:44 CDT 2022


An alternate approach would be to use a control called a panel.  A panel is just a rectangular object that you place controls onto.  A typical way to use these would be to have these panels 'stack' on top of one another.  Your buttons will be regular form buttons; they can be whatever size or color you need, be in one row or more, or can be disabled/enabled to prevent usage of a panel if whatever you're doing on a particular panel can't be done yet.  When a user clicks on a button,  the associated panel can be brought to the front.  I would suggest that when the button is clicked first run any data retrieval for the panel, then do any formatting needed on that panel, then bring the panel to the front.  This makes for fast redisplay for users.

HTH!
Dan

-----Original Message-----
From: AccessD [mailto:accessd-bounces+df.waters=outlook.com at databaseadvisors.com] On Behalf Of David Emerson
Sent: 28 April, 2022 14:52
To: AccessD
Subject: [AccessD] Tab Control Hover Color Changing

Hi Listers,

I have a form with a tab control.  There are 14 tabs. The Style property is
set to Buttons.  The Use Theme property is set to No (This is because Use
Theme doesn't allow Multi-Row, and in Design View the tab control can't be
made narrower than the width of all the buttons - the buttons are wider than
the form width so the form cannot be sized to fit the form width) 

Depending on the value of a field on the first tab, the subsequent tabs are
either set to visible or not.

If I don't change any tabs (ie set them to visible or not) then when I hover
over a tab button the font color stays the same.  However, when I do change
any tabs by setting them visible or invisible, then the hover color of the
font is a light blue.  I do not want the hover color to change.

I have tried changing the Hover color property but this is only relevant if
the Use Theme property is set to Yes.

I have 2 other tab forms that act in the same way - hover color if I make
tabs invisible, no color if I don't hide tabs.

I have tested it in a different database with the same result.

Has anyone come across this before?  

My current solution is to create an extra tab on the other 2 forms and hide
it when the form loads - this means all the tabs show the hover color.

Ideally I would like to either not have the hover color show (it is a light
blue), or be able to change it to a color that suits the color scheme for
the application.

Regards

David Emerson
Dalyn Software Ltd
Wellington, New Zealand



-- 
AccessD mailing list
AccessD at databaseadvisors.com
https://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


More information about the AccessD mailing list