Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Ignorance is bliss. -- Thomas Gray Fortune updates the great quotes, #42: BLISS is ignorance.


devel / comp.lang.clipper.visual-objects / Re: Returning the background color of an SLE

SubjectAuthor
* Returning the background color of an SLEjrol...@gmail.com
+* Re: Returning the background color of an SLEJohnMartens
|`- Re: Returning the background color of an SLEjrol...@gmail.com
`* Re: Returning the background color of an SLEKarl-Heinz
 +- Re: Returning the background color of an SLEjrol...@gmail.com
 `* Re: Returning the background color of an SLEjrol...@gmail.com
  `* Re: Returning the background color of an SLEjrol...@gmail.com
   `- Re: Returning the background color of an SLEKarl-Heinz

1
Returning the background color of an SLE

<746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:6214:e41:: with SMTP id o1mr51056078qvc.43.1637111907289;
Tue, 16 Nov 2021 17:18:27 -0800 (PST)
X-Received: by 2002:a05:620a:254d:: with SMTP id s13mr9960042qko.39.1637111906657;
Tue, 16 Nov 2021 17:18:26 -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: Tue, 16 Nov 2021 17:18:26 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=101.190.142.71; posting-account=eMWFMQoAAADaPtL6doi-G2M9FDy4zXzQ
NNTP-Posting-Host: 101.190.142.71
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com>
Subject: Returning the background color of an SLE
From: jrollo64@gmail.com (jrol...@gmail.com)
Injection-Date: Wed, 17 Nov 2021 01:18:27 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 19
 by: jrol...@gmail.com - Wed, 17 Nov 2021 01:18 UTC

Hi, does anyone know how to return the RBG values for the background of an SLE, please? I've got the TextColor worked out, but cannot for the life of me find out how to do the same thing for the background. I want to retrieve the background colour of the SLE in exactly the same way as I am for the TextColor so I can save it to a DBF, for restoration later "on the fly"

This is how I'm saving the TextColor:

self:oDCP1BTNNAME:TextColor:Blue
self:oDCP1BTNNAME:TextColor:Red
self:oDCP1BTNNAME:TextColor:Green

Attempting to do the same with the Background like:
self:oDCP1BTNNAME:Background:Red
Returns : {(0x0010)0x05D7F7AC} CLASS COLOR

And a NO Exported Variable message Function iVARGET Arguement: RED

Any ideas please?

Re: Returning the background color of an SLE

<sn27qs$emt$1@dont-email.me>

  copy mid

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

  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: Returning the background color of an SLE
Date: Wed, 17 Nov 2021 07:35:10 +0100
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <sn27qs$emt$1@dont-email.me>
References: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 17 Nov 2021 06:35:08 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3ebd71d3d94ea1b09fee805ac2c9c74e";
logging-data="15069"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nOb0zwu09g9XARxwFzyV4ZWMXFTjeMqQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.1
Cancel-Lock: sha1:sCDZfD7MJ/8OOb6TgBu/7sXR+hk=
In-Reply-To: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com>
Content-Language: nl
 by: JohnMartens - Wed, 17 Nov 2021 06:35 UTC

Hi,

Just looked in the help file.
Background of SLE inherits the Background fom the Control class

It is not strong typed but is a brush. Looks like the brush is a class
that designed to be set to a value more that the properties to be read

Look in the help for the brush class and maybe find more info in

https://groups.google.com/g/comp.lang.clipper.visual-objects

John

Op 17-11-2021 om 02:18 schreef jrol...@gmail.com:
> Hi, does anyone know how to return the RBG values for the background of an SLE, please? I've got the TextColor worked out, but cannot for the life of me find out how to do the same thing for the background. I want to retrieve the background colour of the SLE in exactly the same way as I am for the TextColor so I can save it to a DBF, for restoration later "on the fly"
>
> This is how I'm saving the TextColor:
>
> self:oDCP1BTNNAME:TextColor:Blue
> self:oDCP1BTNNAME:TextColor:Red
> self:oDCP1BTNNAME:TextColor:Green
>
> Attempting to do the same with the Background like:
> self:oDCP1BTNNAME:Background:Red
> Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
>
> And a NO Exported Variable message Function iVARGET Arguement: RED
>
> Any ideas please?
>

Re: Returning the background color of an SLE

<be4fb160-589a-432a-af6c-e789da17ea54n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:622a:1828:: with SMTP id t40mr21496964qtc.0.1637187401932;
Wed, 17 Nov 2021 14:16:41 -0800 (PST)
X-Received: by 2002:a05:6214:21e9:: with SMTP id p9mr59210529qvj.24.1637187401785;
Wed, 17 Nov 2021 14:16:41 -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: Wed, 17 Nov 2021 14:16:41 -0800 (PST)
In-Reply-To: <sn27qs$emt$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=101.190.142.71; posting-account=eMWFMQoAAADaPtL6doi-G2M9FDy4zXzQ
NNTP-Posting-Host: 101.190.142.71
References: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com> <sn27qs$emt$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <be4fb160-589a-432a-af6c-e789da17ea54n@googlegroups.com>
Subject: Re: Returning the background color of an SLE
From: jrollo64@gmail.com (jrol...@gmail.com)
Injection-Date: Wed, 17 Nov 2021 22:16:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 40
 by: jrol...@gmail.com - Wed, 17 Nov 2021 22:16 UTC

On Wednesday, 17 November 2021 at 17:35:10 UTC+11, JohnMartens wrote:
> Hi,
>
> Just looked in the help file.
> Background of SLE inherits the Background fom the Control class
>
> It is not strong typed but is a brush. Looks like the brush is a class
> that designed to be set to a value more that the properties to be read
>
> Look in the help for the brush class and maybe find more info in
>
> https://groups.google.com/g/comp.lang.clipper.visual-objects
>
> John
>
>
>
> Op 17-11-2021 om 02:18 schreef jrol...@gmail.com:
> > Hi, does anyone know how to return the RBG values for the background of an SLE, please? I've got the TextColor worked out, but cannot for the life of me find out how to do the same thing for the background. I want to retrieve the background colour of the SLE in exactly the same way as I am for the TextColor so I can save it to a DBF, for restoration later "on the fly"
> >
> > This is how I'm saving the TextColor:
> >
> > self:oDCP1BTNNAME:TextColor:Blue
> > self:oDCP1BTNNAME:TextColor:Red
> > self:oDCP1BTNNAME:TextColor:Green
> >
> > Attempting to do the same with the Background like:
> > self:oDCP1BTNNAME:Background:Red
> > Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
> >
> > And a NO Exported Variable message Function iVARGET Arguement: RED
> >
> > Any ideas please?
> >
Thanks John, but I've been right through the "help" but I still can't work out where I'm going wrong. Thanks again.

Re: Returning the background color of an SLE

<ivmn1sFmebU1@mid.individual.net>

  copy mid

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

  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: invalid@invalid.invalid (Karl-Heinz)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Returning the background color of an SLE
Date: Thu, 18 Nov 2021 11:08:36 +0100
Lines: 15
Message-ID: <ivmn1sFmebU1@mid.individual.net>
References: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="UTF-8";
reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: individual.net UEEcNYEDgWC8H6Au9D8VCQaeiKz/Sj0BPUqCxNoGvipU5DaPk=
Cancel-Lock: sha1:bjBfpahd4mmj9azOGlsyoJkefgA=
In-Reply-To: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 16.4.3564.1216
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216
 by: Karl-Heinz - Thu, 18 Nov 2021 10:08 UTC

Hi,

>> Attempting to do the same with the Background like:
>> self:oDCP1BTNNAME:Background:Red
>> Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
>>
>> And a NO Exported Variable message Function iVARGET Arguement: RED

What´s missing is the access to the color object.

self:oDCP1BTNNAME:Background:Color:Red

regards
Karl-Heinz

Re: Returning the background color of an SLE

<3272cd5a-9188-400b-943e-a1debd8effefn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ad4:576a:: with SMTP id r10mr67287019qvx.5.1637274037498;
Thu, 18 Nov 2021 14:20:37 -0800 (PST)
X-Received: by 2002:ad4:4f2b:: with SMTP id fc11mr68885267qvb.45.1637274037261;
Thu, 18 Nov 2021 14:20:37 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.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: Thu, 18 Nov 2021 14:20:36 -0800 (PST)
In-Reply-To: <ivmn1sFmebU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=101.190.142.71; posting-account=eMWFMQoAAADaPtL6doi-G2M9FDy4zXzQ
NNTP-Posting-Host: 101.190.142.71
References: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com> <ivmn1sFmebU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3272cd5a-9188-400b-943e-a1debd8effefn@googlegroups.com>
Subject: Re: Returning the background color of an SLE
From: jrollo64@gmail.com (jrol...@gmail.com)
Injection-Date: Thu, 18 Nov 2021 22:20:37 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 14
 by: jrol...@gmail.com - Thu, 18 Nov 2021 22:20 UTC

On Thursday, 18 November 2021 at 21:09:03 UTC+11, Karl-Heinz wrote:
> Hi,
> >> Attempting to do the same with the Background like:
> >> self:oDCP1BTNNAME:Background:Red
> >> Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
> >>
> >> And a NO Exported Variable message Function iVARGET Arguement: RED
> What´s missing is the access to the color object.
>
> self:oDCP1BTNNAME:Background:Color:Red
>
> regards
> Karl-Heinz
Excellent, I knew it would be easy and obvious, but I kept getting confused.. Thank you very much, Karl-Heinz.

Re: Returning the background color of an SLE

<31ead1ad-672c-49c0-a823-5f245b2e8d2fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:1a11:: with SMTP id bk17mr24546222qkb.394.1637275497158;
Thu, 18 Nov 2021 14:44:57 -0800 (PST)
X-Received: by 2002:a0c:fb47:: with SMTP id b7mr66881457qvq.12.1637275496899;
Thu, 18 Nov 2021 14:44:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.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: Thu, 18 Nov 2021 14:44:56 -0800 (PST)
In-Reply-To: <ivmn1sFmebU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=101.190.142.71; posting-account=eMWFMQoAAADaPtL6doi-G2M9FDy4zXzQ
NNTP-Posting-Host: 101.190.142.71
References: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com> <ivmn1sFmebU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <31ead1ad-672c-49c0-a823-5f245b2e8d2fn@googlegroups.com>
Subject: Re: Returning the background color of an SLE
From: jrollo64@gmail.com (jrol...@gmail.com)
Injection-Date: Thu, 18 Nov 2021 22:44:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 14
 by: jrol...@gmail.com - Thu, 18 Nov 2021 22:44 UTC

On Thursday, 18 November 2021 at 21:09:03 UTC+11, Karl-Heinz wrote:
> Hi,
> >> Attempting to do the same with the Background like:
> >> self:oDCP1BTNNAME:Background:Red
> >> Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
> >>
> >> And a NO Exported Variable message Function iVARGET Arguement: RED
> What´s missing is the access to the color object.
>
> self:oDCP1BTNNAME:Background:Color:Red
>
> regards
> Karl-Heinz
Sorry Karl-Heinz, but that doesn't work. It again says no exported variable:Color

Re: Returning the background color of an SLE

<6c086559-1c07-46b6-998c-046d3af5c34bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a37:f902:: with SMTP id l2mr23970619qkj.511.1637278740862;
Thu, 18 Nov 2021 15:39:00 -0800 (PST)
X-Received: by 2002:a05:622a:144f:: with SMTP id v15mr1467042qtx.340.1637278740685;
Thu, 18 Nov 2021 15:39:00 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.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: Thu, 18 Nov 2021 15:39:00 -0800 (PST)
In-Reply-To: <31ead1ad-672c-49c0-a823-5f245b2e8d2fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=101.190.142.71; posting-account=eMWFMQoAAADaPtL6doi-G2M9FDy4zXzQ
NNTP-Posting-Host: 101.190.142.71
References: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com>
<ivmn1sFmebU1@mid.individual.net> <31ead1ad-672c-49c0-a823-5f245b2e8d2fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6c086559-1c07-46b6-998c-046d3af5c34bn@googlegroups.com>
Subject: Re: Returning the background color of an SLE
From: jrollo64@gmail.com (jrol...@gmail.com)
Injection-Date: Thu, 18 Nov 2021 23:39:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 25
 by: jrol...@gmail.com - Thu, 18 Nov 2021 23:39 UTC

On Friday, 19 November 2021 at 09:44:57 UTC+11, jrol...@gmail.com wrote:
> On Thursday, 18 November 2021 at 21:09:03 UTC+11, Karl-Heinz wrote:
> > Hi,
> > >> Attempting to do the same with the Background like:
> > >> self:oDCP1BTNNAME:Background:Red
> > >> Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
> > >>
> > >> And a NO Exported Variable message Function iVARGET Arguement: RED
> > What´s missing is the access to the color object.
> >
> > self:oDCP1BTNNAME:Background:Color:Red
> >
> > regards
> > Karl-Heinz
> Sorry Karl-Heinz, but that doesn't work. It again says no exported variable:Color

This, however, does seem to work:

oBKgrdCol:=oWin:Color()
nRed:=oBKgrdCol:red
nBlue:=oBKgrdCol:blue
nGreen:=oBKgrdCol:green
oBrush:=Brush{Color{nRed,nGreen,nBlue}}

Re: Returning the background color of an SLE

<ivosruFdfcqU1@mid.individual.net>

  copy mid

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

  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: invalid@invalid.invalid (Karl-Heinz)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Returning the background color of an SLE
Date: Fri, 19 Nov 2021 07:00:13 +0100
Lines: 41
Message-ID: <ivosruFdfcqU1@mid.individual.net>
References: <746f6201-4b40-4d04-ad7d-9aa4e1a24177n@googlegroups.com> <ivmn1sFmebU1@mid.individual.net> <31ead1ad-672c-49c0-a823-5f245b2e8d2fn@googlegroups.com> <6c086559-1c07-46b6-998c-046d3af5c34bn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="UTF-8";
reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: individual.net SghVy/ZXevKdDTM1JH80CAaWEKOwiE4J1m9YkKFWmsIHMer5I=
Cancel-Lock: sha1:by23HwrgP8lZERwHLcP/SN9HvWM=
In-Reply-To: <6c086559-1c07-46b6-998c-046d3af5c34bn@googlegroups.com>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 16.4.3564.1216
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216
 by: Karl-Heinz - Fri, 19 Nov 2021 06:00 UTC

> > >> Attempting to do the same with the Background like:
> > >> self:oDCP1BTNNAME:Background:Red
> > >> Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
> > >>
> > >> And a NO Exported Variable message Function iVARGET Arguement: RED
> > What´s missing is the access to the color object.
> >
> > self:oDCP1BTNNAME:Background:Color:Red
> >
> > regards
> > Karl-Heinz
> Sorry Karl-Heinz, but that doesn't work. It again says no exported
> variable:Color

something like

self:oDCP1BTNNAME:Background:Color:Red

only works if a background object exists !

try this Sle class. It detects if a background object exists. If there´s no
such object the return value is the (sle) system background colorref.

------------------------
CLASS YourSle INHERIT SingleLineEdit

METHOD GetBackgroundColorRef() CLASS YourSle

IF SELF:BackGround != NULL_OBJECT

RETURN SELF:BackGround:color:Colorref

ENDIF

RETURN GetSysColor ( COLOR_WINDOW )

---------------------

regards
Karl-Heinz

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor