home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!uta!kielo.uta.fi!ps
- From: ps@uta.fi (Pertti Suomela)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: Create buttons dynamically, how?
- Message-ID: <PS.92Dec23110850@pellava.uta.fi>
- Date: 23 Dec 92 09:08:50 GMT
- References: <PS.92Dec14233706@kielo.uta.fi> <724429478snz@chrism.demon.co.uk>
- Sender: news@uta.fi
- Distribution: world
- Organization: Tampere University, Finland
- Lines: 25
- Nntp-Posting-Host: pellava
- In-reply-to: chris@chrism.demon.co.uk's message of 15 Dec 92 14:24:38 GMT
-
- In article <724429478snz@chrism.demon.co.uk> chris@chrism.demon.co.uk (Chris Marriott) writes:
- > In article <PS.92Dec14233706@kielo.uta.fi> ps@uta.fi writes:
-
- > >How can you create buttons dynamically? That is, how the application
- > >can decide during run-time the number and the positions of the buttons
- > >it wants to create? All the demonstration programs (BC++/AF/OWL) seem
- > >to have a fixed number of buttons. Some other button-like control
- > >could serve as well, as long I can create and destroy them
- > >dynamically.
-
- > Just use the "CreateWindow" function, exactly as you would for any
- > other window, using the pre-defined "BUTTON" window class. All the
- > standard Windows controls can be dynamically created in this way -
- > look in the documentation of the "CreateWindow" function to find
- > the names of the pre-defined classes.
-
- Thanks for everyone that have answered my question. All the replies
- have suggested the obvious way, to use Windows API functions. Nobody
- has yet described a way to create buttons dynamically using Borland's
- OWL functions. Is it possible?
- --
- Pertti Suomela
-
- Internet: ps@uta.fi
- X.400: G=Pertti S=Suomela O=uta ADMD=fumail C=fi
-