Jump to content

ZigZig

uniGUI Subscriber
  • Posts

    352
  • Joined

  • Last visited

  • Days Won

    28

Posts posted by ZigZig

  1. I Ahmad,

     

    The callback procedure is not the one that shows a message, but the one called as parameter from the procedure that shows a message.

    Did you try something like this?

    //uniFormConfirm is an application form with an uniLabel ("Do you really want to close your session?") and an uniButton "OK" (with ModalResult set to mrOK).
    
    uniFormConfirm.ShowModal(
      procedure(Sender:TObject;Result:Integer);
      begin
        if Result=mrOK then TerminateMySession;
      end
    );
    
    procedure TerminateMySession;
    begin
      //do whatever you want to close properly a session
    end;
  2. Hi irwan,

     

    You can use JavaScript (with ExtEvents code or with AddJS method).

     

    For example, if you have an UniScreenMask on your MainForm, and if you set its AttachedControl to UniButton1, you can write something ilke this :

    MainForm.UniButton1.showMask();
    

    If you do so, don't forget to manually hide this mask when it becomes useless:

    MainForm.UniButton1.hideMask();

     

    I hope it will help you.

    • Upvote 1
  3. Hello Alexandre,

     

    Please try to find answers to your questions in previous topics, everything is aleady fully explained so many times...

    Also, please try to use English, or go to non-English forums.

    • Upvote 2
  4. Hi NizamUlMulk,

     

    Difference between ISAPI mode and .exe mode is nothing but a compiler directive: nothing changes into your code.  Everything that works in .exe mode is written and works in the same way in ISAPI mode (except if you run a very old version of UniGUI where "VCL mode" means "Windows forms mode").

    Try this code :

    myURLParameter:=UniApplication.Parameters.Values['myParameter'];
    

    Then, if you open your uniGUI application with this URL : .../URLParamsDemo.dll?myParameter=hello, you will see that UniApplication.Parameters.Values['myParameter'] is equal to 'hello'.

    I use this way of getting parameters in all my ISAPI developments, I never noticed a problem.

     

    If you cannot compile this piece of code, try to add uniGUIApplication to your uses clause.

     

    BTW, what is your version of uniGUI ?

    • Upvote 1
  5. Hello,

     

    Here is a website for a Belgian theater, fully created with uniGUI, which looks like a stateless website (but is not) : http://www.theatredelavie.be

    This is the public site (where you can read about shows, order a ticket, aso...).  Nothing was done outside uniGUI: this is 100% Delphi + uniGUI.

     

    More explanations from Farshad :

     

     

    Technically speaking this site is not a "stateless" site because for example you can't bookmark a certain page and revisit it later. However, that doesn't matter anymore. Web is evolving and more and more site are becoming dynamic web sites with dynamic content rather than being a bunch of  static pages.

     

    Whatever you create with uniGUI will be stateful.  Which means all states are kept in server side. However you can give the impression that your site is a regular stateless web site like what ZigZig did.

     

    Of course, there is also an admin site (that looks more like a normal uniGUI application) for theater employees but I cannot give public access to this part.

    • Upvote 1
×
×
  • Create New...