Jump to content

donlego

uniGUI Subscriber
  • Posts

    231
  • Joined

  • Last visited

Posts posted by donlego

  1. 50 minutes ago, Sherzod said:
    procedure TMainForm.UniButton1Click(Sender: TObject);
    var
      acol,
      apesan,
      amsg: string;
      genMsgID: string;
    begin
    
      amsg := 'Hello';
      acol:='#3D7A00';
      genMsgID := FormatDateTime('yyyymmddhhnnsszzz', Now());
    
      apesan := apesan+'<table style=margin-top:-18px ><td><i class=\"fa fa-info\" aria-hidden=\"true\">   </i>     &nbsp;&nbsp;&nbsp; </td>&nbsp;&nbsp;<td>'+amsg +'</td></table><span style=\"float:right;margin-top:-18px\"><i  onclick=\"window._msg'+ genMsgID +'.destroy(); window._msg'+genMsgID+'=null; \"   class=\"fa fa-times\" aria-hidden=\"true\"></i></span>';
    
      UniSession.AddJS('window._msg'+ genMsgID +' = Ext.toast ({html: "<font color=white style=font-size:15px;font-family:segoe ui;>' + apesan +
       '</font>", align: "tr" , header: false, width:400, autoCloseDelay: 150000, hideDuration: 150000, modal: false, bodyStyle:{"background-color":"'+acol+' !important;box-shadow:'+acol+' !important; border-color: 0px solid transparent;padding:0px 0px 0px 0px !important;top:180px !important"}'
       +',listeners: {show: function(){this.paddingY = Ext.getBody().getHeight()/2 - this.getHeight()/2}}'
       +'});'
       );
    
    end;

     

     it's work perfectly , thanks you very much @Sherzod

    • Thanks 1
  2. 11 minutes ago, Sherzod said:

    I will try to check. 

    ok, 

    i was try with css 

    .x-toast{
       top:160px !important;    
       }

    but if there is >= 2 toast message , it's cover previous toast message

     

  3. 1 minute ago, Sherzod said:

    Possible values:

    • br - bottom-right
    • bl - bottom-left
    • tr - top-right
    • tl - top-left
    • t - top
    • l - left
    • b - bottom
    • r - right

    yes , i try with align:r

    but the toast is not show 

    nothing error in console tab

    i use unigui ver 1541 , extjs 7.0.0,

     

  4. 7 minutes ago, Sherzod said:

    For example:

    procedure TMainForm.UniButton1Click(Sender: TObject);
    var
      acol,
      apesan,
      amsg: string;
      genMsgID: string;
    begin
    
      amsg := 'Hello';
      acol:='#3D7A00';
      genMsgID := FormatDateTime('yyyymmddhhnnsszzz', Now());
    
      apesan := apesan+'<table style=margin-top:-18px ><td><i class=\"fa fa-info\" aria-hidden=\"true\">   </i>     &nbsp;&nbsp;&nbsp; </td>&nbsp;&nbsp;<td>'+amsg +'</td></table><span style=\"float:right;margin-top:-18px\"><i  onclick=\"window._msg'+ genMsgID +'.destroy();\"   class=\"fa fa-times\" aria-hidden=\"true\"></i></span>';
    
      UniSession.AddJS('window._msg'+ genMsgID +' = Ext.toast ({html: "<font color=white style=font-size:15px;font-family:segoe ui;>' + apesan +
       '</font>", align: "br" ,header: false, width:400, autoCloseDelay: 150000, hideDuration: 150000, modal: false, bodyStyle:{"background-color":"'+acol+' !important;box-shadow:'+acol+' !important; border-color: 0px solid transparent;padding:0px 0px 0px 0px !important;top:180px !important"} });');
    
    end;

     

    it's work thanks very much ,

    how with the align position , is there any solution for align:r

    right center position

     

  5. sorry , form the link you post , i dont find how to close the toast message with the button on toast message,

    i want when click the close button , the toast message is close/hide/disapear 

    image.png.f63dd4d5e0c1c8c08797e016c658d81a.png

     

     

    here is my procedure 

     

    Quote

    class procedure PlayWIthMessage.SHOW_TOAST(act: integer; amsg: string);
    var acol,apesan,img:String;

    begin
    case act of
     0:acol:='red';
     1:acol:='#3D7A00';
     2:acol:='yellow';

    end;

     amsg:= StringReplace(amsg, #13#10, '<br>', [rfReplaceAll]);


        apesan := apesan+'<table style=margin-top:-18px ><td><i class=\"fa fa-info\" aria-hidden=\"true\">   </i>     &nbsp;&nbsp;&nbsp; </td>&nbsp;&nbsp;<td>'+amsg +'</td></table><span style=\"float:right;margin-top:-18px\"><i  onclick=\"Ext.toast().hide();\"   class=\"fa fa-times\" aria-hidden=\"true\"></i></span>';
        UniSession.AddJS('Ext.toast ({html: "<font color=white style=font-size:15px;font-family:segoe ui;>' + apesan +
     '</font>", align: "br" ,header: false, width:400, autoCloseDelay: 150000, hideDuration: 150000, modal: false, bodyStyle:{"background-color":"'+acol+' !important;box-shadow:'+acol+' !important; border-color: 0px solid transparent;padding:0px 0px 0px 0px !important;top:180px !important"} });');


          end;
     

     

  6. On 10/20/2021 at 12:59 PM, irigsoft said:

    Hello,

    in version 1528 I get errors when session expires or closed manually from application:

    "Exception raised while destroying session: Access violation at address 77445072 in module 'ntdll.dll'. Write of address 00FFFFFB"

    What I can do in this case ?

    Is it possible that the ntl error came from the uniGUi libraries in this version or is it a problem with ntdll.dll in Windows 10?

    have you solved this problem?
    how to solve it, I have the same case as you,
    

     

    get errors when session expires or closed manually from application

    Exception raised while destroying session: Access violation at address 

    unigui hyperserver  ver 1541, on  xampp apache, and window server ,

    when the exception raised the node become suspend for long time

     

     

  7. 1 hour ago, Abaksoft said:

    Hello,

    If this can help you :

    In windows 11, we can no longer write (without admin rights) on :

    C:\   

    C:\Program Files

    C:\ProgramData

    Even with a simple iniFile.

    1. Try to give all authorisations to your folders as admin rights :  (read - write ).

    2. Try to run your app as admin (project > options > manifest)

    hello @Abaksoft

    i was try all, write/read all folder, turn off uac,turn off firewall, put the app not in C drive

    except the manifest , but nothing succes, 

     

  8.  

     

    procedure TFrmPostBayar.UniURLFrame1FrameLoaded(Sender: TObject);
    begin
      inherited;
     if UniURLFrame1.URL<>'' then
     begin
      FrmPostBayar.ShowMask('');
      try

         // long proses to preview
            UniURLFrame1.JSInterface.JSCode
        ('Ext.defer(function(){'#1'.iframe.contentWindow.print()}, 10);');
      finally
      FrmPostBayar.HideMask;

      end;


     end;
    end;

  9. hello 

    i have uniurlframe load pdf file about +- 10 page

    how to know if uniurlframe load the full page  /finish load 

    i want to show unimask on the form before load and hide the mask after the file finish until all page

     

×
×
  • Create New...