Solved

How to remove the little Close button when using ManualDock

Posted on 2004-04-12
6
1,507 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 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