× General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.

Question Web Browser

  • Júnior Nascimento
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
8 months 3 weeks ago #14211 by Júnior Nascimento
Web Browser was created by Júnior Nascimento
Hello, guys!
I need to create an application that can open pages in CT. But I did not find any manual that teaches how to do from configuration to application creation.
Does anyone know a video that teaches how to open pages in CT?

Thanks a lot!

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
8 months 3 weeks ago - 8 months 3 weeks ago #14215 by Sternas Stefanos
Replied by Sternas Stefanos on topic Web Browser
Sir
you can use
function OpenURL(AURL: String): Boolean;
of LCLIntf.pas unit

Like
OpenURL('https://www.pilotlogic.com/')  or
OpenURL('https://www.pilotlogic.com/sitejoom/index.php/forum/general-discussions/5178-web-browser#14211')

PilotLogic Architect and Core Programmer
Last edit: 8 months 3 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Júnior Nascimento
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
8 months 3 weeks ago #14216 by Júnior Nascimento
Replied by Júnior Nascimento on topic Web Browser
I added the 'TChromium' and 'TChromiumWindow' Components and neither accepts> OpenURL (' www.pilotlogic.com/ ')

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
8 months 3 weeks ago - 8 months 3 weeks ago #14217 by Sternas Stefanos
Replied by Sternas Stefanos on topic Web Browser
Oh you want to "Embedded" to your app a Web browser.

For Windows
Please look at CodeOcean Samples
C:\codetyphon\CodeOcean\pl_CEF4Typhon\samples\

Please, read first
C:\codetyphon\typhon\components\pl_CEF4Typhon\ctinfo.txt

and a screen now


PilotLogic Architect and Core Programmer
Attachments:
Last edit: 8 months 3 weeks ago by Sternas Stefanos.
The following user(s) said Thank You: Júnior Nascimento

Please Log in or Create an account to join the conversation.

  • Júnior Nascimento
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
8 months 2 weeks ago - 8 months 2 weeks ago #14230 by Júnior Nascimento
Replied by Júnior Nascimento on topic Web Browser
Sternas Stefanos, hello.

I did all the processes of copying the folder 'resources' and 'release' as per 'readme'.

I put a component 'TChromiumWindow', 'TEdit', 'TButton'.
Inside 'TEdit' I put the URL and 'TButton' put the command: ChromiumWindow1.LoadURL (edtUrl.Text);

No error occurred while clicking the button.
Nothing opens in the Application.

Is there a video lesson on youtube that teaches?
Thanks!!
Last edit: 8 months 2 weeks ago by Júnior Nascimento.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
8 months 2 weeks ago - 8 months 2 weeks ago #14231 by Sternas Stefanos
Replied by Sternas Stefanos on topic Web Browser
No video Sir
but please look the code in
C:\codetyphon\CodeOcean\pl_CEF4Typhon\samples\06_SimpleBrowser\SimpleBrowser.ppr
  Interfaces, // this includes the LCL widgetset
  Forms,
  LCLIntf, LCLType, LMessages,
  uCEFApplication,
  uSimpleBrowser ;

{$R *.res}

begin
  GlobalCEFApp := TCefApplication.Create;

  // You *MUST* call GlobalCEFApp.StartMainProcess in a if..then clause
  // with the Application initialization inside the begin..end.
  // Read this https://www.briskbard.com/index.php?lang=en&pageid=cef
  if GlobalCEFApp.StartMainProcess then
    begin
      Application.Initialize;
      Application.CreateForm(TForm1, Form1);
      Application.Run;
    end;

  GlobalCEFApp.Free;
  GlobalCEFApp := nil;
end.

Your APP must create and start a TCefApplication first.

PilotLogic Architect and Core Programmer
Last edit: 8 months 2 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.