Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" 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: References: <2076e234-6a2d-495c-a815-4b0f775b6e35@googlegroups.com> <58b54495-eba9-4795-85c5-315bd4a69ab7@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 KUbNdAuYpmjUYvgHwIq8vg3A9dTQM3FqRjCBPHz6lkUcCsTRs= Cancel-Lock: sha1:RVc5UJT1vQDz0ckUGpjQfnoU0L4= In-Reply-To: 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 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