Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13486
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: help |
| Date | 2021-11-29 18:50 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <so33tf$9u2$1@dont-email.me> (permalink) |
| References | <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com> <snr031$p0g$1@dont-email.me> <c8058ad6-d0a9-44de-9f6c-030048be0677n@googlegroups.com> |
Hi Aurora,
The AppModal setting depends on what you want
You will always need the Show() of the window.
Then you have 2 options
1 You want the user to do something before you want to continue after
the Show() line. Eg do some settings like selecting an output directory
or agree on the parameters the user will continue on. In that case you
want an AppModal window so it will prevent all other actions in your app
until the user made up it's mind. In this case the window will and
itself with EndWindow(0 in its last line of code where you make sure the
users has set the right parameters. In this case you wil NOT have any
Close() in the method that dis the Show() of the window
2 You just want to have a progress windows. In that case the window need
the be NOT AppModal. The code will proceed after the Show() and by
calling something like oNotice:ShowMyProgress(cTextToShowOnTheWindow)
the progress is shown to the user.
In this case when the job is finished and there is no further progress
to show oNotice:EndWindow() (or another close of the window depending on
the type of window)
Does this help ?
John
Op 28-11-2021 om 11:21 schreef aurora baccio:
> Il giorno venerdì 26 novembre 2021 alle 16:56:18 UTC+1 JohnMartens ha scritto:
>> 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)
>>>
> Thank you for your response, which is extremely important to me.
> Basically you suggest me to insert in the postinit method of the window
> self:SetModal(True).
> In this case the closing of the window happens from the method 'VaBene' that closes with the classic 'EndDialog'.
> The window doesn't remain open and doesn't cause problems.
> Otherwise in the line following the Show() I must insert the closing command.
> Correct?
> Thanks
> Aurora Baccio
>
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