Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

App remaining in Taskbar

Posted on 2003-02-24
4
Medium Priority
?
330 Views
Last Modified: 2010-04-04
Hello,
 
My problem is:
I am making a (DirectX)App in Delphi. For that, I want to set the
borderstyle of my mainform to 'bsNone'.
However, when I set it to bsNone, and I close my App,
the App is still in my taskbar (although the App is closed correctly,
it's just 1 strange block still remaining on the taskbar).
When I set borderstyle to bsSizeable or bsSingle, I have no problem.
 
How can I solve this? is this a Windows-bug? or a Delphi-bug?
 
 
 
Below are some solutions I've tried already but DIDN'T work (so please come with other solution(s)):
 
In Mainform-Destroy:
  MainForm.Visible := false;
 
In Mainform-Destroy;
  HideAppInTaskbar;
 
In Mainform-Destroy:
  MainForm.Borderstyle := bsSizeable;
 
// Don't show the application Taskbar-button in taskbar
procedure HideAppInTaskbar;
var ExStyleApp : Cardinal;
 
begin
  ExStyleApp := GetWindowLong(Application.Handle, GWL_EXSTYLE);
  ExStyleApp := ExStyleApp or WS_EX_TOOLWINDOW;
  SetWindowLong(Application.Handle, GWL_EXSTYLE, ExStyleApp);
end;
// -----------------------------------------------
 

Greetings,

Martin Jochems
0
Comment
Question by:wimbaaijens
  • 3
4 Comments
 
LVL 1

Expert Comment

by:User137
ID: 8007480
Try Application.Minimize

I asked this question here before, but my problem disappeared as mysteriously as it appeared... It's a windows bug (maybe 95-98).
0
 
LVL 1

Accepted Solution

by:
User137 earned 300 total points
ID: 8007793
0
 

Author Comment

by:wimbaaijens
ID: 8014833
It works!
Do you know it's a Windows or a Direct X bug?
0
 
LVL 1

Expert Comment

by:User137
ID: 8015047
Thanks for the points ;-)

According to what i've heard, its Windows bug, it happens without DirectX also i think.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

564 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