- This topic has 16 replies, 4 voices, and was last updated 11 years, 12 months ago by Support.
-
AuthorPosts
-
October 26, 2012 at 6:50 pm #35420molParticipant
D2010 Pro (all updates applied), Windows Vista 32bit (all updates applied), AlphaControls v8.03 beta:
I'm trying to skin a TWebBrowser (should be possible per your announcement), but cannot get it to work. Tested almost all skins, but to no avail. Can you please check?
Thanks!
October 26, 2012 at 6:54 pm #49224SupportKeymasterTWebBrowser type should be added in the ThirdParty list as 'WebBrowser'. You did it? Other controls are skinned?
October 26, 2012 at 7:42 pm #49225molParticipant'Support' wrote:TWebBrowser type should be added in the ThirdParty list as 'WebBrowser'. You did it? Other controls are skinned?Yes, I added the TWebBrowser to the Thirdparty List, but the control (the scrollbars for example) isn't skinned. I'm using a TWebBrowser on a TFrame which is created at runtime, if that helps.
All other controls are skinned properly, as far as I can tell.
October 26, 2012 at 8:13 pm #49227SupportKeymasterCan you give me a small demo, please?
Here is a demo of working skinning : http://www.alphaskins.com/sfiles/demos/webbrowser.zip
Maybe it helps.
October 26, 2012 at 8:19 pm #49228molParticipantHi Serge
I found the problem. If you load a page from the Internet like in your demo, the skinning works. If you load a file from your local hard drive (see my attached demo), then skinning doesn't work.
EDIT:
Just tested your demo with a local file: no skinning either…
-mol
October 27, 2012 at 10:14 am #49229OconnelParticipantI confirm that problem. IE is not always skinned. Another problem is, when I hide horizontal scroll (only vertical one is visible in WebBrowser, overflow css) then AC is showing both scrollbars skinned.
November 1, 2012 at 2:41 pm #49256SupportKeymasterThank you for the demo, work of the component will be improved in the nearest release.
November 2, 2012 at 3:11 pm #49295molParticipantGreat, thank you! Just make sure to free all allocated memory blocks. I ran into an AV the other day when freeing a TFrame holding a TWebBrowser. The error disappeared when I removed TWebBrowser from the ThirdPartyList of the sSkinManager.
November 9, 2012 at 2:00 pm #49328SupportKeymasterI checked memory leaks, all is Ok. This AV is repeated?
November 9, 2012 at 5:21 pm #49337molParticipantYes, I can reproduce this bug. It's actually not a memory leak, but a memory error. FastMM reports the following (excerpt):
FastMM has detected an error during a GetMem operation. FastMM detected that a block has been modified after being freed.
Modified byte offsets (and lengths): 768(8), 808(8), 824(16)
The previous block size was: 1020
This block was previously allocated by thread 0xFF0, and the stack trace (return addresses) at the time was:
404532
449349
4495FA
449568
44F6D2
4493DE
4495FA
449539
44F6D2
44A4D6
446FC3
The block was previously used for an object of class: TWebBrowser
The allocation number was: 1220828
The block was previously freed by thread 0xFF0, and the stack trace (return addresses) at the time was:
40454E
906026
7E9EC9
4E8F8D
7E9AE0
4EC7E1
79318F
4EC553
450796
7643FD72 [Unknown function at GetWindowLongW]
7643FE4A [Unknown function at GetWindowLongW]
Does this help? If not, I will try to prepare a demo for you.
Thx
-mol
November 10, 2012 at 8:02 am #49342SupportKeymaster'mol' wrote:Does this help? If not, I will try to prepare a demo for you.Yes, demo can help really. If it's not difficult for you, please give me it.
November 10, 2012 at 5:10 pm #49363molParticipantOkay, give me a day or two to come up with something.
November 11, 2012 at 12:45 am #49369molParticipantSerge, I tried but unfortunately I cannot pinpoint or reproduce the memory error with the test project just yet. After some major debugging in my main application it seems though that the problem boils down to a combination of several things. The first one being the following call
if TFrame2(FFrame).WebBrowser1.Busy then
TFrame2(FFrame).WebBrowser1.Stop;
and the other one being a memory issue where the debugger points to two calls to EnhMetaFile and TBitmap.LoadFromResourceName. This memory issue is the one that disappears once I take TWebBrowser off the ThirdPartyList.
Sorry that I cannot be of any further help at the moment.
November 22, 2012 at 4:32 pm #49437emailayaParticipant'mol' wrote:D2010 Pro (all updates applied), Windows Vista 32bit (all updates applied), AlphaControls v8.03 beta:
I'm trying to skin a TWebBrowser (should be possible per your announcement), but cannot get it to work. Tested almost all skins, but to no avail. Can you please check?
Thanks!
+1
AC8.04, added TwebBrowser -> WebBrowser to third party list and only vertical scrollbar is visible (as expected) but it is not skinned.
I used a regular URL, not a local file
November 23, 2012 at 7:55 am #49438SupportKeymasterTWebBrowser added to the list as 'WebBrowser'? Form is skinned?
November 23, 2012 at 9:17 am #49447emailayaParticipant'Support' wrote:TWebBrowser added to the list as 'WebBrowser'? Form is skinned?
Yes and yes
November 29, 2012 at 11:19 am #49491SupportKeymasterCan you give me a demo or show it via TeamViewer?
-
AuthorPosts
- You must be logged in to reply to this topic.