Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #11342
| 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: COMBOBOX disabled/readonly colours... |
| Date | Tue, 30 Jan 2018 18:57:19 +0100 |
| Lines | 36 |
| Message-ID | <fdbq01F91qcU1@mid.individual.net> (permalink) |
| References | <2076e234-6a2d-495c-a815-4b0f775b6e35@googlegroups.com> <p4nlnm$157t$2@gioia.aioe.org> <58b54495-eba9-4795-85c5-315bd4a69ab7@googlegroups.com> <fdb50tF47hiU1@mid.individual.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="UTF-8"; reply-type=original |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net KUbNdAuYpmjUYvgHwIq8vg3A9dTQM3FqRjCBPHz6lkUcCsTRs= |
| Cancel-Lock | sha1:RVc5UJT1vQDz0ckUGpjQfnoU0L4= |
| In-Reply-To | <fdb50tF47hiU1@mid.individual.net> |
| 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:11342 |
Show key headers only | View raw
Hi Gregory
if you don´t include the manifest resource file in your app you might try
the modified Readonly assign below.The Idea behind: Because the class
prevents a focus selection as soon Readonly is set to true, it´s possible to
switch the Background and Textcolor at that moment. Sure, the button down
symbol isn´t shown in disabled mode than, but at least you´re able to change
the colors without the need to draw the complete combobox yourself.
ASSIGN ReadOnly ( lSet ) CLASS cmbDisabled
_lReadOnly := lSet
IF _lReadOnly
SELF:Background := Brush { Color { GetSysColor ( COLOR_BTNFACE ) } }
SELF:TextColor := Color { GetSysColor ( COLOR_BTNTEXT ) }
ELSE
SELF:Background := Brush { Color { GetSysColor ( COLOR_WINDOW ) } }
SELF:TextColor := Color { GetSysColor ( COLOR_BTNTEXT ) }
ENDIF
RETURN lSet
BTW: It´s a complete different story if your app is themed.
regards
Karl-Heinz
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
COMBOBOX disabled/readonly colours... "Grzegorz R." <ramotny64@gmail.com> - 2018-01-28 11:24 -0800
Re: COMBOBOX disabled/readonly colours... Arne Ortlinghaus <Arne.Ortlinghaus@acs.it> - 2018-01-29 18:30 +0100
Re: COMBOBOX disabled/readonly colours... "Grzegorz R." <ramotny64@gmail.com> - 2018-01-30 00:02 -0800
Re: COMBOBOX disabled/readonly colours... "Karl-Heinz" <invalid@invalid.invalid> - 2018-01-30 12:59 +0100
Re: COMBOBOX disabled/readonly colours... "Karl-Heinz" <invalid@invalid.invalid> - 2018-01-30 18:57 +0100
csiph-web