Sherzod Posted November 16, 2021 Share Posted November 16, 2021 9 4 Link to comment Share on other sites More sharing options...
Pep Posted November 16, 2021 Share Posted November 16, 2021 Thanks. Very easy to implement. Waiting for next Part... 3 Link to comment Share on other sites More sharing options...
Bimmer Posted November 19, 2021 Share Posted November 19, 2021 Nice and easy to understand - Hope to see Part 2 soon 🙂 Link to comment Share on other sites More sharing options...
Tony dias Posted March 29, 2023 Share Posted March 29, 2023 actually, unigui is already to work with responsive method? Link to comment Share on other sites More sharing options...
Phxtecno Posted March 29, 2023 Share Posted March 29, 2023 How RUN in Delphi side, open directly in the browser ? Link to comment Share on other sites More sharing options...
Sherzod Posted March 29, 2023 Author Share Posted March 29, 2023 5 minutes ago, Phxtecno said: How RUN in Delphi side, open directly in the browser ? Sorry? Link to comment Share on other sites More sharing options...
Phxtecno Posted March 29, 2023 Share Posted March 29, 2023 I have seen that when you compile and run the application in delphi, the browser start automatically with your app... while I usually go in the browser and have to refresh the page with localhost address. Link to comment Share on other sites More sharing options...
Abaksoft Posted March 31, 2023 Share Posted March 31, 2023 On 3/29/2023 at 8:39 AM, Phxtecno said: I have seen that when you compile and run the application in delphi, the browser start automatically with your app... while I usually go in the browser and have to refresh the page with localhost address. Use ShellExecute on program principal. I will send you more details tomorrow... 1 Link to comment Share on other sites More sharing options...
Abaksoft Posted April 1, 2023 Share Posted April 1, 2023 On 3/29/2023 at 8:39 AM, Phxtecno said: I have seen that when you compile and run the application in delphi, the browser start automatically with your app... while I usually go in the browser and have to refresh the page with localhost address. I found this on forum : program Project1; uses windows, ShellAPI, SysUtils, Forms, ServerModule in 'ServerModule.pas' {UniServerModule: TUniGUIServerModule}, MainModule in 'MainModule.pas' {UniMainModule: TUniGUIMainModule}, Mainm in 'Mainm.pas' {MainmForm: TUnimForm}; {$R *.res} BEGIN //************************************* ReportMemoryLeaksOnShutdown := True; //************************************* Application.Initialize; TUniServerModule.Create(Application); // Fast run if (IsDebuggerPresent) // in Desktop mode only (Not IIS, not as Service, not HyperServer) and (extractFileExt(GetModuleName(Hinstance))='.exe') then begin shellExecute(Application.Handle, // Desktop PChar('Open'), PChar('Http://127.0.0.1:' + intToStr(ServerModule.UniServerModule.Port)),Nil,Nil,SW_Show); // Mobile // PChar('Http://127.0.0.1:' + intToStr(ServerModule.UniServerModule.Port)+'/m'),Nil,Nil,SW_Show); end; Application.Run; End. 2 Link to comment Share on other sites More sharing options...
Phxtecno Posted April 1, 2023 Share Posted April 1, 2023 got it, thank you ! Link to comment Share on other sites More sharing options...
Sherzod Posted April 1, 2023 Author Share Posted April 1, 2023 But in the example I didn't use it at all )) Link to comment Share on other sites More sharing options...
Phxtecno Posted April 1, 2023 Share Posted April 1, 2023 So, how do run the application directly from Delphi IDE ? Link to comment Share on other sites More sharing options...
Sherzod Posted April 1, 2023 Author Share Posted April 1, 2023 Well, you've already been told how to do it. I just manually opened and refreshed the page... Link to comment Share on other sites More sharing options...
Phxtecno Posted April 1, 2023 Share Posted April 1, 2023 ah ok, as I do; from the video seems to me automatic with F9. 1 Link to comment Share on other sites More sharing options...
Sherzod Posted April 1, 2023 Author Share Posted April 1, 2023 😀 Link to comment Share on other sites More sharing options...
Abaksoft Posted April 1, 2023 Share Posted April 1, 2023 On 11/16/2021 at 8:42 AM, Sherzod said: Hello Sherzod, I haven't seen that one. You never cease to amaze us. Many Thx. Good appetite 😉 1 Link to comment Share on other sites More sharing options...
Sherzod Posted April 1, 2023 Author Share Posted April 1, 2023 🙏 Link to comment Share on other sites More sharing options...
Sherzod Posted January 30 Author Share Posted January 30 @luucm Hello, Which build and edition of uniGUI are you using? Link to comment Share on other sites More sharing options...
luucm Posted January 30 Share Posted January 30 1 hour ago, Sherzod said: @luucm Hello, Which build and edition of uniGUI are you using? i use 1.90.0.1535 Link to comment Share on other sites More sharing options...
Sherzod Posted January 30 Author Share Posted January 30 33 minutes ago, luucm said: i use 1.90.0.1535 Please adjust your forum email address: Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now