Solved

Taskbar Buttons

Posted on 2001-07-31
13
138 Views
Last Modified: 2010-04-06
0
Comment
Question by:tearsoftragedy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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