Booooooo

i was thinking yesterday, 'everyone loves apple's new safari browser, and it looks very nice, so why isnt there a version of it for windows?'

there are many coders here. so why not make a functional safari clone? all you really gotta do is make a program that runs off ie, but with a custome gui! so i took it on myself to attempt and make a functional clone. i will tell you now, considering i dont have much experience in vb (this being my first REAL vb program, ive messed around in vb for a while but nothing really worthwhile), i think i have made some progress.

basically, i got the most basic functions working. home, back, forward, etc. i also have a working address bar (yea i know, but with my knowledge of vb, its something :P ) and, the best feature so far, a working google search bar built into the browser itself. :D

like i mentioned above, it works over ie, so i dont have to worry about making a whole html rendering engine. :D

anyway, so far so good, BUT, i am at a difficult place in my development. i have tried using jef's iapp controls and aqua controls (i do believe there's a difference). and yes, i am using the latest aqua controls.

when i apply the iApp interface, ill tell you know, it looks wonderful, BUT renders the whole browser, useless. the aqua-fied address bar does not work with the coding im using; i get an error saying that the object does not support the function. <_< also, the page in the browser loads partially (if the page has a bgcolor other than white, i can see that bgcolor, but nothing else (ie.: images, text, etc.). another thing, when i mouseover the minimize, maximize, and close buttons of the browser with the iApp gui when the window is maximized, the page that manages to load (any google search), flickers.

the browser IS functional, but only without the iApp gui. i guess i could just make it so that the browser uses whatever visual style is currently in use to skin itself, but a true Safari clone would have the iApp gui. so basically, is there anyway of making the iApp controls support the functions im using? any help on this would be greatly appreciated. thanks.

#13676

Okay can u post a screenshot of your progress?

#13681

SafariClone-beta.jpg

***please note: this is still under development***

heres a pic of both versions, the regular one without the iApp controls, and the one with the iApp Controls. both versions are exactly the same, in code. as you can see, the iApp version doesnt let the page load completely. also, in the iApp version, theres no scrollbars in the page?

i have posted the 2 versions in one zip. please keep in mind, it is VERY buggy.

Download

***please note: this is still under development***

#13746

IF you are doing this with VB 6...

One problem I seem to have is that if I start laying out the form AND THEN put the iApp control or the Aqua background, I have to SEND it to the back in the z-order. Then, everything plays nice.

The iApp and Aqua Controls looks great and generally work well. I have found, though, that when you are testing, you MUST close your forms using the Aqua Controls and NOT with the VB menu/toolbar. If you do, you risk VB crashing and, with it, some or all of your work!

#13995

Ok, ignore my last post. I think I figured it out.

When you use the iApp, make sure you put in the RESIZE event some code to resize the browser using the SCALEWIDTH and SCALEHEIGHT properties. Set this in your FORMLOAD event as well. I was playing around with it and got the same results as you did. When I added code using the scale width and height properties, I got the whole page.

Here's what you might try:

Private Sub Form_Resize()

WebBrowser1.Width = Me.ScaleWidth - 10

WebBrowser1.Height = Me.ScaleHeight - 150

WebBrowser1.Left = 5

End Sub

Hope this helps.

#14003