Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command button causing hover issues

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hi,

I am having a problem with a command button on a form with tabs.

If I copy/paste a control button the button seems to attach to the form not the tab I wish it to be a part of and so each tab shows the same button.

If I draw a new button on the tab control, the button only displays on the desired tab, however, a white background rectangle appears behind the button when it is hovered over and I can't seem to get rid of it?

It seems I can get the control to not have this background rectangle if the control is on the form, but not if the control is on the tab control?

What am I doing wrong?

Thanks,
1DMF.



"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Electronic Dance Music Download
 
Doesn't have you a subform for each tab ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Note: If I change the control to
Code:
Transparent = yes
I can see what looks like a bounding box with a border which is the area that is causing the hover issue?

Switch back to 'no' and the button show correctly and this weird bounding box disappears, but shows when the control is hovered over?

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Electronic Dance Music Download
 
OK, further analysis, this bounding box goes away when I set
Code:
Use Theme = No
but of course I loose the rounded corners and the shadow effect from the control.

What part of the theme d I need to switch off / change to resolve this?

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Electronic Dance Music Download
 
OH, another weirdness with the controls.

If I am in design view and right click the form, select 'form view' and then hover over the controls this background box doesn't appear.

However, if I close the form and then use the button on another form that opens the form in question using
Code:
    DoCmd.OpenForm "Contacts"
, then I have the control hover issue?



"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Electronic Dance Music Download
 
Do I assume themes don't work properly in access 2010 and I should give up?

I cannot stop new buttons from having this crappy invisible box appear behind controls when hovered over.

Buttons that were put on the form pre-2010 (access 2003) work fine and even though they have this weird theme bounding box showing when you make the control transparent, it doesn't show when the control is hovered over.

If I cut / paste a control that works fine, the new control that is an exact copy of the one that works has this hover issue, as do any new controls I draw on the tab control (page).

The only way to stop this happening is to turn off the theme and have them as oldskool grey buttons.



"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Electronic Dance Music Download
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top