Create callback?

In Photon do we have ‘create’ callback for PtWidgets?
Idea is to UnRealize some widgets on creation. Application is done
with PhAB.

Widgets have realized callback, but unrealizing widget in it’s realized
callback wouldn’t be really what I’m looking for… :slight_smile:


M. Tavasti / tavasti@iki.fixx / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

Use the Raw Event callback and check for the Unrealize event.

M. Tavasti <tavasti@iki.fixx> wrote in message
news:m2em3gno10.fsf@akvavitix.vuovasti.com

In Photon do we have ‘create’ callback for PtWidgets?
Idea is to UnRealize some widgets on creation. Application is done
with PhAB.

Widgets have realized callback, but unrealizing widget in it’s realized
callback wouldn’t be really what I’m looking for… > :slight_smile:


M. Tavasti / > tavasti@iki.fixx > / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

“Ivan Bannon” <ivan.bannon@rjginc.com> writes:

In Photon do we have ‘create’ callback for PtWidgets?
Idea is to UnRealize some widgets on creation. Application is done
with PhAB.
Widgets have realized callback, but unrealizing widget in it’s realized
callback wouldn’t be really what I’m looking for… > :slight_smile:

Use the Raw Event callback and check for the Unrealize event.

I think one of us is missing other’s point?

Ok, I try to make mine clear, tell me if I’m missing your point.

I want to have widget to resize itself, set correct labels/bitmaps
(for customisation) when it’s created. Some widgets have to be
Unrealized in the beginning. It would be handy to do this
unrealisation in same callback. But if I use Realized callback for
doing this unrealize-thing, won’t get desired effect. That’s because
when widget have to be realized, realized callback is performing it’s
operations again, including unrealize. Of course I could keep track of
which widgets are having callback called already once, but I don’t
like that solution.

Therefore, Create-type callback would be needed. Is it possible to
catch create-event with Raw-callback?


M. Tavasti / tavasti@iki.fixx / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

In article <m2zom3masq.fsf@akvavitix.vuovasti.com>,
“M. Tavasti” <tavasti@iki.fixx> wrote:

“Ivan Bannon” <> ivan.bannon@rjginc.com> > writes:

In Photon do we have ‘create’ callback for PtWidgets?
Idea is to UnRealize some widgets on creation. Application is done
with PhAB.
Widgets have realized callback, but unrealizing widget in it’s
realized
callback wouldn’t be really what I’m looking for… > :slight_smile:

Use the Raw Event callback and check for the Unrealize event.

I think one of us is missing other’s point?

Ok, I try to make mine clear, tell me if I’m missing your point.

I want to have widget to resize itself, set correct labels/bitmaps
(for customisation) when it’s created. Some widgets have to be
Unrealized in the beginning. It would be handy to do this
unrealisation in same callback. But if I use Realized callback for
doing this unrealize-thing, won’t get desired effect. That’s because
when widget have to be realized, realized callback is performing it’s
operations again, including unrealize. Of course I could keep track of
which widgets are having callback called already once, but I don’t
like that solution.

Therefore, Create-type callback would be needed. Is it possible to
catch create-event with Raw-callback?

I guess there’s no really good solution for your problem… I don’t
know for sure, but I didn’t find any way to catch something like a
creation event. I had a similar problem here, that’s to resize, setup
callbacks, place labels and point place to draw it. My solution isn’t
that good, but I created a Widget Database and then, every window has
dummy widgets with user_data pointing what’s its behaviour. Then, I ran
a function that would setup these windows on realize callback.
Another way could be to put all initialization code on realize callback
of main window, but I don’t know if it will work nor if it’s possible
to do so…


Ricardo K. Ashikawa


Sent via Deja.com http://www.deja.com/
Before you buy.