8.03 beta: TWebBrowser not skinned

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #35420
    mol
    Participant

    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!

    #49224
    Support
    Keymaster

    TWebBrowser type should be added in the ThirdParty list as 'WebBrowser'. You did it? Other controls are skinned?

    #49225
    mol
    Participant
    '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.

    #49227
    Support
    Keymaster

    Can 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.

    #49228
    mol
    Participant

    Hi 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

    #49229
    Oconnel
    Participant

    I 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.

    #49256
    Support
    Keymaster

    Thank you for the demo, work of the component will be improved in the nearest release.

    #49295
    mol
    Participant

    Great, 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.

    #49328
    Support
    Keymaster

    I checked memory leaks, all is Ok. This AV is repeated?

    #49337
    mol
    Participant

    Yes, 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

    #49342
    Support
    Keymaster
    '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.

    #49363
    mol
    Participant

    Okay, give me a day or two to come up with something.

    #49369
    mol
    Participant

    Serge, 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.

    #49437
    emailaya
    Participant
    '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

    #49438
    Support
    Keymaster

    TWebBrowser added to the list as 'WebBrowser'? Form is skinned?

    #49447
    emailaya
    Participant
    'Support' wrote:

    TWebBrowser added to the list as 'WebBrowser'? Form is skinned?

    Yes and yes

    #49491
    Support
    Keymaster

    Can you give me a demo or show it via TeamViewer?

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.