Solved

Taskbar Buttons

Posted on 2001-07-31
13
134 Views
Last Modified: 2010-04-06
0
Comment
Question by:tearsoftragedy
  • 3
  • 3
  • 2
  • +4
13 Comments
 
LVL 2

Expert Comment

by:Drareg
ID: 6338488
no comment ;-)
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6338749
no answer :o)
0
 
LVL 6

Expert Comment

by:edey
ID: 6338759
Voila - I have a _real_ comment :).  See this question with hints to avoid the "no text" bug: http://www.experts-exchange.com/jsp/qShow.jsp?ta=commspt&qid=20157348

GL
Mike
0
 
LVL 21

Expert Comment

by:gemarti
ID: 6338933
Set visible to true?

 :-)
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6339507
no text + no coment = no problem !!
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6339510
no text + no coment = no problem !!
0
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.

 

Author Comment

by:tearsoftragedy
ID: 6342813
God, here it is the question again

I have my Main form and a 2nd form which is not auto-created, i create more than 1 of that form at run-time, but i would like to show the taskbar button for every new form, just like office 2000 does it... how can I do it?

ShowWindow doesn't work

thanks
0
 
LVL 21

Expert Comment

by:gemarti
ID: 6342962
Add ShellAPI to your units and try this function:

Shell_NotifyIcon(NIM_ADD, pnid);
0
 

Author Comment

by:tearsoftragedy
ID: 6343057
gemarti:

  Thanks for answering... but that code is to add an Icon to the Tray area, and i need a button... office 2000 creates a new taskbar button everytime you open a document, i would like that...

  Thanks!

0
 
LVL 21

Expert Comment

by:gemarti
ID: 6344857
hmmm...your right. I misunderstood your question. However...I run office 2000 and when I create a new document it stays within the region of the application if I minimize. I don't see any buttons.

If I start a second "instance" of an application (say Excell) then I see two buttons on the taskbar for Excel. Do you want multiple "instances" of your application running?

Maybe clarification of your question will get you quicker results from the rest of the experts.
0
 
LVL 17

Accepted Solution

by:
geobul earned 50 total points
ID: 6345067
Hi,

procedure TForm1.Button1Click(Sender: TObject);
begin
  Application.CreateForm(TForm2, Form2);
  SetWindowLong(Form2.Handle, GWL_EXSTYLE, WS_EX_APPWINDOW);
  Form2.Show;
end;

Regards, Geo
0
 

Author Comment

by:tearsoftragedy
ID: 6346063
Geo:

  Thank you very much...!!!!!!!!

 
0
 
LVL 17

Expert Comment

by:geobul
ID: 6346166
You are welcome :-)
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
A short film showing how OnPage and Connectwise integration works.

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

10 Experts available now in Live!

Get 1:1 Help Now