Results 1 to 7 of 7

Thread: How to embed Firefox & Safari in MAC RB application

  1. #1
    Join Date
    May 2011
    Posts
    92

    How to embed Firefox & Safari in MAC RB application

    I have a problem here guys does anyone how to embed any of the two browser‘s (namely Firefox and safari) into the Mac RB application as I am not been figure out aspirate code to do this,as my coding skill is poor and my thinking skills are even worse , so I have posted my query there so that you expert can find out an appropriate solution for this , any help is much appraised .

  2. #2
    Join Date
    May 2009
    Posts
    527

    Re: How to embed Firefox & Safari in MAC RB application

    The idea that you stated here is quite difficult to pick for an new user like you are, but though I am explaining you this so that you can at least give it a try, to existing API using XPCOM is the one that you would need while you are embedding this and the should be doen before you install before you start with any other things, then you need to make a new api on the top of the existing layer a the API that you are using would be normally C++ .

  3. #3
    Join Date
    Apr 2009
    Posts
    488

    Re: How to embed Firefox & Safari in MAC RB application

    Do you want to enclose this application in a window with the application that you are creating as if that is the what you need to do then I am sorry to tell you that this is not possible, as the browser that you are trying to embed uses the webkit as their search engine which is not supported by the Real basic programming platform, I think that would not be possible for you until and unless the company releases some update for webkit engine.

  4. #4
    Join Date
    May 2009
    Posts
    637

    Re: How to embed Firefox & Safari in MAC RB application

    I think using html viewer would be a better option for you, while on Mac operating system the HTML viewer uses the webkit Safari engine for rendering the text as of fire fox uses the GECKO based engine for rendering the text, now do you see the difference that you are trying to patch up with the , it is possible to do that , but I think it would take some real effort s to do this so that you can create Real basic plug-in for it .

  5. #5
    Join Date
    May 2009
    Posts
    511

    Re: How to embed Firefox & Safari in MAC RB application

    I just don t’ know if this would works for you, but you would at least get the syntax and the idea to go through it, here is what I have made from my last graduation project
    Code:
      nsresult pqr; 
          nsCOMPtr<nsIBaseWindow> baseWindow; 
          nsCOMPtr<nsIWebBrowser> webBrowser; 
    
      Create a new Web Browser ……
          webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &pqr); 
          if (NS_FAILED(pqr)) return pqr; 
    
    Give the WebBrowser a pointer to the embedding component which 
    implements the callback interfaces.  Replace 'this' with 
    an suitable entity... 
          pqr = webBrowser->SetContainerWindow((nsIWebBrowserChrome*)this); 
          if (NS_FAILED(pqr)) return pqr; 
    
          baseWindow = do_QueryInterface(web Browser); 
    
    Initialize the Web Browser with a subject parent window 
    (ie. HWND on Win32).  Replace 'nativeWindow' with a 
    reference to an appropriate native resource... 
          pqr = baseWindow->InitWindow(nativeWindow,   // Native window 
                                      nsnull,         // Always nsnull. 
                                      x, y, cx, cy);  // Initial dimensions... 
          if (NS_FAILED(pqr)) return pqr; 
    
         construct the a new  window for the Web Browser. 
          pqr = baseWindow->Create(); 
          if (NS_FAILED(pqr)) return pqr;

  6. #6
    Join Date
    May 2009
    Posts
    543

    Re: How to embed Firefox & Safari in MAC RB application

    I just don‘t know about the code tha is given above and I am totally not sure,if real basic supports the webkit engine which the two browser that you want to embed have , but I would rather like to have one more chance by getting a little COM control for Windows based operating system and the this could help you to embed the different work on the platform that are there , but ,regrettably the real studio developed platform does not support he QT on this .

  7. #7
    Join Date
    May 2011
    Posts
    92

    Re: How to embed Firefox & Safari in MAC RB application

    That just worked for me, I have used this for my for all my life and I just coud not figure out some code for ti , I would rather love to have something that could work for me , and the coding that was stated above just worked for me , I would really be very thanks full for all the user who have give an reply to me , thanks for all the replies

Similar Threads

  1. Firefox vs Safari
    By Kshaunish in forum Technology & Internet
    Replies: 6
    Last Post: 30-04-2010, 02:55 PM
  2. Viewing PDF in Firefox and Safari
    By Mhonty in forum Windows Software
    Replies: 5
    Last Post: 10-02-2010, 10:56 PM
  3. Embed wmv in Mozilla Firefox
    By Waman in forum Software Development
    Replies: 3
    Last Post: 01-08-2009, 10:38 PM
  4. Firefox vs Safari Which is good ?
    By KACY in forum Technology & Internet
    Replies: 3
    Last Post: 08-07-2009, 03:36 PM
  5. Embed all files from folder when application compiles
    By Sanket07 in forum Software Development
    Replies: 2
    Last Post: 31-01-2009, 04:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,004,662.58047 seconds with 17 queries