donlego
-
Posts
231 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by donlego
-
-
19 minutes ago, Sherzod said:
I can’t say a specific solution at the moment, need to analyze it in the Ext.window.Toast class itself.
ok, thanks in advance
-
12 minutes ago, Sherzod said:
Well, I already understood that.
But the question is, should new messages appear at the top or at the bottom the previous one?
on top previous
-
6 minutes ago, Sherzod said:
Well, what do you expect?
the same as usual, only the first time it appears, in the center right, and then as usual, it doesn't cover the previous message
-
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
-
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,
-
-
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> </td> <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
-
-
one more think try to set toast align to right center
align:r
try set the align with r , the toast is not show, no error on console
can the toast align set to center right ?
-
1 hour ago, Sherzod said:
OK, I'll try to look again...
ok, thanks
-
43 minutes ago, Sherzod said:
from the that link , i just find to restart app
no code for close the toast message
-
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
here is my procedure
Quoteclass 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> </td> <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;
-
14 minutes ago, Sherzod said:
Hello,
Desktop, mobile?
desktop
-
i use this function the toast messgae is show , but when i click the hide/close button the toast message is still show ,
how to close/hide the toast message ?
unigui version 1541
-
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
-
browser console show error
try
the cmd mirosoft run the comand invaid service
-
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,
-
hello
any body has experince deploy on win 11 as server ?
i try deploy on win 11 it's always getting error
i deploy the exe / stand alone , isapi same error
unigui ver 1541
-
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; -
Sory uniurlframe onframeloaded, i mean, the hidemask imediate run before the procedure do_print_frame()
-
Onloadedform imediately hide the mask ,
Form1.showmask;
Try
Do_print_frame();
Finally
Form1.hidemask();
End;
-
sory can you tell me, which demo
thanks
-
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
-
4 hours ago, lfgarrido said:
Hi @donlego
QZ is paid, if isn't a problem for you, otherwise I'd like to recommend this project which is totally free and ease to use with uniGUI
o, i dont know if the qz tray is paid ,
do you have example for the git link connected with unigui
thank's
How to customize Ext.toast
in General
Posted
it's work perfectly , thanks you very much @Sherzod