Solved

How to remove the little Close button when using ManualDock

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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