Hi Michael,
I have come across the same situation earlier, AskDesignateFile() nav
API holds up the dlg if we try to replace, In this case i found the
following solution:
Set the dialogOptionFlag = kNavDontConfirmReplacement
and check for designator.IsReplacing() return value, according to the
return value you can put your own alert instead of Nav defualt error
message. So you can have the full control on your own alert . See if
this can help you.
Michael Fielitz wrote:
> <groups@[EMAIL PROTECTED]
> wrote:
>
> > Michael Fielitz schrieb:
> >
> > > Hello,
> > >
> > > If a do***ent is saved with AskDesignateFile() and the user chose to
> > > replace the file with one of the same name, the contained panes
inside
> > > the do***ents view won't get activated afterwards. Is this a bug in
> > > Navigation Services or does a workaround in PowerPlant exists?
> > > To illustrate the problem, The generic PowerPlant Do***ent App can
be
> > > used: Just select some ****tion of the text and save the do***ent
twice
> > > as "untitled". The selected text is still outlined but not inverted
as
> > > it should be!
> >
> > Have you checked the duty chain with the PP Debugging facilities (PP
> > Debug menu)?
> > I guess it's screwed up after the dialog..
>
> Thank you for advising this. Though the _Debugging Cl***** were _In
> Progress at least in my CW Pro 8 install, I'll try to put them into my
> project. I should have done so earlier, but there's not much
> do***entation beside the mactech article back in 1999.
>
> Michael


|