[wx-dev] Re: #9520: Fix to allow repeated use of wxFileDialog object
wxTrac
noreply at wxsite.net
Mon Jun 2 07:02:52 PDT 2008
Ticket URL: <http://trac.wxwidgets.org/ticket/9520#comment:3>
#9520: Fix to allow repeated use of wxFileDialog object
----------------------+-----------------------------------------------------
Reporter: doornik | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone:
Component: wxMac | Version: 2.8.x
Resolution: | Keywords: wxFileDialog
Blockedby: | Patch: 1
Blocking: |
----------------------+-----------------------------------------------------
Comment(by doornik):
Replying to [comment:2 vadz]:
> FWIW I'm not sure if we want to support calling ShowModal() on the same
dialog multiple times. This is hardly ever being tested and I wouldn't be
surprised at all if it doesn't work with other dialogs/under the other
ports too.
>
> This is not a reason not to apply the patch, of course, but just a word
of warning.
I see no reason why it shouldn't be allowed, for example: show dlg -->
problem --> offer dlg again. Also, the documentation doesn't say that
calling this function twice is discouraged.
In my case I have an application which pre-creates a set of dialogs on the
heap, and then uses them as required. That works fine on wxMSW and wxMAC.
(As an aside: great work on wxMAC - it's quite amazing to see my program
working there, and looking great.)
--
Ticket URL: <http://trac.wxwidgets.org/ticket/9520#comment:3>
More information about the wx-dev
mailing list