Solved

How to add a toolbar to IE5.5 or 6.0 using Delphi

Posted on 2004-10-06
5
208 Views
Last Modified: 2010-04-16
Hi,

   I was looking for a way to add a toolbar to IE 5.5 or 6.0 using Delphi 7, I have already downloaded and executed the toolband demo from DelphiBand102.zip, but it seems it doesn't work correctly. First, when I enable the toolbar it doesn't show up the first time only on the second time I enable it shows up, sort of hidden on the right side. But when I try to resize the bar most of the time it crashes IE.

  Second, sometimes the edit box doesn't show aligned to the top of the toolbar it looks like it is around 4 pixels below which produces a weird effect since the bottom of the edit field is not visible.

  And third, on the source code I saw a reference to menu items, how can I access those menu Items?

  The demo was just extracted and compiled, except from changing Shdocvw_tlb to Shdocvw, everything else was left as is.

  How can I make the demo work correctly? Do I need to make adjustment to the paramenters in _DelphiBand.Pas? Which ones?

Thanks for the help,
Humberto
0
Comment
Question by:haicardi1
  • 2
5 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 12245508
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 12245513
Very good codes :)

IE5Tools is a collection of 60+functions, that makes it easy to configure Internet Explorer:  Explorer bars, Toolbar buttons, Menu items.

 
 
0
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 500 total points
ID: 12246124
procedure CreateExplorerButton(Path: string);
const
  Tagit = '\{10954C80-4F0F-11d3-B17C-00C0DFE39736}\';
var
  Reg: TRegistry;
  Path1: string;
  Merge: string;
begin
  Path := 'c:\your_program_path';
  Reg := TRegistry.Create;
  try
    with Reg do
    begin
      RootKey := HKEY_LOCAL_MACHINE;
      Path1 := 'Software\Microsoft\Internet Explorer\Extensions';
      Merge := Path1 + Tagit;
      OpenKey(Merge, True);
      WriteString('ButtonText', 'ButtonText');
      WriteString('MenuText', 'Tools Menu Item');
      WriteString('MenuStatusBar', 'Run Script');
      WriteString('ClSid', '{1FBA04EE-3024-11d2-8F1F-0000F87ABD16}');
      WriteString('Default Visible', 'Yes');
      WriteString('Exec', Path + '\ProgramName.exe');
      WriteString('HotIcon', ',4');
      WriteString('Icon', ',4');
    end
  finally
    Reg.CloseKey;
    Reg.Free;
  end;
end;
0
 
LVL 2

Expert Comment

by:gangsterboss
ID: 12333588
i know for a fact that one of these answers works but i'm not sure witch one
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21021241.html

good luck
gangsterboss
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LAN or WAN ? 11 92
Delphi inherited method 6 70
Firemonkey android show image from resource ? 1 42
Delphi Seattle StructureView color 1 5
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 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