Solved

Question about  - my Form

Posted on 2000-03-13
6
155 Views
Last Modified: 2010-04-04
How can do that my form always located behind all other windows even if I click on it? - something like in a Desktop (shell) program? And how after that make it possible to be active when I want it...?

Can you show it in sample?
0
Comment
Question by:Masonok
  • 4
  • 2
6 Comments
 

Accepted Solution

by:
Gurkan earned 50 total points
ID: 2614846
Hi,
You can use SetWindowPos function

I have no time for exact answer but u can find details from help file. Examples:

SetWindowPos(wnd,HWND_TOPMOST,20,20,200,200,0);

SetWindowPos(wnd,HWND_BOTTOM, 40,40,150 ,150 , SWP_NOACTIVATE);
0
 

Author Comment

by:Masonok
ID: 2615031
Where should I place this function?
0
 

Expert Comment

by:Gurkan
ID: 2615065
did u try onshow
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:Masonok
ID: 2615082
Yes. But but It seems that nothing going on!

0
 

Expert Comment

by:Gurkan
ID: 2615091
give me time
I'll try and give the code if I can do it
0
 

Expert Comment

by:Gurkan
ID: 2615107
I put the code below n onpaint event and its ok

SetWindowPos(Form1.Handle,HWND_BOTTOM,20,20,200,200,0);
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

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…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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