Solved

How to remove the little Close button when using ManualDock

Posted on 2004-04-12
6
1,496 Views
Last Modified: 2012-08-14
Hi,

I have an application that docks forms onto a Tpanel (Outlook style...menu on left, contents on right)


My question is when ManualDock is used, it creates the little thin line at the top of the form with a small close button.

How do I prevent this close button from appearing, as I close all forms programatically.

Wayne
0
Comment
Question by:coracleit
6 Comments
 
LVL 17

Expert Comment

by:mokule
ID: 10805005
I don't try it. Just a guess.
What about setting

BorderIcons.biSystemMenu := False;
0
 

Author Comment

by:coracleit
ID: 10805044
I wish it was that simple .. thanks anyway
0
 
LVL 18

Accepted Solution

by:
Johnjces earned 30 total points
ID: 10806462
Try this:

EnableMenuItem(GetSystemMenu(Handle, False), SC_CLOSE, MF_BYCOMMAND or MF_GRAYED);

Works for me on normal forms.
0
 
LVL 1

Expert Comment

by:tanghz
ID: 10806472
If you are using Delphi 7, you can change the Form.border:=None,
Maybe you also need to look at the help related to Form.UseDockManager


good luck
0
 
LVL 18

Expert Comment

by:Johnjces
ID: 13187030
The code snippet I provided DOES hide the close (X) button, so to the site admins... not sure what else to recommend.

John
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now