Solved

Graphics for use as buttons with TWebBrowser

Posted on 2002-04-02
3
138 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

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

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…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month3 days, 11 hours left to enroll

630 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