Opened 11 years ago

Closed 3 years ago

Last modified 10 months ago

#9670 closed enhancement (fixed)

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/BMenu Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
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 (7)

comment:1 by jscipione, 11 years ago

Description: modified (diff)

comment:2 by jackburton, 11 years ago

BSeparatorItem is only meant to be used in B_ITEMS_IN_COLUMN layout, see here: http://www.acm.uiuc.edu/bug/Be%20Book/The%20Interface%20Kit/SeparatorItem.html

comment:3 by pulkomandy, 9 years ago

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 by jscipione, 9 years ago

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 by axeld, 7 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:6 by jscipione, 3 years ago

Resolution: fixed
Status: assignedclosed

Implemented in hrev54179

comment:7 by pulkomandy, 10 months ago

Component: Kits/Interface KitKits/Interface Kit/BMenu
Note: See TracTickets for help on using tickets.