progress

Vertical Seekbar setProgress not working

岁酱吖の 提交于 2019-12-01 06:31:39
Seek is not progressing. All seekbar comes to zero but textView shows value properly.. choosePreset.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { LayoutInflater inflater = ((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE)); View customView = inflater.inflate(R.layout.preset_list, null, false); AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setView(customView); final String[] arr= getEqualizerPresets(); ArrayAdapter<String> namesAA= new ArrayAdapter<String> ( context,R.layout.myitemlist,arr ); ListView list =

AJAX/PHP based upload with progress bar for large files

我的梦境 提交于 2019-12-01 05:47:15
问题 I've been trying to create a non-flash upload panel which also shows a progress bar. On our server we have PHP 5.3 (cannot upgrade to 5.4 for now, so the new upload progress feature cannot be used => http://php.net/manual/en/session.upload-progress.php). We cannot use flash based solutions, extensions or similar. Hence I've tried using an XMLHttpRequest combined with AJAX. The problem here is that I've only achieved partial success. I've managed to upload and save on the server a file of

Vertical Seekbar setProgress not working

☆樱花仙子☆ 提交于 2019-12-01 04:11:25
问题 Seek is not progressing. All seekbar comes to zero but textView shows value properly.. choosePreset.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { LayoutInflater inflater = ((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE)); View customView = inflater.inflate(R.layout.preset_list, null, false); AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setView(customView); final String[] arr= getEqualizerPresets();

C# backgroundWorker reports string?

社会主义新天地 提交于 2019-12-01 03:18:35
How can I report a string (like "now searching file. . .", "found selection. . .") back to my windows.form from a backgroundWorker as well as a percentage. Additionally, I have a large class that contains the method I want to run in the backgroundWorker_Work. I can call it by Class_method(); but i am then unable to report my percentage done or anything from the called class, only from the backgroundWorker_Work method. Thanks! I'm assuming WCF also have the method public void ReportProgress(int percentProgress, Object userState); So just use the userState to report the string. private void

WPF multithreaded progress dialog

心已入冬 提交于 2019-12-01 00:28:02
Updated This is kind of an interesting problem I am experiencing. I need to have a progress dialog show when a background process is running. Normally, this would work but the problem is that I need to set public static data within the background process. Here is an example of what I am attempting to accomplish: public partial class MainWindow : Window { public static Service binding; public static Result lr; public progressDialog dlg; private void login() { string sPwd = txtPwd.Password; string sEmail = txtEmail.Text; binding = new Service(); lr = binding.login(sEmail, sPwd); } private void

Control console application from Windows form application C#

心不动则不痛 提交于 2019-11-30 23:54:26
I have 2 applications. One of them is console application, the other is normal form application - both written in C#. I want to open (hidden from view) the console application form the windows form application and be able to send a command lines to the console application. How can i do that? You can start the background process ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "Myapplication.exe"; startInfo.WindowStyle = ProcessWindowStyle.Hidden; Process process = new Process(); process.StartInfo = startInfo; process.Start(); and after that use the Process

C# backgroundWorker reports string?

可紊 提交于 2019-11-30 23:44:40
问题 How can I report a string (like "now searching file. . .", "found selection. . .") back to my windows.form from a backgroundWorker as well as a percentage. Additionally, I have a large class that contains the method I want to run in the backgroundWorker_Work. I can call it by Class_method(); but i am then unable to report my percentage done or anything from the called class, only from the backgroundWorker_Work method. Thanks! 回答1: I'm assuming WCF also have the method public void

Query duration estimation in SQL Server

南笙酒味 提交于 2019-11-30 21:20:15
I've seen in Oracle 10g a feature that estimates the remaining time for a long running query and I was wondering if this is possible too in SQL Server (at least in 2008?)? Suppose I have a very large table with tens of millions of rows (well indexed etc. etc.) and I need to search for some particular rows. I know it will take a lot of time and I'm cool with that but I would like to present the user with some kind of a progress bar. How can I show progress? I'd forget about it and just put a spinning circle! Seriously though, to take MrTelly's idea further, there are dynamic management views

HTML5 进度条

╄→尐↘猪︶ㄣ 提交于 2019-11-30 15:13:45
1. <progress>标签 进度条 value:规定进程的当前值。默认为0 max:规定需要完成的值。 PS:这里没有最小值设置,或者说最小值一律为0 <progress max="50" value="20"></progress> 如果不设置当前值,进度条会来回跳动 <progress max="50"></progress> 小案例:设置定时器,动态增加value值,让进度条动起来 <script> // 这种动态持续访问元素最好不要使用querySelector var progress = document.getElementById("progress") // 判断值是数组类型还是字符串 console.log(typeof progress.value) //number // 设置定时器 var timer = setInterval(function(){ // 因为value是数字类型,可以直接使用加法运算 progress.value++ // 判断进度条是否已满 if(progress.value >= 100){ //清除定时器 clearInterval(timer) } },50) </script> 2.<meter>标签:定义度量衡(状态条) 常用属性:min / low / high / max / optinum

Delphi XE2 DataSnap - Download File via TStream With Progress Bar

那年仲夏 提交于 2019-11-30 14:12:42
问题 I've written a DataSnap server method that returns a TStream object to transfer a file. The client application calls the method and reads the stream fine. My issue is that the method call takes a while to complete before the TStream object is available to read, but on the server side I can see that the method call only takes a second to create the object to return. I was hoping the stream object would be returned immediately so that I can read the stream and display a progress bar for the