jhroyer <firstname.lastname@example.org> wrote:
I’ve a bunch of widgets which have one parent (a pane),
this pane is being destroyed by someone else and I can
catch the Pt_CB_DESTROYED, but how can I move my widgets
out of this pane just before the parent pane is going
to be destroyed ?
Fair warning – I’ve never tried to do this, so what follows is a
bit of a Wild Assed Guess…
I tried to Reparent them to NULL, but they’re flagged
for destruction so it doesn’t work.
Could you explicitly reparent them to the container in which the
pane was contained? Or, at least, some known valid container?
Parenting on NULL was the old Photon 1.1x method of referencing
the Default Parent (aka the most recently created container),
which is replaced by the explicit Pt_DEFAULT_PARENT constant.
I’m not sure that this is going to make much difference,
Any idea ?
It’s likely that the Pt_DESTROYED flag in Pt_ARG_FLAGS is the
problem, but that’s read-only according to the docs, so…
Hmmmm. That wasn’t very helpful, in the end, was it? sigh
Well, maybe Wojtec knows…
QSSL Training Services