Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13480
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: help |
| Date | 2021-11-26 16:56 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <snr031$p0g$1@dont-email.me> (permalink) |
| References | <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com> |
Hi Aurora,
Ik think that the user will close the NoticeReceipt_Mask by clicking the
OK button and that the NoticeReceipt_Mask is app modal. In that case the
window is closed by the user and the code will procees after the
oNotice:Show() line with the next thing to do.
In this case oNotice:Close() after the Show() line will cause problems
because it tries to close a window that is already closed by the user.
If the NoticeReceipt_Mask window is not app modal it will be on the
users screen after the show but your VaBene() method will proceed and
the NoticeReceipt_Mask window might not be closed at all if you do not
call oNotice:Close() that window
So it depends on you. Make the window app modal so the user must press
OK to start the print. Or make it just a progress window which cannot me
closed by the user and has Show() and Close() in tha VaBene() method.
Status updates on the progress in VaBene() could be shown if
NoticeReceipt_Mask has a ShowProgress() mathod that shows the progress
info on it's window
Is this of any help ?
John
Op 26-11-2021 om 16:38 schreef aurora baccio:
> good afternoon.
> I have a question to ask, due to lack of documentation on VO.
> method VaBene() class DemPagante_Maschera
>
> oNotice := NoticeReceipt_Mask{self:Owner,aParam}
> FabCenterWindow(oNotice)
> oNotice:Show()
>
> In this particular case I alert the user that a receipt is about to be printed, indicating the patient's name and the amount.
> And it starts via the classic 'Okay" button. At the end there is the line
> self:Dialog()
> which takes me back to the Vabene method of the DemPagante_Maschera Class
> Is it correct to write in this method
> oNotice:Close() ?
> I hope I managed to explain myself.
> Thanks
>
> Translated with www.DeepL.com/Translator (free version)
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
help aurora baccio <aurorabaccio@gmail.com> - 2021-11-26 07:38 -0800
Re: help JohnMartens <martens@tennishulp.info> - 2021-11-26 16:56 +0100
Re: help aurora baccio <aurorabaccio@gmail.com> - 2021-11-28 02:21 -0800
Re: help JohnMartens <martens@tennishulp.info> - 2021-11-29 18:50 +0100
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-11-27 18:07 +0100
Re: help aurora baccio <aurorabaccio@gmail.com> - 2021-11-28 02:25 -0800
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-11-28 14:38 +0100
csiph-web