[comp.windows.interviews] Novice needs help with menus

czim@martin.cns.caltech.edu (Chris Ziomkowski) (05/03/91)

Here's a question I'm almost embarrassed to ask, but I've been working on it
for 4 days and can't seem to get anywhere. All I'm trying to do is display a
pulldown menu on the screen.  Does any one have any documented example code
that would show me how to do this without declaring alot of specialized classes?

Basically, all I'm doing right now is creating a MenuBar, and then trying
to do a "menu_bar->Include(file_menu)" where file_menu is a PulldownMenu.
I then insert menu_bar into an HBox and insert that into a MonoScene.

When I try to "world->InsertTopLevel(menu_bar_window,...)" I get a
segmentation fault. I've tried setting the input and output fields before
inserting into the world but that doesn't seem to do any good?

Can any kind and understanding souls out there please explain to me what I'm
doing wrong? (And possibly supply some example code)

Thanks for everything...

Chris.

Chris Ziomkowski
czim@cns.caltech.edu