On Saturday 28 July 2012 00:35:16 Christian Nobel wrote:
> Aha.
>
> The application.processmessages did the trick.
>
> Ether by replacing the mainfo.update with application.processmessages
>
> or by putting application.processmessages right after the
> application.beginwait
>
The background:
Updati
On Saturday 28 July 2012 00:35:36 Ivanko B wrote:
> Therefore the suggestion to use a timer to close the application.
> ===
> Please spell the exact sequence of calls (incl tuning & starting the
> timer, redrawing widgets etc) - in the "thread world" even well known
> components appear
On Thursday 26 July 2012 20:14:02 Sieghard wrote:
> Hallo Ivanko,
>
> Du schriebst am Thu, 26 Jul 2012 16:52:39 +0500:
> > Hmm.. me terminate the application in one of its threads.
>
> Bad practice, I'd say.
>
Agreed.
Martin
On Friday 27 July 2012 21:13:51 Marcos Douglas wrote:
>
> "...tmsecomponent will not descend from TComponent anymore"
>
> What do you going to do, rewrite all code??
>
I need to state precisely, tmsecomponent will not descend from *FPC*
TComponent anymore.
First step is to copy the necessary FPC s
On Friday 27 July 2012 22:19:47 wahono sri wrote:
> Did you try FTGL?
>
> http://sourceforge.net/projects/ftgl/
>
Yes, I used it at the beginning of the development of the MSEgui OpenGL
backend. Later I decided to implement an own font engine based on Freetype.
Martin
---
to use a timer to close the application.
===
In "OnTimer" ?
2012/7/28, Ivanko B :
> Therefore the suggestion to use a timer to close the application.
> ===
> Please spell the exact sequence of calls (incl tuning & starting the
> timer, redrawing widgets etc) - in the "thread world
Aha.
The application.processmessages did the trick.
Ether by replacing the mainfo.update with application.processmessages
or by putting application.processmessages right after the
application.beginwait
Den 27-07-2012 20:16, Martin Schreiber skrev:
> On Friday 27 July 2012 13:27:39 Christian
Therefore the suggestion to use a timer to close the application.
===
Please spell the exact sequence of calls (incl tuning & starting the
timer, redrawing widgets etc) - in the "thread world" even well known
components appear stranger - me spent a couple of hour just to make
use of TTi
Possibly for such cases there's should be a special form/application
event handler.
2012/7/28, Ivanko B :
> Bad practice, I'd say.
> ===
> Well, really there's a single worker thread in the application but me
> wanted to achieve an universal solution.
>
> Why don't you se
Bad practice, I'd say.
===
Well, really there's a single worker thread in the application but me
wanted to achieve an universal solution.
Why don't you set a flag, send a message or use another means to signal the
main thread that your worker thread has terminated (perhaps
Did you try FTGL?
http://sourceforge.net/projects/ftgl/
--
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.
On Fri, Jul 27, 2012 at 2:58 PM, Martin Schreiber wrote:
>
> Hi,
>
> Because of a new FPC field order optimization it will not be possible in
> future to use cracker classes, please read the threads:
> http://www.mail-archive.com/fpc-devel%40lists.freepascal.org/msg26432.html
> and
> http://www.ma
>
>
> What third party DB components which depend on db.pas do you use? Can we
> drop
> MSEide support for TMemDatset and friends?
>
>
None. It's ok for me.
Cheers.
--
Julio Jiménez Borreguero
--
Live Security Virtual Co
The only stuff I use is what comes with mseide+msegui.
So no special requirements for me.
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed
I don't use TMemDatset and friends.
--
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 inc
On Friday 27 July 2012 13:27:39 Christian Nobel wrote:
> Hi Martin.
>
> Project attached.
>
Below code works for me.
"
procedure tmainfo.opencsvfile(const sender: TObject);
var
y: integer;
begin
if tfiledialog1.execute(fdk_open) = mr_ok then
begin
application.beginwait;
try
y:= 0;
Hallo Ivanko,
Du schriebst am Thu, 26 Jul 2012 16:52:39 +0500:
> Hmm.. me terminate the application in one of its threads.
Bad practice, I'd say.
> What is Your opinion on proper build such kind of programs (serving a
> long running thread & then self-exiting with a delay before exit) ?
Why do
Hi,
Because of a new FPC field order optimization it will not be possible in
future to use cracker classes, please read the threads:
http://www.mail-archive.com/fpc-devel%40lists.freepascal.org/msg26432.html
and
http://www.mail-archive.com/fpc-devel%40lists.freepascal.org/msg26290.html
http://www
On Friday 27 July 2012 14:05:05 Ivanko B wrote:
> The only working code in TheradComp.OnTreminated:
>
> Don't the work of "application.processmessages()" should be done in
> "THreadcomp.OnTreminated" automaticcaly ?
>
The sleep() call is in main thread -> main thread eventloop sleeps -> no gui
act
The only working code in TheradComp.OnTreminated:
//--
btnCancel.enabled:= false;
case RESULTCODETY(ExitCode) of
SUCCESS: begin
lblFinStatus.caption:= 'Завершено успешно.';
lblFinStatus.color:= cl_ltgreen;
pbCurrentFile.value:= 1;
pbTotals
On Friday 27 July 2012 13:50:37 Ivanko B wrote:
> o_autostart,//set enabled for to_single by setting
> interval,
> =
> It can't be set enabled.
>
to_autostart,//set enabled for to_single by setting > interval,
//disabled for ttimer
--
o_autostart,//set enabled for to_single by setting
interval,
=
It can't be set enabled.
pS:
TTimer doesn't help lblStatus & progrssbar to redraw in THreadComp.OnTerminated.
2012/7/27, Martin Schreiber :
> On Friday 27 July 2012 12:23:06 Ivanko B wrote:
>> Ttimer's options are't setta
Following up, I tried on Windows, but got "Unknown Run-time error: 123"
/Christian
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and h
Hi Martin.
Project attached.
Den 26-07-2012 21:05, Martin Schreiber skrev:
> On Thursday 26 July 2012 20:41:48 Christian Nobel wrote:
>> Den 26-07-2012 15:57, Martin Schreiber skrev:
>>> Works for me. Which operating system?
>>
>> Ubuntu 11.04
>> MSE 2.8.2 (but also seen on earlier versions)
>>
On Friday 27 July 2012 12:23:06 Ivanko B wrote:
> Ttimer's options are't settable via ObjInsp but the "leak" one.
>
"
timeroptionty = (to_single, //single shot
to_absolute, //use absolute time (timestamp()) for to_single
//disabled for ttimer
Ttimer's options are't settable via ObjInsp but the "leak" one.
2012/7/26, Ivanko B :
> Self exiting the program or the thread?
> ==
> The program.
>
>
> 2012/7/26, Martin Schreiber :
>> Am 25.07.2012 05:24, schrieb Martin Schreiber:
>>> On Tuesday 24 July 2012 21:11:25 Ivanko B wrote:
>>>
26 matches
Mail list logo