Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

Web Browser 4 years 3 months ago #14211

  • Júnior Nascimento
  • Júnior Nascimento's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
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.

Web Browser 4 years 3 months ago #14215

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
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

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

Last edit: by Sternas Stefanos.

Web Browser 4 years 3 months ago #14216

  • Júnior Nascimento
  • Júnior Nascimento's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
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.

Web Browser 4 years 3 months ago #14217

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
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:
The following user(s) said Thank You: Júnior Nascimento

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

Last edit: by Sternas Stefanos.

Web Browser 4 years 3 months ago #14230

  • Júnior Nascimento
  • Júnior Nascimento's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
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!!

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

Last edit: by Júnior Nascimento.

Web Browser 4 years 3 months ago #14231

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
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

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

Last edit: by Sternas Stefanos.
  • Page:
  • 1