Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Graphics for use as buttons with TWebBrowser

Posted on 2002-04-02
3
Medium Priority
?
141 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 200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

773 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