Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

To downgrade the human mind is bad theology. -- C. K. Chesterton


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

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

1
help

<f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:191f:b0:763:951b:3ef1 with SMTP id bj31-20020a05620a191f00b00763951b3ef1mr30305qkb.15.1688391958827;
Mon, 03 Jul 2023 06:45:58 -0700 (PDT)
X-Received: by 2002:a63:200c:0:b0:553:9efa:1159 with SMTP id
g12-20020a63200c000000b005539efa1159mr5861766pgg.0.1688391958538; Mon, 03 Jul
2023 06:45:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.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: Mon, 3 Jul 2023 06:45:57 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:827:3e94:ec01:cd09:3d30:1887:b59e;
posting-account=mGyhkgoAAACGngz8cxCfTmITiU5OjECD
NNTP-Posting-Host: 2a01:827:3e94:ec01:cd09:3d30:1887:b59e
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com>
Subject: help
From: aurorabaccio@gmail.com (aurora baccio)
Injection-Date: Mon, 03 Jul 2023 13:45:58 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1641
 by: aurora baccio - Mon, 3 Jul 2023 13:45 UTC

good morning
two questions that i know stupid but i don't know how to solve.
number one: how to raise in vo a number to power ? i.e. 83 to the -179 how to do it ?
number two: notify() method.
i have to create the dispatch method to make the single line edit understand that it has to display the value of a calculation,
basically I have a data windows that contains the list of suppliers and a single line edit named supplier balance. I want the calculation the supplier balance via notify() but for that I need to broadcast to notify the supplier code. I cannot do this.
Thanks for the answers
Aurora Baccio

Re: help

<065a87bd-7f3c-42c8-a92f-32d653526da7n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:2687:b0:767:33c2:eef with SMTP id c7-20020a05620a268700b0076733c20eefmr49331qkp.7.1688570823522;
Wed, 05 Jul 2023 08:27:03 -0700 (PDT)
X-Received: by 2002:a17:902:ba98:b0:1b5:3d3f:9689 with SMTP id
k24-20020a170902ba9800b001b53d3f9689mr1580093pls.6.1688570823178; Wed, 05 Jul
2023 08:27:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.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: Wed, 5 Jul 2023 08:27:02 -0700 (PDT)
In-Reply-To: <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <065a87bd-7f3c-42c8-a92f-32d653526da7n@googlegroups.com>
Subject: Re: help
From: dlzc1@cox.net (dlzc)
Injection-Date: Wed, 05 Jul 2023 15:27:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1734
 by: dlzc - Wed, 5 Jul 2023 15:27 UTC

Dear aurora baccio:

On Monday, July 3, 2023 at 6:45:59 AM UTC-7, aurora baccio wrote:
> good morning
> two questions that i know stupid but i don't know how to solve.
> number one: how to raise in vo a number to power ? i.e. 83 to the -179 how to do it ?

To the extent that VO carries the genes of Clipper 5.3:
https://www.itlnet.net/programming/program/Reference/c53g01c/ng113e1d.html
.... and ...
https://www.itlnet.net/programming/program/Reference/c53g01c/ng11b607.html

> number two: notify() method.

Sorry, I cannot help here.

David A. Smith

Re: help

<kh4us5Fg3o5U1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!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: Tue, 11 Jul 2023 14:05:24 +0200
Lines: 48
Message-ID: <kh4us5Fg3o5U1@mid.individual.net>
References: <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Trace: individual.net vVhTJJXV1UEbclUIEf1t/QCbUK5G3pPMDZv4EjPXRMItdyU3s=
Cancel-Lock: sha1:0r8klLSs+i2hZGP3/+2z5+Bfa1o= sha256:cYU7+IgxiisuJIiJYdoVQNxZnZopXULf4LIMYlFdeSA=
User-Agent: XanaNews/1.18.1.6
 by: Wolfgang Riedmann - Tue, 11 Jul 2023 12:05 UTC

Buon giorno Aurora,

> i have to create the dispatch method to make the single line edit
> understand that it has to display the value of a calculation,
> basically I have a data windows that contains the list of suppliers
> and a single line edit named supplier balance. I want the calculation
> the supplier balance via notify() but for that I need to broadcast to
> notify the supplier code.

