home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.tools
- Path: sparky!uunet!spool.mu.edu!caen!destroyer!gumby!yale!actcnews!sun1x!charongw.res.utc.com!bsm
- From: bsm@utrcv1.res.utc.com (Brian S. McCarthy)
- Subject: Re: Visual Basic 1.0 frame problem
- Message-ID: <bsm.7.0@utrcv1.res.utc.com>
- Keywords: VB, draw
- Lines: 37
- Sender: news@sun1x.actc.res.utc.com
- Nntp-Posting-Host: 192.19.3.94
- Organization: United Technologies Research Center
- References: <1992Dec15.141608.13565@ramsey.cs.laurentian.ca>
- Date: Wed, 16 Dec 1992 14:33:27 GMT
-
- In article <1992Dec15.141608.13565@ramsey.cs.laurentian.ca> barry@ramsey.cs.laurentian.ca (Barry G. Adams) writes:
- >From: barry@ramsey.cs.laurentian.ca (Barry G. Adams)
- >Subject: Visual Basic 1.0 frame problem
- >Date: Tue, 15 Dec 1992 14:16:08 GMT
- > I have been trying to create a frame in VB 1.0 and then put some
- > option buttons on it. First I design the frame and then I put
- > the option buttons on it. However, as soon as I click on the frame
- > at design time the option buttons disappear behind the frame and
- > the only way to get them back seems to be to use tab. Everything
- > works fine at run time.
- >
- > Is there some magic key combination that lets me associate the buttons
- > with the frame so that when I move the frame the buttons move too and do
- > not disappear. There is nothing in the manuals on this. There is obviously
- > a way to do it since there is a demo program called prnt.mak that is in the
- > vb.cbt directory used by the VB tutorial that works properly.
- >
- > Barry Adams (barry@ramsey.cs.laurentian.ca)
-
- I think I found the answer to both your problem and my own.
- The key word is "draw". You can't just "put" the buttons on the frame, you
- must "draw" them on. The way to do it is to click _once_ on the toolbox
- icon for option buttons, then click down on the frame you've just created
- and drag over it until you have created an option button of the proper size.
-
- This also works with other types of objects. You can associate regular push
- buttons with a frame and they also move around with the frame.
- ---------------------------------------
- Any opinions expressed here are mine alone,
- and are not those of my employer or anyone else.
-
- Brian McCarthy
- United Technologies Research Center
- East Hartford, Connecticut
- (203)727-7638
- bsm@utrc.utc.com
- ---------------------------------------
-