Solved

Graphics for use as buttons with TWebBrowser

Posted on 2002-04-02
3
137 Views
Last Modified: 2010-04-04
Hi,

I am using the TWebBrowser ActiveX control and am implementing the buttons to use the control with TBitBtn components.  Do you know where I can get the standard button graphics from (the ones used by Internet Explorer)?  I need to use these as glyphs.

The graphics I need in particular are...

Back
Forward
Stop
Refresh
Home

and some of the other buttons if possible, such as Mail and Print.

Thanks in Advance,

Richard
0
Comment
Question by:Richard2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 26

Accepted Solution

by:
Russell Libby earned 50 total points
ID: 6913531

Richard, these can be gotten from "browseui.dll"

If you use a resource editor (delphi has a resource viewer in demo directory) you can view all the toolbar bitmaps, as well as save them to file. Or, you can manually extract them (quick hack)

var  bmp:        TBitmap;
     hMod:       Integer;
begin

  // 261 to 279 contain the bitmaps
  bmp:=TBitmap.Create;
  hMod:=LoadLibraryEx('browseui.dll', 0, LOAD_LIBRARY_AS_DATAFILE);
  bmp.Handle:=LoadBitmap(hMod, MAKEINTRESOURCE(262));
  Canvas.Draw(0, 0, bmp); // Save bitmap to file if you want
  bmp.Free;
  FreeLibrary(hMod);

end;


Hope this helps,
Russell
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 6914992
listening
0
 

Author Comment

by:Richard2000
ID: 6918944
Thanks Russell.  I tried out the resource viewer program in the Delphi demos folder and I got the graphics I needed.

Richard
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
find a node in VST 2 81
How to renew a Delphi rad-studio licence? 5 77
IdTCPClient and IdTCPServer exchanging data on desktops and not Android 11 170
IP without any Dots 1 60
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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