Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6861807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:34:57+00:00 2026-05-27T02:34:57+00:00

What I’m trying to do is to create an ability to view (not to

  • 0

What I’m trying to do is to create an ability to view (not to edit) the HTML pages included into project. The Welcome Page already has embedded web browser, so it appears to be a good candidate for that.

Curios why? Here is a question with background info.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:34:58+00:00Added an answer on May 27, 2026 at 2:34 am

    In case you’re willing to use a hack like this:

    type
      TOpenNewURLModule = procedure(const URL: string; EditorForm: TCustomForm);
    
    procedure OpenURL(const URL: string);
    var
      EditWindow: INTAEditWindow;
      Lib: HMODULE;
      OpenNewURLModule: TOpenNewURLModule;
    begin
      EditWindow := (BorlandIDEServices as INTAEditorServices).TopEditWindow;
      if not Assigned(EditWindow) or not Assigned(EditWindow.Form) then
        Exit;
    
      Lib := GetModuleHandle('startpageide150.bpl');
      if Lib = 0 then
        Exit;
      OpenNewURLModule := GetProcAddress(Lib, '@Urlmodule@OpenNewURLModule$qqrx20System@UnicodeStringp22Editorform@TEditWindow');
      if @OpenNewURLModule <> nil then
        OpenNewURLModule(URL, EditWindow.Form);
    end;
    

    Cons:

    • it’s a hack (startpageidexx.bpl is not exposed through the API or documented)
    • it’s hard-coded for Delphi XE (you need a different file name for other versions, the method signature might be different, too – e.g. in older AnsiString versions)
    • it does nothing if there is no edit window (there has to be at least one open module)
    • it always opens a new browser view

    EDIT: It seems to be possible to reuse an existing open Welcome page, as well as make this hack compatible with older versions of Delphi. The following shows two alternatives, Delphi XE and Delphi 2007 (both seem to be working):

    type
      IURLModule = interface(IOTAModuleData)
      ['{9D215B02-6073-45DC-B007-1A2DBCE2D693}']
        function GetURL: string;
        procedure SetURL(const URL: string);
        property URL: string read GetURL write SetURL;
      end;
      TOpenNewURLModule = procedure(const URL: string; EditorForm: TCustomForm);
    
    function FindURLModule: IURLModule;
    var
      I: Integer;
    begin
      Result := nil;
      with BorlandIDEServices as IOTAModuleServices do
        for I := 0 to ModuleCount - 1 do
          if Supports(Modules[I], IURLModule, Result) then
            Break;
    end;
    
    procedure OpenURL(const URL: string; ReuseExistingView: Boolean = True);
    {$IFDEF VER220} // Delphi XE
    const
      SStartPageIDE = 'startpageide150.bpl';
      SOpenNewURLModule = '@Urlmodule@OpenNewURLModule$qqrx20System@UnicodeStringp22Editorform@TEditWindow';
    {$ENDIF}
    {$IFDEF VER185} // Delphi 2007
    const
      SStartPageIDE = 'startpageide100.bpl';
      SOpenNewURLModule = '@Urlmodule@OpenNewURLModule$qqrx17System@AnsiStringp22Editorform@TEditWindow';
    {$ENDIF}
    var
      Module: IURLModule;
      EditWindow: INTAEditWindow;
      Lib: HMODULE;
      OpenNewURLModule: TOpenNewURLModule;
    begin
      EditWindow := nil;
      Module := nil;
      if ReuseExistingView then
        Module := FindURLModule;
      if Assigned(Module) then
      begin
        Module.URL := URL;
        (Module as IOTAModule).Show;
      end
      else
      begin
    {$IFDEF VER220}
        EditWindow := (BorlandIDEServices as INTAEditorServices).TopEditWindow;
    {$ENDIF}
    {$IFDEF VER185}
      if Assigned((BorlandIDEServices as IOTAEditorServices).TopView) then
        EditWindow := (BorlandIDEServices as IOTAEditorServices).TopView.GetEditWindow;
    {$ENDIF}
        if not Assigned(EditWindow) or not Assigned(EditWindow.Form) then
          Exit;
        Lib := GetModuleHandle(SStartPageIDE);
        if Lib = 0 then
          Exit;
    
        OpenNewURLModule := GetProcAddress(Lib, SOpenNewURLModule);
        if @OpenNewURLModule <> nil then
          OpenNewURLModule(URL, EditWindow.Form);
      end;
    end;
    

    Remaining cons:

    • it’s still a hack
    • it’s still hard-coded, for Delphi XE (Unicode) and Delphi 2007 (ANSI)
    • it still does nothing if there is no edit window

    Perhaps you can use this as a start if you need compatibility for other versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.