Solved

Tool window

Posted on 2002-07-12
2
161 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

15 Experts available now in Live!

Get 1:1 Help Now