Article View: comp.windows.interviews
Article #1052Novice needs help with menus
From: Chris Ziomkowski
Date: Thu, 02 May 1991 20:35
Date: Thu, 02 May 1991 20:35
22 lines
1485 bytes
1485 bytes
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
Technical Details
Message-ID:
<1991May2.203503.9308@nntp-server.caltech.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!aunro!ukma!usenet.ins.cwru.edu!eagle!data.nas.nasa.gov!mustang!nntp-server.caltech.edu!martin.cns.caltech.edu!czimShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!aunro!ukma!usenet.ins.cwru.edu!eagle!data.nas.nasa.gov!mustang!nntp-server.caltech.edu!martin.cns.caltech.edu!czim From: czim@martin.cns.caltech.edu (Chris Ziomkowski) Newsgroups: comp.windows.interviews Subject: Novice needs help with menus Message-ID: <1991May2.203503.9308@nntp-server.caltech.edu> Date: 2 May 91 20:35:03 GMT Sender: news@nntp-server.caltech.edu Organization: caltech Lines: 22