Thread View: borland.public.cppbuilder.multimedia
2 messages
2 total messages
Started by H. R.
Sun, 01 Jun 2003 18:09
How can I make an ordered periodically message using timer?
Author: H. R.
Date: Sun, 01 Jun 2003 18:09
Date: Sun, 01 Jun 2003 18:09
8 lines
1401 bytes
1401 bytes
Hi, How can I make an Ordered Message Producer in an application and process them? For example suppose that you have a time consuming function in your application (and not respond during its calling) and wana have a timer which send and process some special messages. For example updating a progressbar or animating something.... Creating a timer in a new initialized thread seems to be one of the solution way... But it does not work correctly...You can test it by a simple example written in BCB yourself.... Regards,
Re: How can I make an ordered periodically message using timer?
Author: Maynard Philbrook
Date: Sun, 01 Jun 2003 20:21
Date: Sun, 01 Jun 2003 20:21
15 lines
1989 bytes
1989 bytes
you simply create or start a timer just prior the start of your lengthly code. in your code loop call the Application.ProcessMessages. in onTimer loop update a progress bar or something. when done. kill the timer "H. R." wrote: > Hi, > > How can I make an Ordered Message Producer in an application and process them? > For example suppose that you have a time consuming function in your application (and not respond during its calling) and wana have a timer which send and process some special messages. For example updating a progressbar or animating something.... > Creating a timer in a new initialized thread seems to be one of the solution way... But it does not work correctly...You can test it by a simple example written in BCB yourself.... > > Regards,
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads