Having a what is probably a simple problem

Started by dacarle, October 16, 2007, 07:33:29 PM

Previous topic - Next topic

dacarle

I have a small GUI application which is basically a text box to display status messsages and a progress bar to provide visually of where the application is.

Part of the program is using

Shell Environ$("COMSPEC")+" /C "+FOUTFILE, 6

which I am using to capture an accurate directory because of bugs using the DIR$ function (does not always return all the files).

After the above shell statement (which is doing what it is supposed to do), the textbox and progress bars no longer update, even though the rest of the program works through to completion doing what it should be doing.

All thoughts or direction appreciated.

Regards.

-David

dacarle

Does anyone have a MessageBox that can time out automatically after X seconds that works with Firefly.  A MessageBox seems to be the only way I can come up with to return focus back to the application.

-David

TechSupport

Hi David,

It is almost impossible for me to conclude why your application is not responding correctly. If it all bolis down to the fact that the FireFly form does not have focus then maybe try calling:


SetActiveWindow hWndForm


You can even set the focus to your TextBox if you wish:


SetFocus HWND_FORM1_TEXTBOX1




dacarle

Thanks, Paul.

Always good to hear from you.

-David

dacarle

And for the record.  Paul - You Rock!

-David

John Montenigro

Hi David,

I'm just getting back to PB programming after a year-long break, so I'm trying to catch up a bit in various developer's forums...

It's been awhile since you posted this, so I'm going to assume Paul's tip helped.

However, with regard to your question about a Message box that has a timeout (a very useful addition to anyone's toolkit), I recall that Michael Mattias had posted specialized code for a message box on the PB Source Code forum. It goes back a few years, but I remember using it with an embedded hypertext link... I believe others have also posted code for a "splash screen" with a timer function.

Sorry I can't provide direct links at this time, but I'm sure they'd both turn up in a search of the forum, or in POFFS...

-John M  (Montclair)