Marc Lupien <marclupien@hotmail.com> wrote:
“Wojtek Lerch” <> wojtek@qnx.com> > wrote in message
news:935gb9$ktg$> 1@nntp.qnx.com> …
Steve Reid <> stever@qnx.com> > wrote:
Marc Lupien <> marclupien@hotmail.com> > wrote:
: If this is the case then this behaviour is NOT documented and it
really
: should be because it’s contrary to the normal behaviour of a widget
where
: the creator keeps control of the destruction…
Don’t you consider it normal behaviour that clicking on a window’s Close
button also makes the PtWindow destroy itself? >
Yes Wojtek I consider it normal when I click a close button on a window,
because there are flags all over the place for PtWindow that allow the
programmer to specify what behaviour should be managed automatically and
what behaviour should not… It can be assumed easily… Sorry but your
comparison doesn’t stand in my opinion.
I don’t know…
Each of the two widgets we’re talking about has a button that makes
the widget disappear from the screen.
The docs for PtWindow talks about closing the window a few times
but I haven’t found it explained anywhere that closing means that
the widget is being destroyed rather than, for instance, just
unrealized.
The docs for PtMessage don’t mention either closing or destroying,
but I would be surprised if you said that you didn’t think that the
dialog is being closed when it disappears after you click on its
button.
So I would say that the analogy is pretty good…
BTW, I’m not being entirely serious here (did you notice the “;-)” in my
previous post?) – I definitely agree with you that it would be good to
mention in the docs that the widgets destroy themselves when you close
them by clicking on their buttons. But still, I think the main
difference between the two widgets’ behaviour is that we’re all used to
what PtWindow does simply because we use it a lot more often than
PtMessage…
I’m sorry, but I was just frustrated because I lost close to half a day
figuring this one out. Maybe I’m just sloooowww.
Another thing that bit you is that 1.14 is more sensitive to attempts to
destroy a widget twice – your code didn’t crash under 1.13…
I’m sure you’re all doing your best. I know that putting out proper
documentation is very hard and that you bust your chops trying to put out
good product, which you do! But if it was not for the source code for
PtMessage that I found lying in a photon toolkit directory somewhere, I
would never have suspected it and would have lost a lot more time.
Anyway, thanks again for all the good work, sincerely, sometime things falls
between cracks and that’s normal.
Bye, no angry feeling.
Good, I was worried for a few seconds…
–
Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.