PDA

View Full Version : Multiple context menus?


djh_
2008-06-27, 21:25
I want to have two different context menu formats that display according to the view type from which they're invoked. Is this possible? I've tried various methods involving conditional visibility but there doesn't seem to be a way of passing Control.IsVisible conditions to the contextmenu window.

kraqh3d
2008-06-27, 22:01
I don't think so. The context menu entries are filled in by the software.

Jezz_X
2008-06-27, 23:14
jmarshall was supposed to of added conditional visibility to the the conext menu items so they can display different look a while ago but I don't think any one used it so it may have never worked or broke since

jmarshall
2008-06-28, 03:21
Conditionals that fall back to the mediawindow should work (eg Container.* stuff) but those that don't (such as Control.IsVisible()) won't, as we try and restrict conditionals to the current rendering window to get around issues with people referencing the wrong control (same id in each window) and so on.

Ideally the control ones could actually take the window id in addition to the control id to "solve" the issue, though there's other problems with that (controlgroup can take 2 id's already, and we're currently restricted to just 2 pieces of additional info).

Cheers,
Jonathan