Solved

Taskbar Buttons

Posted on 2001-07-31
13
133 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

17 Experts available now in Live!

Get 1:1 Help Now