Solved

input field in taskbar

Posted on 2002-05-03
7
425 Views
Last Modified: 2010-04-04
I'm working on a small translation program, and I would like to have an edit box in the taskbar, so that I can type a word in the edit field, and a window would pop up with the translation.

It's possible to have a button in the taskbar, but is it possible to have a edit field as well ?

Thanks,

Lecossois.
0
Comment
Question by:lecossois
7 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6988822
listening . . .
0
 
LVL 17

Expert Comment

by:inthe
ID: 6989466
hi,
could replace the clock:

  public
    { Public declarations }
 procedure MyKeyPress(Sender: TObject; var Key: Char);
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.MyKeyPress(Sender: TObject; var Key: Char);
begin
if key = #13 then
showmessage((sender as tedit).text);
end;


procedure TForm1.Button1Click(Sender: TObject);
var
 tray,clock,rebar,mstask,systab : HWND;
 myedit: TEdit;
begin
tray := FindWindow('Shell_TrayWnd',nil);
clock := FindWindowEx(tray,0,'TrayNotifyWnd',nil);
//rebar := FindWindowEx(tray,0,'ReBarWindow32',nil);
//mstask := FindWindowEx(rebar,0,'MSTaskSwWClass',nil);
//systab := FindWindowEx(mstask,0,'SysTabControl32',nil);
myedit := TEdit.Create(nil);
with myedit do
 begin
  Width := 60;
  Height := 30;
  Ctl3D := true;
  Visible := true;
  ParentWindow := clock;
//  ParentWindow := systab;
  OnKeyPress := mykeypress;
  BringToFront;
 end;
end;


to add it to where the buttons for apps are
comment the
 clock := FindWindowEx(tray,0,'TrayNotifyWnd',nil);
and
 ParentWindow := clock;
lines and uncommnet teh already commented lines.

(looks messy though as painting isnt right but you get the idea)

Regards Barry
 
0
 
LVL 17

Expert Comment

by:inthe
ID: 6989475
or you could create your own custom appbar like the taskbar but put it at the top of screen and put the edit in that..

demos/component for doing it(d3 source but shouldnt be too hard to get working in newer versions):

http://delphi.icm.edu.pl/ftp/d30free/appbar.zip
or
http://www.geocities.com/SiliconValley/9486/appbar14.zip
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 1

Expert Comment

by:yk030299
ID: 6990172
listen
0
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 100 total points
ID: 6991061
go to http://www.euromind.com/iedelphi/
check out ie5tools
0
 

Author Comment

by:lecossois
ID: 7008514
Not exactly what I had in mind, but it will do.  I was hoping to get this in the taskbar, but I guess that is not a trivial task.

Thanks,

Lecossois.
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7008738
you can add it to the taskbar
right click on the taskbar and from the Toolbars menu select your new registered Toolbar :)
you can add the same toolbars to taskbar that you can add to IEs toolbar :)
I don't know how to manually add it to the TaskBar
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

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

12 Experts available now in Live!

Get 1:1 Help Now