Results 1 to 14 of 14

Thread: [RESOLVED] Web browsers....

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Resolved [RESOLVED] Web browsers....

    What does actualy web browsers draw on? Is it just a form? Or is it a rich text box or something? Or do they use different techniques?



    PS: Don't give me the "download the Fx code an look for you self" atitude..


    - ØØ -

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Web browsers....

    It's hard to say but they're probably just drawing on something (A form like object I'd imagine)
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  3. #3
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Web browsers....

    I guess each webbrowsers creates their own custom 'container'. Like Internet_Explorer_Server for IE, OperaWindowClass for Opera. Then they 'draw' the HTML objects in that container.

    I guess for every HTML object, the browsers have special classes that handles/draws the object. Like the 'edit' class displays the textbox in a form.

    ... just a guess though.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Web browsers....

    Quote Originally Posted by NoteMe
    What does actualy web browsers draw on? Is it just a form? Or is it a rich text box or something? Or do they use different techniques?



    PS: Don't give me the "download the Fx code an look for you self" atitude..


    - ØØ -
    Must you think in such limited terms? It's a custom container which they'd call a 'page' object.

    So to answer you in your LIMITED terms, it's on a page. Higge.

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Web browsers....

    Ideally, a chain of windows, each element in the parse tree rendered and painted to its parent canvas, which upon completion is then painted to its parent canvas, etc. until all elements have been rendered.

  6. #6

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Web browsers....

    But it can't all be painted...since you can select text and so on. Something must be some kind of text widget. But is everything that, or do they mix lot of widgets onto (Mendhaks) "page"...

  7. #7
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Web browsers....

    Can't they just use CreateWindow(Ex) to create the 'page' and controls on it (like pena said)? What's the problem ?

    It can be done in simple VB with pure API and lots of HTML parsing. (without any form, once the classes are in some dll)
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  8. #8
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Web browsers....

    Quote Originally Posted by NoteMe
    But it can't all be painted...since you can select text and so on. Something must be some kind of text widget. But is everything that, or do they mix lot of widgets onto (Mendhaks) "page"...
    A TextBox in .Net is painted. You can select and type in text though. Do you know why? When you click on it, it shows the cursor and when you type it paints your text.

    Everything boils down to being painted. It has to.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  9. #9

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Web browsers....

    And then my questions really boil down to if they make costum text objects and highlighting on top of the "window", or if they have a costum text object as a backbuffer, and then take a screeenshot of the backbuffer, and flip the text as a picture to the window, and then do costum highlighting on that image.


    - ØØ -

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Web browsers....

    Fx uses custom widgets, I believe they are painted directly onto the canvas. So as a normal textbox would be painted in the WindowProc, the widget is painted onto the page window.

    Are you thinking of making a rendering engine Note?

  11. #11

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Web browsers....

    Me and a couple of friends at CERN are thinking about doing it just for fun and educational purpose. With no hope of making it usefull, at least not for anything else then really unbelivable stricked XHTML, CSS..

    So what you said is that you have one "window widget" that everything from pictures to text is painted onto brom backbuffers (off screen widgets). Then the costum highlighting is really done on the onscreen widget the page it self....

  12. #12
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Web browsers....

    yes,

  13. #13

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Web browsers....

    Thanks hon', and everyone else that added their 0.0002 cents..


    Just watch the Mozilla news a couple of weeks now, and you will see that Gecko is on it's way out, and our (ehh...we don't have a name) will be used in stead...2 weeks...all we need..


    - ØØ -

  14. #14

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Web browsers....

    OMG how hard is it to rate people on this board...2 people I can't rate just in this thread....rubbish rules...well well..you guys are del.icio.us'ed for later...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width