Hmm..The "lblFinStatus.*" stuff doesn't redraw in OnTerminated:

//---------------------------------
btnCancel.enabled:= false;
case RESULTCODETY(ExitCode) of
  SUCCESS: begin
    lblFinStatus.caption:= 'Завершено успешно.';
    lblFinStatus.color:= cl_ltgreen;
    pbCurrentFile.value:= 1;
    pbTotals.value:= 1;
  end;
[...]
waitus(3000000);
//---------------------------------

application.unlock+lock doesn't help.


2012/7/26, Ivanko B <ivankob4m...@gmail.com>:
> Oops, it's a new event handler. Appzs !
>
>
> 2012/7/26, Ivanko B <ivankob4m...@gmail.com>:
>> 1) still needs application.lock/unlock to redraw GUI elements
>> 2) ShowMessage still doesn't show
>>
>> //--------------------------------
>>
>> procedure tmainfo.tdupadteterminate(const sender: tthreadcomp);
>> begin
>> btnCancel.enabled:= false;
>> case RESULTCODETY(ExitCode) of
>>   SUCCESS: begin
>>     lblFinStatus.caption:= 'Завершено успешно.';
>>     lblFinStatus.color:= cl_ltgreen;
>>     pbCurrentFile.value:= 1;
>>     pbTotals.value:= 1;
>>   end;
>>   CANCELLED: begin
>>     lblFinStatus.caption:= 'Отменено.';
>>     lblFinStatus.color:= cl_ltblue;
>>   end
>>   else {FAILED}
>>     lblFinStatus.caption:= 'Произошла ошибка.';
>>     lblFinStatus.color:= cl_ltred;
>> end;
>> application.unlock;
>> waitus(3000000);
>> if ExitCode = integer(FAILED) then begin
>>   showmessage(lastopermsglocal,'ОШИБКА АВТООБНОВЛЕНИЯ');
>> end;
>> application.lock;
>> {выйти из программы по завершении sender.OnExecute}
>> application.terminated:= true; {не вызывает app.OnterminateQuery}
>> end;
>>
>> 2012/7/26, Martin Schreiber <mse00...@gmail.com>:
>>> On Thursday 26 July 2012 06:52:45 Ivanko B wrote:
>>>> threadcomp.onterminated which runs in main thread by means of
>>>> synchronize(). ==================
>>>> Should "threadcomp.onstarted" do it too ?
>>>> (just a question)
>>>>
>>> I don't think so because starting a thread normally will be done in main
>>> thread.
>>>
>>> Martin
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond.
>>> Discussions
>>> will include endpoint security, mobile security and the latest in
>>> malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> mseide-msegui-talk mailing list
>>> mseide-msegui-talk@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>>>
>>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to