[delphi-en] How to use TTimer as a busy function with timeout?

2005-08-10 Thread kc0fcp
I am trying to create a busy status indicator for a communication process. When data is incoming, events occur at least every 1.3 seconds. Events can occur at intervals shorter than 1.3 seconds, if the messages are short. I want to set a busy status on the incoming data event, and then have a

[delphi-en] Re: How to use TTimer as a busy function with timeout?

2005-08-11 Thread kc0fcp
Chris, Thanks for the fast response. I guess I wasn't clear. I don't have any event or place in the code I could put a busy := false statement. The not busy state is only indirectly inferred when the busy events stop happening for 1.3 seconds. That's why I had my NotBusy procedure triggered by

[delphi-en] Set TListbox scrolling to keep most recently added item visible?

2005-09-05 Thread kc0fcp
Is there a property or technique that can modify the TListBox vertical scrolling behavior so that the most recently added item is visible at the bottom of the window? The default behavior is that the scrolling thumb goes to the top of the scroll bar (the start of the list) whenever a new item is

[delphi-en] TFileStream - How to test for End-Of-File condition?

2005-12-21 Thread kc0fcp
In C++, the ifstream class has a property eof, that seems to be the default property. I'm porting come C++ code to Delphi, and it has a form like: ifstream ifs( pszFile, ios::binary|ios::nocreate|ios::in ); if( ! ifs ) { handle error} ifs.read( (BYTE*)structure,

[delphi-en] TFileStream - reading into dynamic array

2005-12-22 Thread kc0fcp
Thanks to Rob and Jangita for their answers on my previous question. It is obvious in hindsight. Now that I have the EOF issue solved, I find a new problem. It seems that TFileStream.read does not work with dynamic arrays. This code does not work. b_read is always zero, and nothing is read from

[delphi-en] Controlling Powerpoint from Delphi app

2006-12-23 Thread kc0fcp
I'm working on a Delphi 7 app that displays a small window in the foreground of a running Powerpoint presentation. My app works fine, except the Powerpoint show pauses for as long as my app is running, and I need to have the show continue to cycle through the slides. I had one suggestion to use

[delphi-en] Re: Controlling Powerpoint from Delphi app

2006-12-23 Thread kc0fcp
Rob, Thanks for the reply. My program is not started by PPT, nor does it start PPT. The application is in a lobby kiosk. A PPT slide show runs in an infinite loop. Twice a day, my app is supposed to appear on top of the running PPT slide show and announce an event and show a countdown timer. When

[delphi-en] Re: Controlling Powerpoint from Delphi app

2006-12-26 Thread kc0fcp
Rob and all, I solved the problem (with some help from MikeR on the progdigy.com forum) by using a combination of making my window Topmost (HWND_TOPMOST), and finding the the Powerpoint Show's handle to call windows.SetForegroundWindow(h). That sets Powerpoint to foreground with every timer tick