Solved

Graphics for use as buttons with TWebBrowser

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

12 Experts available now in Live!

Get 1:1 Help Now