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..:D:D
- ØØ -
Printable View
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..:D:D
- ØØ -
It's hard to say but they're probably just drawing on something (A form like object I'd imagine)
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. :)
Must you think in such limited terms? It's a custom container which they'd call a 'page' object.Quote:
Originally Posted by NoteMe
So to answer you in your LIMITED terms, it's on a page. Higge.
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.
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"...
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) :confused:
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.Quote:
Originally Posted by NoteMe
Everything boils down to being painted. It has to.
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.
- ØØ -
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? :)
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....
yes,
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..:)
- ØØ -
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...:)