Home Articles Books Downloads FAQs Tips

Q: Create tool style forms that have a close button in the title bar


Answer:

Use the biSystemMenu setting in the BorderIcons property. If the biSystemMenu is true, the tool window will have a small close button. If biSystemMenu is false, then no close button will appear.

Note: This FAQ applies to forms where BorderStyle is set to bsToolWindow or bsSizeToolwindow.

Note: Windows does not support tool windows that have minimize and maximize buttons. Tool windows cannot have the context help button either.

Note: The biSystemMenu setting still controls whether or not the form has a system menu. So if you want the close button on the tool window, you must have a system menu too. Tool style forms don't display a system menu icon. You access the system menu by right clicking on the small title bar of the tool window. You can also bring it up by pressing Alt-Space.



Copyright © 1997-2000 by Harold Howe.
All rights reserved.