Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Let the machine do the dirty work. -- "Elements of Programming Style", Kernighan and Ritchie


devel / comp.lang.clipper.visual-objects / help

SubjectAuthor
* helpaurora baccio
+* Re: helpJohnMartens
|`* Re: helpaurora baccio
| `- Re: helpJohnMartens
`* Re: helpWolfgang Riedmann
 `* Re: helpaurora baccio
  `- Re: helpWolfgang Riedmann

1
help

<9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=980&group=comp.lang.clipper.visual-objects#980

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:6214:27ca:: with SMTP id ge10mr24883566qvb.46.1637941137947;
Fri, 26 Nov 2021 07:38:57 -0800 (PST)
X-Received: by 2002:ac8:4155:: with SMTP id e21mr25076262qtm.312.1637941137752;
Fri, 26 Nov 2021 07:38:57 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Fri, 26 Nov 2021 07:38:57 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=93.65.240.101; posting-account=mGyhkgoAAACGngz8cxCfTmITiU5OjECD
NNTP-Posting-Host: 93.65.240.101
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com>
Subject: help
From: aurorabaccio@gmail.com (aurora baccio)
Injection-Date: Fri, 26 Nov 2021 15:38:57 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 17
 by: aurora baccio - Fri, 26 Nov 2021 15:38 UTC

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)

Re: help

<snr031$p0g$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=981&group=comp.lang.clipper.visual-objects#981

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: martens@tennishulp.info (JohnMartens)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: help
Date: Fri, 26 Nov 2021 16:56:19 +0100
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <snr031$p0g$1@dont-email.me>
References: <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 26 Nov 2021 15:56:17 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4d0f386248c4a5286ca2273b293b12e0";
logging-data="25616"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SE2LkZYQB5Ot1p2aU1UHmniFNV9RMTjY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:8B5ss/f7hX47Tw/0IuYrbM94/1s=
In-Reply-To: <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com>
Content-Language: nl
 by: JohnMartens - Fri, 26 Nov 2021 15:56 UTC

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)
>

Re: help

<j0f6uoFm8ufU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=982&group=comp.lang.clipper.visual-objects#982

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: wriedmann@gmail.com (Wolfgang Riedmann)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: help
Date: Sat, 27 Nov 2021 18:07:36 +0100
Lines: 44
Message-ID: <j0f6uoFm8ufU1@mid.individual.net>
References: <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Trace: individual.net xhvNozq9xP+61BIr8NDDvAHfFdxLHkvtlyUwW4Je/x5KYvdRE=
Cancel-Lock: sha1:GwGFG9NsGw18/2wEglEVv3OKw60=
User-Agent: XanaNews/1.18.1.6
 by: Wolfgang Riedmann - Sat, 27 Nov 2021 17:07 UTC

Hi Aurora,

> I have a question to ask, due to lack of documentation on VO.

I'm really sorry, but your question has nothing to do with lack of
documentation in VO.

If you would close a datawindow, use the method EndWindow(), and if
your window is a dialogwindow, you have to use the method EndDialog().

So you have to write

self:EndDialog( IDOK )

if DemPagante_Maschera is a DialogWindow, or

self:EndWindow()

if DemPagante_Maschera is a DataWindow.

Wolfgang

> 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)

--

Re: help

<c8058ad6-d0a9-44de-9f6c-030048be0677n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=983&group=comp.lang.clipper.visual-objects#983

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ac8:4155:: with SMTP id e21mr35889178qtm.312.1638094906960;
Sun, 28 Nov 2021 02:21:46 -0800 (PST)
X-Received: by 2002:a05:6214:2021:: with SMTP id 1mr23034195qvf.75.1638094906758;
Sun, 28 Nov 2021 02:21:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Sun, 28 Nov 2021 02:21:46 -0800 (PST)
In-Reply-To: <snr031$p0g$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=109.116.207.177; posting-account=mGyhkgoAAACGngz8cxCfTmITiU5OjECD
NNTP-Posting-Host: 109.116.207.177
References: <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com> <snr031$p0g$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c8058ad6-d0a9-44de-9f6c-030048be0677n@googlegroups.com>
Subject: Re: help
From: aurorabaccio@gmail.com (aurora baccio)
Injection-Date: Sun, 28 Nov 2021 10:21:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 66
 by: aurora baccio - Sun, 28 Nov 2021 10:21 UTC

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

Re: help

<2a24bf13-b6c7-407b-beae-605499e7c3b5n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=984&group=comp.lang.clipper.visual-objects#984

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:6214:e49:: with SMTP id o9mr22908263qvc.71.1638095122776;
Sun, 28 Nov 2021 02:25:22 -0800 (PST)
X-Received: by 2002:a05:620a:752:: with SMTP id i18mr32457648qki.453.1638095122655;
Sun, 28 Nov 2021 02:25:22 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Sun, 28 Nov 2021 02:25:22 -0800 (PST)
In-Reply-To: <j0f6uoFm8ufU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=109.116.207.177; posting-account=mGyhkgoAAACGngz8cxCfTmITiU5OjECD
NNTP-Posting-Host: 109.116.207.177
References: <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com> <j0f6uoFm8ufU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2a24bf13-b6c7-407b-beae-605499e7c3b5n@googlegroups.com>
Subject: Re: help
From: aurorabaccio@gmail.com (aurora baccio)
Injection-Date: Sun, 28 Nov 2021 10:25:22 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 43
 by: aurora baccio - Sun, 28 Nov 2021 10:25 UTC

Il giorno sabato 27 novembre 2021 alle 18:07:39 UTC+1 Wolfgang Riedmann ha scritto:
> Hi Aurora,
> > I have a question to ask, due to lack of documentation on VO.
> I'm really sorry, but your question has nothing to do with lack of
> documentation in VO.
>
> If you would close a datawindow, use the method EndWindow(), and if
> your window is a dialogwindow, you have to use the method EndDialog().
>
> So you have to write
>
> self:EndDialog( IDOK )
>
> if DemPagante_Maschera is a DialogWindow, or
>
> self:EndWindow()
>
> if DemPagante_Maschera is a DataWindow.
>
> Wolfgang
> > 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)
> --

Dear Mr. Riedman,
what does self:enddialog( IDOK) mean?
The question refers to the word IDOK.
Does it mean the name assigned to the window ?
thanks
Aurora Baccio

Re: help

<j0hf24F4qh1U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=985&group=comp.lang.clipper.visual-objects#985

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: wriedmann@gmail.com (Wolfgang Riedmann)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: help
Date: Sun, 28 Nov 2021 14:38:12 +0100
Lines: 49
Message-ID: <j0hf24F4qh1U1@mid.individual.net>
References: <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com> <j0f6uoFm8ufU1@mid.individual.net> <2a24bf13-b6c7-407b-beae-605499e7c3b5n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Trace: individual.net wmaS5/w4tNHc38JbBj9sKgroilr0do+bNJ93nMOTylw+PstRQ=
Cancel-Lock: sha1:NfrIAuBQRu8PfZ2bMY7InJFhcDA=
User-Agent: XanaNews/1.18.1.6
 by: Wolfgang Riedmann - Sun, 28 Nov 2021 13:38 UTC

Hi Aurora,

> what does self:enddialog( IDOK) mean?
> The question refers to the word IDOK.
> Does it mean the name assigned to the window ?

the method EndDialog() of the dialogWindow class has one numeric
parameter.
This parameter is assigned to the :Result instance variable.

IDOK is a constant that has the value of 1, whereas IDCANCEL has the
value of 2.

This is a sample:

class MyDialog inherit DialogWindow

method OkButton() class MyDialog

self:EndDialog( IDOK )

return nil

method CancelButton() class MyDialog

self:EndDialog( IDCANCEL )

return nil

......
local oDlg as MyDialog

oDlg := MyDialog{ self }
oDlg:Show()
if oDlg:Result == IDOK
// do something because the dialog was closed with the OK button
endif

HTH

Wolfgang

--

Re: help

<so33tf$9u2$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=986&group=comp.lang.clipper.visual-objects#986

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: martens@tennishulp.info (JohnMartens)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: help
Date: Mon, 29 Nov 2021 18:50:38 +0100
Organization: A noiseless patient Spider
Lines: 90
Message-ID: <so33tf$9u2$1@dont-email.me>
References: <9b517af8-3f8a-4af4-a948-fbafd0b548b8n@googlegroups.com>
<snr031$p0g$1@dont-email.me>
<c8058ad6-d0a9-44de-9f6c-030048be0677n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 29 Nov 2021 17:50:39 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="89914bd83638b53828f70a8f84dd5f00";
logging-data="10178"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KQRtGWYl5BAt63yHISdvV2a0iLhiYxcM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:mBK6EEcCZcwZ3oiAkNufzYy6JRs=
In-Reply-To: <c8058ad6-d0a9-44de-9f6c-030048be0677n@googlegroups.com>
Content-Language: nl
 by: JohnMartens - Mon, 29 Nov 2021 17:50 UTC

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
>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor