Before I start coding a custom control, thought I’d ask if DirectOptionMenu has a way to control the size of the popup and a way to scroll through it. I can possibly have a long list sometimes and want to be able to not go over my screen size. (i.e. extend beyond the visible screen).
If it’s meant for smaller lists - I will have to use a DirectSrcollList on a modal dialog, I guess.
Did you try making a panda3d.org/manual/index.php … olledFrame and reparent your menu to the frame canvas with menu.reparentTo(myFrame.getCanvas()) ?
Then if the menu is big for the screen navigate trough the frame with the scrollbars. All the elements of scrolledFrame are customizable.
Hadn’t tried that.
I can easily parent it to a canvas, but I’m not following how I would make it look and work like a std dropdown list (like the “Jump to:” dropdown list at the bottom of this forum.)
No, I haven’t. And that would be the easiest solution!
I assume I can resize the popup to stay on my screen but would it automatically handle if there are more items in the popup than can be shown in the frame?