ID:132727
Dec 1 2009, 10:16 am
|
|
It would be nice to see the menus being able to be split off into sub-menus like in the screenshot I took of firefox shown above. |
It is possible:
client/New() |
In response to Android Data
|
|
Android Data wrote:
It is possible: > client/New() In this image, were it says Toolbars, under it says "Status Bar". When I try to add more then one it only shows the second one. I've tried var/list/L = list("parent" = "menu", "name" = "Interface Color") That only makes it show "Red". And I've also tried: var/list/L = list("parent" = "menu", "name" = "Interface Color") Both just show "Red" and not include the "Blue" part. Any help on this? And Yes I do know my topic on this is old, but pointless making a new topic when there already is one. |
In response to Howey
|
|
You can't add two menu items in the same winset(), nor can you have two different associated values in an associative list. This line will never work:
L = list("parent" = "viewmenu", "name" = "Blue", "parent" = "viewmenu", "name" = "Red") L["name"] cannot be both "Blue" and "Red", and you've set L["parent"] twice. I'm not sure how DM will compile this list; it might give you a list with the items "parent", "name", "parent", and "name" but there are only two associated values. It might also just give you a list with "parent" and "name". I'm also not sure which result you'd get out of list2params(), but it definitely won't be what you were expecting. Lummox JR |
In response to Lummox JR
|
|
So is there a way to do it?
|
In response to Howey
|
|
You can add as many menu items as you like, but you can't do it all in the same winset, and you can't make associative lists carry two different associated values for the same item.
Lummox JR |
Edit:
Look up "Menus" in the skin ref; it talks about the parent parameter.