Solved

Taskbar Buttons

Posted on 2001-07-31
13
136 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mydac connection data base issue 3 158
Convert Jpg /PNG To GIF 5 138
Error E2158 compiling with Delphi XE10 Seattle 2 101
creating threads in delphi 1 109
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

832 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