Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13474
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Karl-Heinz" <invalid@invalid.invalid> |
| 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> (permalink) |
| 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 |
| Xref | csiph.com comp.lang.clipper.visual-objects:13474 |
Show key headers only | View raw
> > >> 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
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
Returning the background color of an SLE "jrol...@gmail.com" <jrollo64@gmail.com> - 2021-11-16 17:18 -0800
Re: Returning the background color of an SLE JohnMartens <martens@tennishulp.info> - 2021-11-17 07:35 +0100
Re: Returning the background color of an SLE "jrol...@gmail.com" <jrollo64@gmail.com> - 2021-11-17 14:16 -0800
Re: Returning the background color of an SLE "Karl-Heinz" <invalid@invalid.invalid> - 2021-11-18 11:08 +0100
Re: Returning the background color of an SLE "jrol...@gmail.com" <jrollo64@gmail.com> - 2021-11-18 14:20 -0800
Re: Returning the background color of an SLE "jrol...@gmail.com" <jrollo64@gmail.com> - 2021-11-18 14:44 -0800
Re: Returning the background color of an SLE "jrol...@gmail.com" <jrollo64@gmail.com> - 2021-11-18 15:39 -0800
Re: Returning the background color of an SLE "Karl-Heinz" <invalid@invalid.invalid> - 2021-11-19 07:00 +0100
csiph-web