Jump to content

paul.coshott

uniGUI Subscriber
  • Posts

    42
  • Joined

  • Last visited

Posts posted by paul.coshott

  1. Hi All,

    Can anyone tell me if it is possible to call a JS ExtEvent (such as a click event) from within a pascal coded event?

    And how do I use a new custom event created in the list of ExtEvents? How do I call it? Can this be called from within a pascal event?

    Cheers,
    Paul

    Delphi 10.2 Pro, uniGUI 1.9.0.1504 Complete Professional, Windows 10 Pro

  2. Hi Sherzod,

    Thanks for the example. It worked fine, but it was no faster than the pascal code.

    So, next question. Is it possible to fire a java script event from within the pascal code, that will cause the background color to change quicker?

    Cheers,
    Paul

  3. Hi All,

    I've just learned how to change the background color of a panel using client side JS in the ClientEvents property :). Works great (thanks Sherzod).

    But I also have another case where I am changing the background color of a panel (and one where I change the background color of a label), but the color it changes to depends on quite a few factors and also whether it was previously selected or not selected.

    So what I'm asking, is can I call JS code from within my pascal coded events. And if I can, how do I do this? An example of changing the background color of an object would be great.

    Thanks,
    Paul

    Delphi 10.2 Pro, uniGUI 1.9.0.1502 Complete Professional, Windows 10 Pro

  4. Hi All,

    As I'm new to uniGUI, I wrote my first web app using just pascal. Now i have the app hosted, it's easy to see where the interface needs speeding up. So I need to replace some pascal event handlers with JS code. Other than asking on these forums what JS code is needed to replace the pascal code, is there anywhere else I can learn the JS calls I can use in uniGUI?

    For today though, I have 2 panels that allow the user to choose between AM and PM. When they click the panel, it changes color to the selected color, and changes the other panel's color to the unselected color. How and where do I do the following in JS?

    procedure TfTimeEditor.pAMClick(Sender: TObject);
    begin
      panelAM.Color := $0048B9F7;
      panelAM.Tag := 1;
      panelPM.Color := $00F1F0F0;
      panelPM.Tag := 0;
    end;

    Thanks for any help,

    Paul

    Delphi 10.2 Pro, uniGUI 1.9.0.1502 Complete Professional, Windows 10 Pro

  5. Hi All,

    I have never compiled an app without the runtime packages inside my exe. To do this with my uniGUI app, what do I need to do? And do I need to specify which packages I don't want in the compile?

    Thanks for any help and advice,
    Paul

    Delphi Pro 10.2
    uniGUI Pro Complete 1.9.0.1502

  6. Hey All,

    I started developing an app to test uniGUI and chose to develop and test as an exe. All was going so well, I just kept going :). But now I am almost ready to deploy and would like to deploy as a service.

    What do I have to do to convert my exe project to a service project?

    Thanks,
    Paul

    Using Complete Professional - 1.9.0.1502

  7. Hi Sherzod,

    Can you tell me how to create a session and how to terminate a session when not using a TUniLoginForm?

    Is there anything else I need to take care of that would normally be taken care of by the TUniLoginForm?

    Cheers,
    Paul

    Delphi Pro 10.2    uniGUI Trial 1.9.0.1496

  8. Hi Jean-Marc,

    Thanks for the answer. Sounds like it's best to stick with IIS and windows.

    I also used Morfik for a while. I purchased v1 and continued with v3. It was way before it's time with what it could do, and the way it did it. Shame it's gone.

    Cheers,
    Paul

  9. Hi All,

    Does anyone have any recommendations for hosting for a uniGUI app and a Firebird 3 database?

    To start with I'm looking for a really cheap solution just for beta testing with up to 5 businesses connecting.

    And then a more robust solution that can handle plenty of connections.

    So just looking for a hosting solution that will host uniGUI apps with a Firebird 3 server - 1 cheap and the other a more permanent solution.

    Any thoughts?

    Cheers,
    Paul

  10. Hi Sherzod,

    I think I read it in the developers manual. It said if you use a standard form as your login form, you need to take care of creating and/or terminating the session when you login and logout.

    Is this right? And if so, how do I create and/or terminate a session?

    Cheers,
    Paul

  11. Hi All,

    I created a web app before I realised there was a specific Login form. I read somewhere that if you don't use the Login form, you need to take care of some things manually. Maybe starting and/or terminating sessions?

    Can anyone tell me what I have to do manually when a user logs in and then when they log out?

    Thanks,
    Paul

  12. Hi Sherzod,

    As I am using the trial version, I don't seem to be able to attach files to the forum. I have started a question in the support portal and attached a demo project. Maybe once you have looked at it, you could attached the working project back here for those that are interested.

    Thanks for looking into this.

    Cheers,
    Paul

  13. On 4/29/2019 at 6:17 PM, Sherzod said:

    panelLeft.JSInterface.JSCall('setWidth', [panelLeft.JSInterface.JSStatement('parseInt(localStorage.getItem("K1"))')]);

    Hi Sherzod, this isn't working for me. Could you please check the syntax to see if you can spot any issue. If not, I'll create a small example app that try's to use the code.

    Thanks,
    Paul

  14. Hi Hayri,

    Thanks for the answer.

    Could you also tell me what control I should use to return an integer (saved as a string) that will be used to set the width of a panel. I can't do the following, but this is what I need. How do I do something like this?

    Thanks,
    Paul

      panelLeft.Width := ????.JSInterface.JSCall('setValue', [????.JSInterface.JSStatement('localStorage.getItem("K1")')]);
    
×
×
  • Create New...