Subject: Re: Push Button background & font color From: Camille Kater Date: Fri, 07 Mar 2014 10:12:39 +0100 Message-ID: <1394184386_1@vo.lu> 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> <633f995f-b6c2-4663-9ebb-09a6b34201de@googlegroups.com> Lines: 36 NNTP-Posting-Host: 78.141.133.102 Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.vo.lu!not-for-mail Newsgroups: comp.lang.clipper.visual-objects X-Trace: vo.lu 1394184386 78.141.133.102 (7 Mar 2014 10:26:26 0100) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 In-Reply-To: <633f995f-b6c2-4663-9ebb-09a6b34201de@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 140306-1, 06/03/2014), Outbound message X-Antivirus-Status: Clean Xref: csiph.com comp.lang.clipper.visual-objects:6643 Hello, 1) If you use variables to store the brushes, they get destroyed after closing your window. Therefore you have to uncomment the "SELF:oBackground:destroy()" of the brush in the IconPushbutton class: 1. in the destroy method (line 10-14) 2. in the Usecolor:assign (line 15-18) Then be sure to use only variables for these brushes and destroy them when closing your app. 2) You have to include a manifest resource in your app. Camille On 07/03/2014 08:40, Kuno Egger wrote: > I appreciate the opportunity to learn from Paul's IconPushbutton class. I'm still struggling with it a bit because when I use it in my app the buttons change color the fist time thy are pressed and then stay changed till the window is closed. Any advice on keeping them the same without using HATCHSOLID would be welcome. > > But here is my real question: in the VO window designer pushbuttons have a nice shading on them that saves them prom looking flat and lifeless. But when I compile and run my apps they are right back to no shading and look pretty boring. But in Paul's sample app, on the Help About window there is his OK button - nice and shaded with a hint of color, and it's not inheriting from the IconPushbutton class. I'm obviously missing something, but what? >