Yep it's copied from actual code written in the night of saturday to sunday ;) Changing || into | solved the problem in Windows XP. Weird it functions on MacosX with || ...
Thanks ! -- erik Mark Dootson <mark.doot...@znix.com> writes: > Hi, > > Is the example your actual code - do you have > > wxFD_SAVE || wxFD_OVERWRITE_PROMPT > > instead of wxFD_SAVE | wxFD_OVERWRITE_PROMPT ? > > I don't see these problems. > If this isn't a simple typo problem perhaps you could post a failing > example. > > Regards > > Mark > > On 09/09/2012 16:37, Erik Colson wrote: >> Hi ! >> >> This code on MacosX does ask if the selected should be replaced. However >> it doesn't if run Windows XP... Any idea why it doesn't ? and how to fix >> this ? >> >> >> my $f = Wx::FileDialog->new( $self, "Budget XLS file", >> "", "", '*.XLS', wxFD_SAVE || >> wxFD_OVERWRITE_PROMPT, >> wxDefaultPosition ); >> >> >> Thanks >> -- >> erik