Windows 95 appearance in embedded web browser?

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Windows 95 appearance in embedded web browser?

Postby Bob Whitefield » Wed Feb 24, 2010 8:47 pm

When using the embedded Internet Explorer OLE control (Shell.Explorer.2), controls such as entry fields and buttons have the old Windows 95 look, not the newer Common Controls 6 look for XP, Vista and Windows 7. Note the appearance of buttons and dropdown menus in the browser area of this simple example:

Image

Setting the abt.exe.manifest file to enable Common Controls 6 causes native widgets in Smalltalk to have the newer look, but has no effect on the OLE control.

The same behavior is also seen in Dolphin and Delphi, so it's not unique to VA Smalltalk. A Visual Basic app using the same control adopts the newer look, but VB also generates additional DLLs which are presumably responsible:

Image

Has anyone succeeded in configuring the embedded browser so it has the newer appearance?
Bob Whitefield
[|]
 
Posts: 17
Joined: Thu May 01, 2008 7:41 pm

Re: Windows 95 appearance in embedded web browser?

Postby jtuchel » Mon Mar 01, 2010 2:55 pm

I would *guess* that this is not really related to VAST, but to the version of the OLE-control you are using. If I remember correctly from my (whew, very old) VBA experimements, VB hides the version number from the users and only shows you Shell.Explorer with no further info.

So maybe you just need to find out whether there is another incarnation of the same control which is newer.

as I said, just a guess

Joachim
jtuchel
[|]
 
Posts: 245
Joined: Fri Oct 05, 2007 1:05 am
Location: Ludwigsburg, Germany

Re: Windows 95 appearance in embedded web browser?

Postby Bob Whitefield » Mon Mar 01, 2010 8:25 pm

Joachim,

The version of Shell.Explorer.2 is 1.1. The versions are the same on XP and Windows 7 machines. The file is IEFRAME.DLL, dated December 2009 on both systems.

Registry key for the Shell.Explorer.2 CLSID is HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}.

So I don't think there's a newer version, but thanks very much for the suggestion. It may well be that there's no way to make the OLE control use the newer appearance, just thought I'd ask in case someone had made it work.
Bob Whitefield
[|]
 
Posts: 17
Joined: Thu May 01, 2008 7:41 pm

Re: Windows 95 appearance in embedded web browser?

Postby tc » Mon Mar 01, 2010 8:53 pm

I looked at Quicken 2009 which has an online browser. Wikipedia says the Quicken browser is not a shell (activex) but does use trident to render its html.

The widgets are the old style controls but the same web page in IE8 uses the newer style controls.

http://en.wikipedia.org/wiki/Internet_Explorer_shell
Other applications that aren't primarily for web browsing, such as Intuit's Quicken and QuickBooks, AOL, Winamp, Steam, and RealPlayer, use the rendering engine to provide a limited-functionality "mini" browser within their own user interfaces.


--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC

Re: Windows 95 appearance in embedded web browser?

Postby Bob Whitefield » Wed Mar 17, 2010 6:00 pm

Asking this question in an MSDN forum, I received this helpful, if terse, advice:

    Implement IDocHostUIHandler (the details depend on which framework you use for ActiveX hosting), make sure to return DOCHOSTUIFLAG_THEME flag from GetHostInfo.
So my next question is, can interface IDocHostUIHandler be implemented in VASt, and if so, can anyone point me to an example of code that does something similar?
http://msdn.microsoft.com/en-us/library/aa753260(VS.85).aspx

Or is using this DLL a possibility?
http://support.microsoft.com/kb/183235

Thanks,
Bob
Bob Whitefield
[|]
 
Posts: 17
Joined: Thu May 01, 2008 7:41 pm


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest