PDA

View Full Version : Marquee menu in custom panel ...?


Posthaste
01-18-2011, 12:24 AM
Hello,
Does anyone know how to get marquee menus to show up in a model panel? I have a model panel inside of a window, but I cannot figure out how to enable marquee menus in the panel I have made.

Here is what I have so far.

global proc OpenTestCTRLPanel()
{
string $selObject[] = `ls -sl`;
if(`window -exists "TestCamera"`)
deleteUI "TestCamera";

string $windowTest = `window -w 500 -h 700 -t "TestCamera" TestCamera`;
paneLayout -w 500 -h 700;
string $mypanel = `modelPanel -pmp buildPanelPopupMenu`;
lookThru TestCTRLCam $mypanel;
select -cl;
//select "TestGroup0" "TestGroup1";
isolateSelect -state 1 $mypanel;
showWindow $windowTest;
select -cl;
}

Additionally. If you notice I setting the panel to only show TestGroup0 and TestGroup1. I am doing this very dirty using the isolateSelect feature. If there is a cleaner way to do this let me know.

CGTalk Moderation
01-18-2011, 12:24 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.