home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4446 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.7 KB

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