Jump to content

mhmda

uniGUI Subscriber
  • Posts

    1141
  • Joined

  • Last visited

  • Days Won

    157

Posts posted by mhmda

  1. Hi all,

     

    I work in Msoft LTD which is located in Middle east and Colombia (bogota) and we are searching for employee for full job in bogota

    for our software product (Msoft-Nasa) for more details visit www.3msoft.net  

     

    Job Requirements:
    supporting:

    Msoft-Nasa (tour & travel backoofice software)
    Window 8,7,XP
    Network Printers

    Network Sharing

    RDP- remote desktop

     

    Mhmda

     

     

  2. 1. put the icon file in the dirsctory (you can find here any icon you want: http://www.findicons.com)

     

    u2.png

     

    2. add the css code to ServerModule-->CustomeCSS:

    .stngs_icon{  
        background-image: url("images/stngs.png") !important; 
    }
    

    Important: the url directory depending on your settings in the servermodule->FilesFolder

     

    if you didn't make any changes to "FilesFolder" then use this in the url: "files/images/stngs.png"

     

     

     

    u1.png

     

    3. Set the icon at run time:

     

    u3.png

    function OnAfterrender(sender)
    {
      var obj=MainForm.UniPageControl1.items.getAt(0).items.getAt(0);
      obj.setIconCls('stngs_icon');
    }
    

    Project from here: http://www.3msoft.net/mhmd/tabs_icon.rar

     

    Online from here: http://79.143.180.27/animateform/animateform.dll

     

     

    Hope this will help you  ;)

    • Upvote 1
  3. Hi,

     

    You may try this: (all client side code - js)

     

    tabs.png

     

    Project from here: http://www.3msoft.net/mhmd/Tabs.rar

    function OnClick(sender, e)
    {
     //switch position
     var tab1=MainForm.UniPageControl1.items.getAt(0).items.getAt(0);
     
     MainForm.UniPageControl1.items.getAt(0).items.getAt(0).tab.hide();
     MainForm.UniPageControl1.items.getAt(0).insert(2,tab1);
    }
    

    If you wish to add icons to tab's title like this:

     

    tabss.png

     

    You could use this code:

    MainForm.UnipageControl1.items.getAt(0).items.getAt(0).setIconCls('stngs_icon');
    

    and the css is:

    .stngs_icon{  
        background-image: url("images/stngs.png") !important; 
    }
    

    I hope this help you... :rolleyes:

    • Upvote 1
  4. Unitimer is client side and unimodule is server side....

     

    in web development the concept is different from regular programming: in web there is the server side who produce the webpage and do the database work... and the client side which is the page you see in the browser...So the timer is js code which run in the client side (in the browser not in the server).
    If you wish to run server side code from the timer then use ajax:

     

    Put this code in the timer:

    ajaxRequest(MainForm.window, 'myfunc', [] );//in the [] you may pass params
    

    and in the form events "OnAjaxEvent" put this code:

    procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string;
      Params: TStrings);
    begin
    If SameText(EventName, 'myfunc' ) Then
      Begin
        myfunc;//your procedure or function
      End;
    end;
    

    and your func declared in the form or in the mainmodule:

    procedure TUniMainModule.myfunc;
    begin
     showmessage('hello from server side using ajax');
    end;
    

    I hope it will help you  :rolleyes:

  5. hi,

     

    You may create forms manually:

    procedure TMainForm.lblClick(Sender: TObject);
    var
     frm:Tfrm2;//your form
    begin
     frm := Tfrm2.Create(UniApplication);
     frm.ShowModal();
    end;
    

    Or you can use client events with ajaxrequest (to run server side code) or regular js code to run client side code.

  6. Hi all,

     

    I have used Greensock ActionScript in my flash projects and now I use their GSAP in unigui projects.
    It is a lovely animation platform written is pure js.

     

    http://www.greensock.com/v12/

     

    I have created a login page using unigui and GSAP.

     

    You can try it online here ! http://79.143.180.27/myuni1/myuni1.dll

     

    Download the project from here: http://www.3msoft.net/mhmd/MyUni1.rar (updated) the port is 8888

     

    myuni1.png

     

     

    I hope you enjoy it :-)

    • Upvote 4
×
×
  • Create New...