Solved

Tool window

Posted on 2002-07-12
2
159 Views
Last Modified: 2010-08-05
How to make a tool window that can be active all the time (both main window and tool window are active), just like in photoshop?
0
Comment
Question by:agustinus
2 Comments
 
LVL 44

Accepted Solution

by:
CrazyOne earned 75 total points
ID: 7151480
Not sure if I understand your question. But have tried using MDI.

From Delphi Help
"o create a new MDI application,

1     Select File|New to bring up the New Items dialog.
2     Click on the Projects page and select MDI Application.
3     Click OK.

MDI applications require more planning and are somewhat more complex to design than SDI applications. MDI applications spawn child windows that reside within the client window; the main form contains child forms. Set the FormStyle property of the TForm object to specify whether a form is a child (fsMDIForm) or main form (fsMDIChild). It is a good idea to define a base class for your child forms and derive each child form from this class, to avoid having to reset the child form’s properties."
---------------

"Any form can be implemented as a multiple document interface (MDI) or single document interface (SDI) form. In an MDI application, more than one document or child window can be opened within a single parent window. This is common in applications such as spreadsheets or word processors. An SDI application, in contrast, normally contains a single document view. To make your form an SDI application, set the FormStyle property of your Form object to fsNormal.

For more information on developing the UI for an application, see Developing the application user interface."
----------------

TCustomForm.FormStyle
"Determines the form’s style.

type TFormStyle = (fsNormal, fsMDIChild, fsMDIForm, fsStayOnTop);
property FormStyle: TFormStyle;

Description

Use FormStyle to get or set the form’s style. FormStyle is one of the following values:

Value     Meaning

fsNormal     The form is neither an MDI parent window nor an MDI child window.
fsMDIChild     The form is an MDI child window.
fsMDIForm     The form is an MDI parent window.
fsStayOnTop     This form remains on top of the desktop and of other forms in the project, except any others that also have FormStyle set to fsStayOnTop. If one fsStayOntop form launches another, neither form will consistently remain on top.

If the form is the main form of an MDI application, its FormStyle property must be set to fsMDIForm.

Note:     It is not advisable to change FormStyle at runtime."


The Crazy One
0
 

Author Comment

by:agustinus
ID: 7163948
Someone Tells me to use wm_paint message to simulate the color of an active form,.... I'd like to try that,...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

932 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

19 Experts available now in Live!

Get 1:1 Help Now