Solved

Enable XP Themes on WebBrowser

Posted on 2003-11-19
4
269 Views
Last Modified: 2010-04-05
Hello

I'm using a TWebBrowser in my app, but it doesn't show controls in XP Style,
of course i have added a XPManifest, so the rest of the app is XP-ished.

How can i enable such in my TWebBrowser?

thanks!
--
0
Comment
Question by:tearsoftragedy
  • 3
4 Comments
 
LVL 9

Accepted Solution

by:
ginsonic earned 250 total points
ID: 9788170
In the EmbeddedWB, you should change two parts to use themes.

procedure TEmbeddedWB.UpdateUserInterfaceValue;
const
acardUserInterfaceValues: array[TUserInterfaceOption] of Cardinal =
($00000001, $00000002, $00000004, $00000008,
$00000010, $00000020, $00000040, $00000080,
$00000100, $00000200, $00000400, $00000800,
$00001000, $00002000, $00004000, $00010000, $00020000,
$00040000, $00080000, $00100000, $00200000);

and...

TUserInterfaceOption = (DIALOG, DISABLE_HELP_MENU, NO3DBORDER,
SCROLL_NO, DISABLE_SCRIPT_INACTIVE, OPENNEWWIN,
DISABLE_OFFSCREEN,
FLAT_SCROLLBAR, DIV_BLOCKDEFAULT, ACTIVATE_CLIENTHIT_ONLY,
OVERRIDEBEHAVIORFACTORY,
CODEPAGELINKEDFONTS, URL_ENCODING_DISABLE_UTF8,
URL_ENCODING_ENABLE_UTF8,
ENABLE_FORMS_AUTOCOMPLETE, ENABLE_INPLACE_NAVIGATION,
IME_ENABLE_RECONVERSION,
THEME, NOTHEME, NOPICS, NO3DOUTERBORDER);
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 9788188
More details at : http://msdn.microsoft.com/library/default.asp?
url=/workshop/browser/hosting/reference/enum/dochostuiflag.asp
0
 

Author Comment

by:tearsoftragedy
ID: 9800913
Thanks a lot!
It did it.

Thank you very much for your time
--
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 9802823
My pleasure :)
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

Suggested Solutions

Title # Comments Views Activity
Using FastMM4... should I enable MMX option? 9 76
Comparing dates in Delphi. Greater than/ Less than 3 117
Delphi inherited method 6 63
Graphics32 under Delphi 10.1 Berlin 2 37
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

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

14 Experts available now in Live!

Get 1:1 Help Now