it may be a bit hard to explain.

The result of your calculation should be put into a variable of your
DBServer class, maybe like this:

class MySupplier
protect nBalance as float

access Balance class MySupplier

return nBalance

method CalcBalance() class MySupplier

nBalance := 2 * 4
Super:Notify( NOTIFYFIELDCHANGE, #Balance )

return nil

And in your window you have a code like this:

method Notify( kNotifyName, uDescription ) class SupplierWindow
do case
case kNotifyName == NOTIFYRECORDCHANGE
oDCBalance:Value := self:Server:Balance
case kNotifyName == NOTIFYFIELDCHANGE .and. uDescription == #Balance
oDCBalance:Value := self:Server:Balance
endcase

return super:Notify( kNotifyName, uDescription )

HTH

Wolfgang

--

Re: help

<d528ed34-85eb-4d64-b6d6-cddf575cd8c1n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:6214:932:b0:635:fa5d:cb8d with SMTP id dk18-20020a056214093200b00635fa5dcb8dmr100949qvb.13.1689783486535;
Wed, 19 Jul 2023 09:18:06 -0700 (PDT)
X-Received: by 2002:a05:6870:35c5:b0:1b0:460c:548b with SMTP id
c5-20020a05687035c500b001b0460c548bmr17751059oak.3.1689783486296; Wed, 19 Jul
2023 09:18:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.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: Wed, 19 Jul 2023 09:18:05 -0700 (PDT)
In-Reply-To: <kh4us5Fg3o5U1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:827:3e94:ec01:f192:389a:8b05:4213;
posting-account=mGyhkgoAAACGngz8cxCfTmITiU5OjECD
NNTP-Posting-Host: 2a01:827:3e94:ec01:f192:389a:8b05:4213
References: <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com> <kh4us5Fg3o5U1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d528ed34-85eb-4d64-b6d6-cddf575cd8c1n@googlegroups.com>
Subject: Re: help
From: aurorabaccio@gmail.com (aurora baccio)
Injection-Date: Wed, 19 Jul 2023 16:18:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3074
 by: aurora baccio - Wed, 19 Jul 2023 16:18 UTC

Il giorno martedì 11 luglio 2023 alle 14:05:29 UTC+2 Wolfgang Riedmann ha scritto:
> Buon giorno Aurora,
> > i have to create the dispatch method to make the single line edit
> > understand that it has to display the value of a calculation,
> > basically I have a data windows that contains the list of suppliers
> > and a single line edit named supplier balance. I want the calculation
> > the supplier balance via notify() but for that I need to broadcast to
> > notify the supplier code.
> it may be a bit hard to explain.
>
> The result of your calculation should be put into a variable of your
> DBServer class, maybe like this:
>
> class MySupplier
> protect nBalance as float
>
> access Balance class MySupplier
>
> return nBalance
>
> method CalcBalance() class MySupplier
>
> nBalance := 2 * 4
> Super:Notify( NOTIFYFIELDCHANGE, #Balance )
>
> return nil
>
> And in your window you have a code like this:
>
> method Notify( kNotifyName, uDescription ) class SupplierWindow
>
> do case
> case kNotifyName == NOTIFYRECORDCHANGE
> oDCBalance:Value := self:Server:Balance
> case kNotifyName == NOTIFYFIELDCHANGE .and. uDescription == #Balance
> oDCBalance:Value := self:Server:Balance
> endcase
>
> return super:Notify( kNotifyName, uDescription )
>
>
> HTH
>
> Wolfgang
>
> --

Good morning,
first of all I would like to thank Mr. David Smith and the always active Mr.. Reidman for their help and to the whole group for their patience with me.
However, I have solved the two problems.
I pose a third one: in a singlelineedit() I would need to highlight part of the text (bold), is there a method to do this ?
Thanks

Re: help

<15274088-0cda-4c25-a67a-695d25ee1b15n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:1984:b0:765:2eef:e3c3 with SMTP id bm4-20020a05620a198400b007652eefe3c3mr23172qkb.3.1689868354376;
Thu, 20 Jul 2023 08:52:34 -0700 (PDT)
X-Received: by 2002:a05:6808:10c8:b0:3a3:d677:9a8d with SMTP id
s8-20020a05680810c800b003a3d6779a8dmr4136925ois.0.1689868354217; Thu, 20 Jul
2023 08:52:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.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: Thu, 20 Jul 2023 08:52:33 -0700 (PDT)
In-Reply-To: <d528ed34-85eb-4d64-b6d6-cddf575cd8c1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com>
<kh4us5Fg3o5U1@mid.individual.net> <d528ed34-85eb-4d64-b6d6-cddf575cd8c1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <15274088-0cda-4c25-a67a-695d25ee1b15n@googlegroups.com>
Subject: Re: help
From: dlzc1@cox.net (dlzc)
Injection-Date: Thu, 20 Jul 2023 15:52:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1682
 by: dlzc - Thu, 20 Jul 2023 15:52 UTC

Dear aurora baccio:

On Wednesday, July 19, 2023 at 9:18:07 AM UTC-7, aurora baccio wrote:
....
> I pose a third one: in a singlelineedit() I would need to highlight
> part of the text (bold), is there a method to do this ?

The brute-force way would be to stuff the necessary keystrokes in the keyboard buffer to position to that text, and highlight that text, just before you call the function.

David A. Smith

Re: help

<013e5511-b111-422d-ad0a-c96330b0613en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:3710:b0:768:3e5f:a946 with SMTP id de16-20020a05620a371000b007683e5fa946mr14414qkb.13.1689869282959;
Thu, 20 Jul 2023 09:08:02 -0700 (PDT)
X-Received: by 2002:a81:c50a:0:b0:55a:3133:86fa with SMTP id
k10-20020a81c50a000000b0055a313386famr208475ywi.3.1689869282719; Thu, 20 Jul
2023 09:08:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.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: Thu, 20 Jul 2023 09:08:02 -0700 (PDT)
In-Reply-To: <15274088-0cda-4c25-a67a-695d25ee1b15n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=79.23.34.201; posting-account=mGyhkgoAAACGngz8cxCfTmITiU5OjECD
NNTP-Posting-Host: 79.23.34.201
References: <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com>
<kh4us5Fg3o5U1@mid.individual.net> <d528ed34-85eb-4d64-b6d6-cddf575cd8c1n@googlegroups.com>
<15274088-0cda-4c25-a67a-695d25ee1b15n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <013e5511-b111-422d-ad0a-c96330b0613en@googlegroups.com>
Subject: Re: help
From: aurorabaccio@gmail.com (aurora baccio)
Injection-Date: Thu, 20 Jul 2023 16:08:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1995
 by: aurora baccio - Thu, 20 Jul 2023 16:08 UTC

Il giorno giovedì 20 luglio 2023 alle 17:52:35 UTC+2 dlzc ha scritto:
> Dear aurora baccio:
>
> On Wednesday, July 19, 2023 at 9:18:07 AM UTC-7, aurora baccio wrote:
> ...
> > I pose a third one: in a singlelineedit() I would need to highlight
> > part of the text (bold), is there a method to do this ?
> The brute-force way would be to stuff the necessary keystrokes in the keyboard buffer to position to that text, and highlight that text, just before you call the function.
>
> David A. Smith

good morning,
I am not good enough to understand what he writes.
can you give a practical example ?
thank you
Aurora Baccio

Re: help

<a982dd23-5029-435b-814e-cc9879a3b717n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:622a:108:b0:3f1:fc85:9d74 with SMTP id u8-20020a05622a010800b003f1fc859d74mr988qtw.6.1689951045969;
Fri, 21 Jul 2023 07:50:45 -0700 (PDT)
X-Received: by 2002:a05:6808:23c9:b0:3a1:e5f2:455c with SMTP id
bq9-20020a05680823c900b003a1e5f2455cmr5274845oib.8.1689951045600; Fri, 21 Jul
2023 07:50:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.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, 21 Jul 2023 07:50:45 -0700 (PDT)
In-Reply-To: <013e5511-b111-422d-ad0a-c96330b0613en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com>
<kh4us5Fg3o5U1@mid.individual.net> <d528ed34-85eb-4d64-b6d6-cddf575cd8c1n@googlegroups.com>
<15274088-0cda-4c25-a67a-695d25ee1b15n@googlegroups.com> <013e5511-b111-422d-ad0a-c96330b0613en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a982dd23-5029-435b-814e-cc9879a3b717n@googlegroups.com>
Subject: Re: help
From: dlzc1@cox.net (dlzc)
Injection-Date: Fri, 21 Jul 2023 14:50:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2574
 by: dlzc - Fri, 21 Jul 2023 14:50 UTC

On Thursday, July 20, 2023 at 9:08:03 AM UTC-7, aurora baccio wrote:
> Il giorno giovedì 20 luglio 2023 alle 17:52:35 UTC+2 dlzc ha scritto:
> > Dear aurora baccio:
> >
> > On Wednesday, July 19, 2023 at 9:18:07 AM UTC-7, aurora baccio wrote:
> > ...
> > > I pose a third one: in a singlelineedit() I would need to highlight
> > > part of the text (bold), is there a method to do this ?
>
> > The brute-force way would be to stuff the necessary keystrokes
> > in the keyboard buffer to position to that text, and highlight that
> > text, just before you call the function.
>
> good morning,
> I am not good enough to understand what he writes.
> can you give a practical example ?

And I assumed by "highlight" you meant to select a section of text so that it could be copied to clipboard. You meant "I want to bold a portion of this text".

I don't know how to do that in VO. I saw the word "highlight" and thought you meant to select it so it could be copied to the clipboard. Sorry. Reading too fast.

Does singlelineedit() support formatting instructions? <Ctrl>-B before and after maybe...

David A. Smith

Re: help

<kicujfF1iv4U1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!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: Wed, 26 Jul 2023 18:06:07 +0200
Lines: 52
Message-ID: <kicujfF1iv4U1@mid.individual.net>
References: <f88f79be-4867-4611-90d6-03fc821ee2e4n@googlegroups.com> <kh4us5Fg3o5U1@mid.individual.net> <d528ed34-85eb-4d64-b6d6-cddf575cd8c1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Trace: individual.net ZbznCSTpdZM8kRJ39JBzAgvRYLOWFfIjrcn2l6Z6VC29oTfLo=
Cancel-Lock: sha1:mZSZPDe9qD2vyO2O+OsffZ4P3xk= sha256:FvGE+GcvIKY5bke8fRAM7Aq/s2eSHaUS76rZ8qJ9P+M=
User-Agent: XanaNews/1.18.1.6
 by: Wolfgang Riedmann - Wed, 26 Jul 2023 16:06 UTC

Buon giorno Aurora,

> However, I have solved the two problems. I pose a
> third one: in a singlelineedit() I would need to highlight part of
> the text (bold), is there a method to do this ?

in a edit control (singlelineedit and multilineedit) you can select a
text with the Selection class.

The help says the following:

Edit:Selection Access/Assign

The position of the cursor in the edit control. For example, a
Selection of {5,10} means the text from position 5 through 9 inclusive
is selected, while a Selection of {5,5} means the cursor is positioned
in front of the fifth character.

And if you look at the Selection class, you will find the following
text:

Selections are used in edit controls (i.e., by the Edit and EditWindow
classes). The start of a selection is the position in the edit control
of the first character that is included in the selection. The finish
is the position of the first character not in the selection. For
example, to specify the text from position 5 through 9 inclusive, you
would give a value of Selection{5,10}.

To select all the characters in an edit control (such as a single-line
edit control), you would specify a value of Selection{0,-1}.

If the start and finish points are the same, the selection refers to a
cursor position. For example, the cursor position in front of the
fifth character would be referred to as Selection{5,5}.

That should help.

But if you mean that you can format a text to make it bold: this cannot
work in a single or multiline edit because Windows does not allows it.
You will need a RTF control if you need formatting.
But you can make the entire text bold or italic or whatever you like.

Wolfgang

--

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor