@Thaddy
If the window has the dialog style it also doesn't show up. For a mainform try fsSplash ...
I tried out Your suggestion:
-> It doesn't work for me (WinXP SP3 32bit + Lazarus v1.6.4 + FPC v3.0.2):
I tried 'fsSplash' in 'FormCreate' and in the Object Inspector, and...
...still have a TaskbarButton.
If I put 'FormStyle := fsSplash;' into 'FormShow', the App crashes with ErrMsg 'External: SIGSEGV'.
since fsDialog is sadly missing
There is no 'FormStyle := fsDialog', but there is a 'BorderStyle := bsDialog'.
Unfortunately, this doesn't hide the TaskbarButton either.
-> 'Application.MainFormOnTaskbar := False;' or 'ShowInTaskBar := stNever' do not work
(= another Lazarus-Bug).
The same Problem occurs, it You want to make a Form transparent.
=> Solution: The Use of
WindowsAPI-Calls.
As an
Example, how to solve these Lazarus-intrinsic Headaches, have a Look at
'Mouse Eyes'.
'Mouse Eyes' is a MouseTracker/MouseCursor-Follower.
A little, but very useful Pascal-App, specially if You work with several Screens.
I found it (many, many) Years ago at <delphi.about.com>, and I use it until today.
'Mouse Eyes' has a MainForm, that is:
- transparent, and
- on Top (TOP or TOPMOST), and
- without Border, without TitleBar, but
- still movable and able to be closed with the Mouse.
You'll find the original D7-MouseEyes-Project, together with my Port to FPC/Lazarus
in the Attachment:
'LazMouseEyesByMetis.7z'.