Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Urs Eggmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Push Button background & font color Date: Sun, 16 Feb 2014 20:54:49 +0100 Lines: 233 Message-ID: References: <6fb64df1-6e34-49a0-adbc-b363968ef24a@googlegroups.com> <6072df62-d6ea-4395-821c-fb621f7643fa@googlegroups.com> <1315931e-607f-45c8-a708-85b200e4be81@googlegroups.com> <543f8680-a71a-4f16-99c9-c7b75ce696d7@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit X-Trace: individual.net Re2c//93Rx3H90wTX658AQrNxeTOeal/rYhnDsqVnXFnpShOqL Cancel-Lock: sha1:ICfHCazfbDYm/ddGdv6u/oQz7OM= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-EsetId: 37303A2992966C65657C67 X-EsetScannerBuild: 17094 Xref: csiph.com comp.lang.clipper.visual-objects:6603 Hi Craig, Nice sample of work! Thank you! Urs "Craig Dawson" schrieb im Newsbeitrag news:ldi8o3$rpq$1@dont-email.me... > Hi James, > > Seems a lot of people are wanting so I have put it on our website. > It is on www.control.net.au under the submenu Links, VO Resources, Paul's > Button Sample > > Kind Regards, Craig. > -------------------- > > wrote in message > news:543f8680-a71a-4f16-99c9-c7b75ce696d7@googlegroups.com... >>I would really like these mods too. >> >> Thanks. >> >> James >> >> On Saturday, January 18, 2014 12:49:36 AM UTC-5, Craig Dawson wrote: >>> Hi Paul, >>> >>> >>> >>> It's an old problem - and not so basic... but perhaps you are looking >>> for >>> >>> something like we have in our POS application. Have a quick look at the >>> POS >>> >>> application image on our website www.control.net.au >>> >>> I used Pauls icon lib for the colouring of the pushbuttons but made >>> >>> modifications to it due to the resources problem. Now things work fine >>> and >>> >>> have done so for many years now (running VO 2.8). Anyway, if that is the >>> >>> sort of thing you are looking for let me know and I can email you the >>> >>> modified lib. >>> >>> >>> >>> Regards, Craig. >>> >>> ......................... >>> >>> >>> >>> "Whizzwilly" wrote in message >>> >>> news:1315931e-607f-45c8-a708-85b200e4be81@googlegroups.com... >>> >>> On Friday, 17 January 2014 14:38:09 UTC, Malcolm G wrote: >>> >>> > On 17/01/2014 04:06, Whizzwilly wrote: >>> >>> > >>> >>> > > On Thursday, 16 January 2014 20:34:19 UTC, JohnMartens wrote: >>> >>> > >>> >>> > >> Does this do the job ? >>> >>> > >>> >>> > >> >>> >>> > >>> >>> > >> >>> >>> > >>> >>> > >> >>> >>> > >>> >>> > >> oMyPb:Background := Brush{Color{COLORRED}} >>> >>> > >>> >>> > >> >>> >>> > >>> >>> > >> oMyPb:TextColor := Color{COLORBLACK} >>> >>> > >>> >>> > >> >>> >>> > >>> >>> > >> >>> >>> > >>> >>> > >> >>> >>> > >>> >>> > >> John >>> >>> > >>> >>> > >> >>> >>> > >>> >>> > >> >>> >>> > >>> >>> > > >>> >>> > >>> >>> > > Hi John thanks for reply. >>> >>> > >>> >>> > > >>> >>> > >>> >>> > > This is exactly how i would like to do it and the way VO should do >>> > > it. >>> >>> > >>> >>> > >>> >>> > >>> >>> > At a guess you have chosen to have windows themes enabled on these >>> >>> > >>> >>> > controls, and window themes can trump colour requests made by the >>> >>> > >>> >>> > control (I don't think that is anything to do with VO specifically >>> >>> > >>> >>> > more the definition of what you are asking for when to ask to enable >>> >>> > >>> >>> > windows themes). I am a bit rusty on this as we generally use custom >>> >>> > >>> >>> > draw buttons, which do choose to use the background brush. >>> >>> >>> >>> I am using Windows XP and I have disabled the control theme and windows >>> >>> theme but still not working !! ?? >>> >>> >>> >>> Surely this is not a new problem and seems so basic that somebody must >>> have >>> >>> a quick & easy solution. I have been sent the hover button class by Urs >>> >>> Eggman (many thanks) but i am getting compiler errors and i cant even >>> open >>> >>> the main dialog screen in the window editor because it says error >>> loading >>> >>> window >>> >>> >>> >>> NAME: PBOK >>> >>> CLASS: HOVERBUTTON >>> >>> SECTION: CONTROL:TEXTCONTROL:BUTTON:PUSHBUTTON:HOVERBUTTON >>> >>> >>> >>> Check CAVOWED.INF for supplemental files and missing entries. >>> >>> >>> >>> How would i go about coding a custom draw button myself and how do i >>> place >>> >>> it on my data window from within the window design editor? There will be >>> >>> approx 20 buttons per data window all which need a different color >>> >>> (background & text). >>> >>> >>> >>> Come on all you boffins - please help !! >>> >>> >>> >>> And just one more thing can anyone tell me any good support sites for >>> >>> downloading VO utilities & libraries i tried knowvo.com but that seems >>> >>> obsolete. >>> >>> >>> >>> Thanks >>> >>> >>> >>> Paul >> > >