Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

Taskbar Buttons

0
tearsoftragedy
Asked:
tearsoftragedy
  • 3
  • 3
  • 2
  • +4
1 Solution
 
DraregCommented:
no comment ;-)
0
 
EpsylonCommented:
no answer :o)
0
 
edeyCommented:
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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
gemartiCommented:
Set visible to true?

 :-)
0
 
ziolkoCommented:
no text + no coment = no problem !!
0
 
ziolkoCommented:
no text + no coment = no problem !!
0
 
tearsoftragedyAuthor Commented:
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
 
gemartiCommented:
Add ShellAPI to your units and try this function:

Shell_NotifyIcon(NIM_ADD, pnid);
0
 
tearsoftragedyAuthor Commented:
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
 
gemartiCommented:
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
 
geobulCommented:
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
 
tearsoftragedyAuthor Commented:
Geo:

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

 
0
 
geobulCommented:
You are welcome :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now