Solved

Graphics for use as buttons with TWebBrowser

Posted on 2002-04-02
3
133 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
3 Comments
 
LVL 26

Accepted Solution

by:
Russell Libby earned 50 total points
Comment Utility

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
Comment Utility
listening
0
 

Author Comment

by:Richard2000
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

772 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

15 Experts available now in Live!

Get 1:1 Help Now