Jump to content

DoiSuthep

uniGUI Subscriber
  • Posts

    39
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by DoiSuthep

  1. I have situation where I would like to save silently some cookies for default browser. With certain QueryPamams I save cookies and terminate application in UniGUIMainModuleBeforeLogin:

    UniSession.UniApplication.Terminate('<script>window.top.close()</script>');

     

    But it is not allowed to close browser tab/window.

     

    Instead redirect there works like below but it is not silet as I wish:

    UniSession.Terminate('<script>window.location.href = "http://google.com";</script>');

     

    Is there a way to close browser window or other ways to save cookies silently?

  2. Thanks for the answer Delphi developer.

    That was almost what I was trying to do. It removed left, right and bottom border but top border still remains. Anyway your approach is useful also (before I didn't understand to select tabPanel as you pointed in screenshot).

     

    Reading forum (this and other pages) I was able to remove borders by:

    1. Creating customCSS

    .myNoBorderCSS .x-panel-body-default 
    {
       background: #ffffff;
       border-color: #ffffff;
       color: black;
       border-width: 0px; 
       border-style: solid;
    }
    2. adding cls in ExtJS-events
    function added(sender, container, pos, eOpts)
    {
       sender.addBodyCls('myNoBorderCSS');
    }

     

     

    I also hide UniPageControl header by:

    UniSession.AddJS(Format('%s.items.getAt(0).tabBar.hide();', [PC.JSName]));

     

    All working well except that tab panel height will be too small (= - header height), but that does not disturb me so much.

    • Upvote 1
  3. Hi,

     

    I was trying to implement common TUniSpSweetAlert-based messagebox to datamodule and other unigui-forms where suppose to call that MessageBox-procedure.

    MessageBox is displayed but buttons in messagbox are not working. Placing TUniSpSweetAlert-component directly to unigui-form works ok. 

     

    Do you have any suggestions, Can I pass form-information somehow and use common messagebox ?

     

    Regards,

    Hannu Hilanne

  4. I have been wondering also how can be trial-needs to build production environment (sessions, themes..) for a long time ;)
    Normally trial is only for limited time to evaluate product if it can be used for development needs . Farshad is giving more than that already.

    • Upvote 1
  5. Hi,

     

    Same thing I have been searching for... but I couldn't find much information about this yet.

    So I just started to experiment and got some results also.. now I can use yellow-style as I wanted :)

    Here is how I did it:

    - Downloaded themes to experiment from  https://market.sencha.com/extensions/clifton-theme

    - extract zip to C:\Program Files (x86)\FMSoft\Framework\uniGUI\ext-4.1.1a\resources

    - copy clifton-yellow.css to C:\Program Files (x86)\FMSoft\Framework\uniGUI\ext-4.1.1a\uni\css

    - rename clifton-yellow.css to uni-xtheme-yellow.css

    - Change Theme in unimainmodule.dmf  (object UniMainModule: TUniMainModule  Theme = 'yellow')

    -> And suddenly all blue changed to yellow.

     

    Also I got some other better result: i.e.  speedbutton color: I can use colour-property now by selecting right colour or using  clBtnFace (=comes from theme)

    And you are right... great product! Even I can now do some web based development ;)

     

     DoiSuthep

×
×
  • Create New...