Jump to content

mhmda

uniGUI Subscriber
  • Posts

    1141
  • Joined

  • Last visited

  • Days Won

    157

Posts posted by mhmda

  1. Use one login form, and use panels as you want and on every panel put the controls you want to show the user and examine the parameters you send to the app and based on that display the panel you want, let's say:

     

     pnl_Customers

     pnl_suppliers 

     pnl_admin 

     

    and send parameters:

    http://localhost:8077/?param1=customer&param2=....
    

    And in form show check the parms:

     clnt:=UniApplication.Parameters.Values['param1'];
    
     pnlCustomer.visible:=clnt='customer';
     ...
    
  2. You can use css "#", every cell has an ID, for example for cell: 05/02/2017:

    #O13_id-month-day-20170205 {
     background-color:#f00 !important;
    } 

    013 = UniCalendarPanel1.JSName

     

    so you can use #id and assign css class as the color you want.

  3. Mohammad,

     

    Desktop version from above. What theme is it ? I don't see switches like this anywhere in UniGui. The same buttons - is this speed button with changed color ? Could You clarify please ?

     

    ucss.png

    .bntLogin
    {
     background:#fcf5e4 !important; 
     -webkit-transition: background 0.2s ease-in-out;
     transition: background 0.2s ease-in-out;
    }
    .bntLogin:hover
    {
     background:#fac337 !important;
     -webkit-transition: background 0.2s ease-in-out;
     transition: background 0.2s ease-in-out;
    }
    
    
    .login_edit
    {
     background-color:#fcf5e4 !important; 
     background-image: none !important; 
    } 

    Sencha Field->Text:

     

    ucss2.png

     

    http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.form.field.Text-cfg-fieldCls

  4.  

    There are Layout, Layout Attribs and Layout Config properties (available depends of used component). When I fill this values - layout positioning is at the client side.

    When I use Alignment properties (like a delphi plain app) - layout calculation is at the server side - which I think is slower and increase server load.

     

    Correct. When you want to use client-side layout management don't forget this (for forms and panels):

     

    clnt.png

     

     

    At the end when client-side managing layout it means the Sencha Extjs is managing that and Sencha Extjs is cross browser and you can count on it.

     

    I think the power of unigui is that it uses Sencha Extjs/Touch for client side and Object pascal for back-end and these two tools are very trustful.

     

    For us to make it easy and to understand unigui we should understand the web concept (client/server) and Extjs/Touch for that I always refer to Sencha Extjs API they have an excellent documentation. 

  5. Here the Client-side is responsible for the alignment and layout, the other way is using server side to to do the calculation and layout, for best results always use client-side and layout properties.

     

    If you want a detailed explanation let me know.

×
×
  • Create New...