Callback for Done code type

Hi?

As you know, Callback function with Done code type is supported by PhAB
tool.
then, if the feature such as Done code type must be used in my source code,
not PhAB tool, what library is used and how to be used ?

If I understand you question, it’s pretty simple.

In PhAB change you Done callback to a Code callback. Give it the name of
the code function you want Photon to call and it will call it.

Or, am I misunderstanding what you want to do here?

“gyejin” <gyejin@haco.co.kr> wrote in message
news:aoijq9$s2r$1@nntp.qnx.com

Hi?

As you know, Callback function with Done code type is supported by PhAB
tool.
then, if the feature such as Done code type must be used in my source
code,
not PhAB tool, what library is used and how to be used ?

\

I wish to implement the feature of Done type callback in my any code.
of course, PhAB tool support Don type callback, User need not care how to
implement.

but I want to implement the feature of Done in my any code when any event
comes out, not using PhAB tool, namely Non-phonton.

so, I wonder what functions of libarary is used for Done feature.

thank you…


“Bill Caroselli (Q-TPS)” <QTPS@EarthLink.net> wrote in message
news:aokf5t$svp$1@inn.qnx.com

If I understand you question, it’s pretty simple.

In PhAB change you Done callback to a Code callback. Give it the name of
the code function you want Photon to call and it will call it.

Or, am I misunderstanding what you want to do here?

“gyejin” <> gyejin@haco.co.kr> > wrote in message
news:aoijq9$s2r$> 1@nntp.qnx.com> …
Hi?

As you know, Callback function with Done code type is supported by PhAB
tool.
then, if the feature such as Done code type must be used in my source
code,
not PhAB tool, what library is used and how to be used ?



\

Oh. So you just want to close the dialog window and make it go away?

I use PtDestroyWidget( ABW_dialog_name );

But I’m still coding for QNX 4. I haven’t written any photon apps for QNX6
yet.

“gyejin” <gyejin@haco.co.kr> wrote in message
news:aoo44d$cfp$1@nntp.qnx.com

I wish to implement the feature of Done type callback in my any code.
of course, PhAB tool support Don type callback, User need not care how to
implement.

but I want to implement the feature of Done in my any code when any event
comes out, not using PhAB tool, namely Non-phonton.

so, I wonder what functions of libarary is used for Done feature.

thank you…

“Bill Caroselli (Q-TPS)” <QTPS@EarthLink.net> wrote in message
news:aopdva$lj4$1@inn.qnx.com

Oh. So you just want to close the dialog window and make it go away?

I use PtDestroyWidget( ABW_dialog_name );

So can we be assured that it is legal/safe for a widget to destroy itself,
which is indirectly what will happen with a ‘done’ button attached to a
dialog. This has all the uncertainties of a ‘delete this’ statement in C++.

But I’m still coding for QNX 4. I haven’t written any photon apps for
QNX6
yet.

You don’t know what you’re missing (or maybe you’re being sensible and
avoiding it). :sunglasses:)

Jim

“gyejin” <> gyejin@haco.co.kr> > wrote in message
news:aoo44d$cfp$> 1@nntp.qnx.com> …
I wish to implement the feature of Done type callback in my any code.
of course, PhAB tool support Don type callback, User need not care how
to
implement.

but I want to implement the feature of Done in my any code when any
event
comes out, not using PhAB tool, namely Non-phonton.

so, I wonder what functions of libarary is used for Done feature.

thank you…

Jim Douglas <jim@dramatec.co.uk> wrote:

“Bill Caroselli (Q-TPS)” <> QTPS@EarthLink.net> > wrote in message
news:aopdva$lj4$> 1@inn.qnx.com> …
Oh. So you just want to close the dialog window and make it go away?

I use PtDestroyWidget( ABW_dialog_name );

So can we be assured that it is legal/safe for a widget to destroy itself,
which is indirectly what will happen with a ‘done’ button attached to a
dialog. This has all the uncertainties of a ‘delete this’ statement in C++.

A widget’s dead body is guaranteed to hang around at least until all its
callbacks, and callbacks of any of its children, have returned. In
Photon 1.14, it might stay around much longer than that.


Wojtek Lerch QNX Software Systems Ltd.