Opened 6 years ago

Last modified 2 years ago

#9670 assigned enhancement

BSeparatorItem should draw a vertical line if attached menu layout is B_ITEMS_IN_ROW

Reported by: jscipione Owned by: nobody
Priority: low Milestone: Unscheduled
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by jscipione)

Currently BSeparatorItem always draws a horizontal line under the assumption that the attached menu's layout is B_ITEMS_IN_COLUMN. This assumption, while pretty good, falls down if menu is in B_ITEMS_IN_ROW. In this case the separator should be vertical.

Change History (5)

comment:1 Changed 6 years ago by jscipione

Description: modified (diff)

comment:2 Changed 6 years ago by jackburton

BSeparatorItem is only meant to be used in B_ITEMS_IN_COLUMN layout, see here:

comment:3 Changed 4 years ago by pulkomandy

Milestone: R1Unscheduled
Type: bugenhancement

Making this an enhancement then. Also I think the current result isn't too bad and works well as a separator in -for example - a BMenuBar.

An alternative use for BSeparator in a BMenuBar would be to act similar to our BLayout "glue", so you could have right-aligned items in a menu.

comment:4 Changed 4 years ago by jscipione

enhancement is good. This would be pretty easy to implement though if someone was so inclined. I wanted to use a BSeparatorItem to separate the Deskbar Leaf menu from the applications in horizontal mode, but, found that the BSeparatorItem didn't work in B_ITEMS_IN_ROW. I created a custom BMenuItem instead, but, it would be nice if that wasn't necessary.

comment:5 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.