Solved

Question for JimBob

Posted on 1998-03-20
9
195 Views
Last Modified: 2010-04-06
how do you add a taskbar on the win95/NT taskbar like powerdesk 97...
0
Comment
Question by:BoRiS
9 Comments
 

Expert Comment

by:sortof
ID: 1360643
what?
maybe you could descibe this more

many people probably dont have powerdesk 97 or even know what it is... like me
0
 
LVL 4

Author Comment

by:BoRiS
ID: 1360644
What I mean is create my own taskbar on the 95 taskbar, like in IE 4 you can have multiple taskbars....

I have tried with SHAppBarMessage etc. but to no avail....
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 1360645
I know what you are talking about.  PowerDesk creates a variety of ToolBars.  These are floating or Docked (I dont have it on this machine, so I cant remember what the other one is).  Basically, if its docked, its like the Windows 95/NT Task Bar.  If its floating, its like Microsoft Offices' Application Tool Bar (or what ever its called).

There is a component called D-TOOLs (I think I found it on DSP).  Its a shareware program, but it does the lot.  Appart from that, I havent seen anything which will make a form dockable to the screen (not just the application).

Sorry I cant help you anymore than that.

Stuart.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

 
LVL 5

Expert Comment

by:JimBob091197
ID: 1360646
Hi boris & all

I think boris is trying to create a taskbar-thing that sits ON the Windows 95 task bar, possibly in the tray window.  I.e. not a separate app bar, but a window INSIDE the existing Win 95 app bar (Taskbar).

Is that correct boris?  Now I may have a chance of getting that thousand bucks off you after all!!  ;-)

JB
0
 
LVL 4

Author Comment

by:BoRiS
ID: 1360647
well well

JimBob is back and as witty as hell I see...

Yip JimBob you hit the nail on the head, how do I create my own appbar in the 95/NT taskbar.......... ;-)

BoRiS
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1360648
Hey borry!!

Here's some routines to get you started...

To get the HWNDs of some of the relevant taskbar windows:  (All variables are of type THandle (or Integer (or whatever)).)

  // Get Win 95 taskbar.
  hTaskbar := FindWindow('Shell_TrayWnd', '');

  // Get tray area on task bar.
  hTrayNotify := FindWindowEx(hTaskbar, 0, 'TrayNotifyWnd', '');

  // Get area of task bar where running programs sit.
  // hTaskSww is a window that sits on hTaskbar.
  // hSysTab (the window we're interested in) sits on hTaskSww.
  hTaskSww := FindWindowEx(hTaskbar, 0, 'MSTaskSwWClass', '');
  hSysTab := FindWindowEx(hTaskSww, 0, 'SysTabControl32', '');


Now, with these you can manipulate the size & positions of some windows.
E.g.  (rWin is declared as a TRect.)
  // Change position of tray area.
  if (hTrayNotify > 0) then
    begin
      GetWindowRect(hTrayNotify, rWin);
      SetWindowPos(hTrayNotify, HWND_TOP, rWin.Left + 1, 0, rWin.Right - rWin.Left, rWin.Bottom - rWin.Top, SWP_NOACTIVATE);
    end;


As an example of putting your Delphi form into the Taskbar, try this:
  // Put this form into taskbar.
  // Note: set caption = '' and BorderStyle = bsNone.
  // Also make this form quite small...
  Self.ParentWindow := hTaskbar;
  // This will put it over your Start button!!
  // Interesting project: write your own start button!
  Self.Left := 0;
  Self.Top := 0;  
  Self.BringToFront;


Note, borry, this is only a primer.  You can fiddle, experiment and generally cause chaos with your system as much as you want...

Regards,
JB
0
 
LVL 4

Author Comment

by:BoRiS
ID: 1360649
K thanx JimBob the great...

Knew you would figure it out......

put it thourgh as a answer so I can award you your points man

GEEZ

BoRiS
0
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 50 total points
ID: 1360650
Here's the answer, but if you need more info, just ask!

Later,
JB
0
 
LVL 4

Author Comment

by:BoRiS
ID: 1360651
Thanx JimBob

If I need Help I'll ask.........

Thanx man

BoRiS
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax Check Delphi Seattle IOS app without MAC ? 1 105
find a node in VST 2 73
HTML text in the body of an email (delphi code) 12 173
Multi-layered image in FireMonkey 9 49
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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