Photon editor

I use ‘ped’ to spawn a file from my photon application. If the file is
really large , it takes a while to open. I’d like to display a message
asking the user to wait till the file is open and visible. How can I do
this?

Thanks in advance,
Shashank

Shashank <sbalijepalli@precitech.com> wrote:

S > I would appreciate any kind of help in this matter


S > Shashank

S > “Shashank” <sbalijepalli@precitech.com> wrote in message
S > news:c24pcc$6kv$1@inn.qnx.com

I use ‘ped’ to spawn a file from my photon application. If the file is
really large , it takes a while to open. I’d like to display a message
asking the user to wait till the file is open and visible. How can I do
this?

I don’t think your photon application can know when ped has finished
reading the file.

However, you might try something like:

  1. create a simple dialog window that says
    “Reading File - Please Wait”
  2. After a certain period of time, unrealize that dialog window.

It won’t necessarilly be sync’ed to reading the file, but it will help.

I would appreciate any kind of help in this matter


Shashank

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:c24pcc$6kv$1@inn.qnx.com

I use ‘ped’ to spawn a file from my photon application. If the file is
really large , it takes a while to open. I’d like to display a message
asking the user to wait till the file is open and visible. How can I do
this?

Thanks in advance,
Shashank

Thanks for your previous reply.

In my case, the “ped” editor overlaps the photon application. Maybe I can
display a message asking the user to wait until my photon application gets
overlapped by the editor.
Is there a way of achieveing this?

Shashank


“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:c2559i$fe5$1@inn.qnx.com

Shashank <> sbalijepalli@precitech.com> > wrote:

S > I would appreciate any kind of help in this matter


S > Shashank

S > “Shashank” <> sbalijepalli@precitech.com> > wrote in message
S > news:c24pcc$6kv$> 1@inn.qnx.com> …
I use ‘ped’ to spawn a file from my photon application. If the file is
really large , it takes a while to open. I’d like to display a message
asking the user to wait till the file is open and visible. How can I do
this?



I don’t think your photon application can know when ped has finished
reading the file.

However, you might try something like:

  1. create a simple dialog window that says
    “Reading File - Please Wait”
  2. After a certain period of time, unrealize that dialog window.

It won’t necessarilly be sync’ed to reading the file, but it will help.

Shashank <sbalijepalli@precitech.com> wrote:
S > Thanks for your previous reply.

S > In my case, the “ped” editor overlaps the photon application. Maybe I can
S > display a message asking the user to wait until my photon application gets
S > overlapped by the editor.
S > Is there a way of achieveing this?

S > Shashank


There may be a way of getting a Window Manager callback that says that
your window is not on top any more. BUT . . .

I believe that ped will appear to be on top almost immediately, even
while it is still reading the file. You can certainly try it. It will
take some trial and error and there are no guarantees.

But, I think you can create the dialog window to FORCE ON TOP of all
windows.

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:c2559i$fe5$1@inn.qnx.com

Shashank <> sbalijepalli@precitech.com> > wrote:

S > I would appreciate any kind of help in this matter


S > Shashank

S > “Shashank” <> sbalijepalli@precitech.com> > wrote in message
S > news:c24pcc$6kv$> 1@inn.qnx.com> …
I use ‘ped’ to spawn a file from my photon application. If the file is
really large , it takes a while to open. I’d like to display a message
asking the user to wait till the file is open and visible. How can I do
this?



I don’t think your photon application can know when ped has finished
reading the file.

You could monitor ped process state, should be in receive state for let’s

say .1 seconds, you can slow poll the status. That’s a very ugly hack. Or
wait till ped doesn’t have any open file, etc…

You could also just ask for the source and add a dlg wait box yourself, much
cleaner and no guess work.

E.


Mario Charest postmaster@127.0.0.1 wrote:

“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:c2559i$fe5$> 1@inn.qnx.com> …
Shashank <> sbalijepalli@precitech.com> > wrote:

S > I would appreciate any kind of help in this matter


S > Shashank

S > “Shashank” <> sbalijepalli@precitech.com> > wrote in message
S > news:c24pcc$6kv$> 1@inn.qnx.com> …
I use ‘ped’ to spawn a file from my photon application. If the file is
really large , it takes a while to open. I’d like to display a message
asking the user to wait till the file is open and visible. How can I do
this?



I don’t think your photon application can know when ped has finished
reading the file.

You could monitor ped process state, should be in receive state for let’s
say .1 seconds, you can slow poll the status. That’s a very ugly hack. Or
wait till ped doesn’t have any open file, etc…

Erick Muis
Hardware Group
QNX Software Systems Ltd.
Email: emuis at qnx.com