DougHennig / Ribbon

A Microsoft Office 365-like ribbon control for VFP forms
24 stars 11 forks source link

tabs remaining highlighted #7

Closed NigelGomm closed 2 years ago

NigelGomm commented 3 years ago

Doug, if you press mousedown on a tab and then move the mouse up to the window's title bar before releasing... the tab doesn't get a .mouseleave() event and remains highlighted. (i must have been doing this inadvertently every once in a while when clicking on a tab). This is compounded by the line in .mouseenter() This.nBackColor = This.BackColor saving the (now) highlighted colour; themes_assign will have set .nBackColor already so i have commented this line out. Now at least next time i .mouseleave() it gets reset to the correct .backcolor.

I'm guessing the only way to prevent this happening in the first place is to put the tab's .top to 1 so it gets a chance to see .mouseleave() ?

n

DougHennig commented 2 years ago

Moving over the button again clears the highlight, so I don't think this is too big of an issue,