Apache OpenOffice (AOO) Bugzilla – Issue 79282
Inconsistent behaviour and appearance of pop-up menus on toolbars
Last modified: 2013-02-27 19:10:30 UTC
Toolbar buttons with an associated pop-up menu are drawn inconsistently and incorrectly. The behaviour of the pop-up menus is also inconsistent. *New document: pop-up cannot be torn off. *Alignment: pop-up can be torn off. *Arrowheads: pop-up tears itself off.
Created attachment 46547 [details] The left two are buttons seen in Draw, the rightmost is the IE back button. To be certain, I've looked at my visual style using Theme Explorer, and IE seems to get it right. The correct parts to use are TP_SPLITBUTTON and TP_SPLITBUTTONDROPDOWN.
Or TP_DROPDOWNBUTTON, but only if there is no reasonable action for the left part of the button. So for the new document toolbar button, you'd use TP_SPLITBUTTON and TP_SPLITBUTTONDROPDOWN, since clicking the left part (with the icon) would result in a new document directly, while clicking the right part (with the downward arrow) would open a menu. In the attachment, it is clearly visible that the leftmost button is drawn wrongly, it should be styled like the rightmost button. The middle button is styled correctly, assuming that no reasonable separate action for the left part is available.
shinobu_maehara, difference in appearence of "New document" vs "Arrowheads" can be explained by difference in behavior - "New document" button has default choice (which you can override with TP_SPLITBUTTONDROPDOWN). On the other hand, "Arrowheads" button apparently has no default choice thus it's _only_ action is to display dropdown list. As I can't find "Alignment" button I can't comment on that.
Draw: New button has a vertical line between icon and arrow, Arrow style button has no vertical line between icon and arrow. Checked using Rev. 1327774.