Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #1115
| From | "Craig Dawson" <craig@control.nospam.net.au> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| References | (3 earlier) <iqb5ch$dn0$1@speranza.aioe.org> <4dc95f7f$0$47016$c30e37c6@pit-reader.telstra.net> <4dca2018$0$1573$91cee783@newsreader04.highway.telekom.at> <4dcc4a3f$0$47020$c30e37c6@pit-reader.telstra.net> <4dccc7db$0$18690$91cee783@newsreader03.highway.telekom.at> |
| Subject | Re: Highlighting Buttons on tab page freezes program |
| Date | 2011-05-14 08:52 +1000 |
| Message-ID | <4dcdb621$0$47014$c30e37c6@pit-reader.telstra.net> (permalink) |
Thanks Bernhard, but no difference. The GDI objects increase as I move the mouse over the buttons (but not all) - interesting to note that GDI's increase ONLY on those buttons that have a caption on them. Buttons without captions are fine. Regards, Craig. "Bernhard Mayer" <Idonotexisthere@nowhere.com> wrote in message news:4dccc7db$0$18690$91cee783@newsreader03.highway.telekom.at... > Hi Craig! > > What about destroying the additional icons? > > PROTECT _oIconEnabled AS icon // PDB > PROTECT _oIconDisabled AS icon // pdb > > --> add in your IconPushbutton:Destroy() > > IF SELF:_oIconEnabled != NULL_OBJECT > SELF:_oIconEnabled:Destroy() > SELF:_oIconEnabled := NULL_OBJECT > ENDIF > > IF SELF:_oIconDisabled != NULL_OBJECT > SELF:_oIconDisabled:Destroy() > SELF:_oIconDisabled := NULL_OBJECT > ENDIF > > IF SELF:hImage != NULL_PTR > DestroyIcon(SELF:hImage) > SELF:hImage := NULL_PTR > ENDIF > > And I would destroy the existing bitmap before adding a new one. > > METHOD UseBitmap(oBmp AS Bitmap, hBitmap AS PTR) AS LOGIC PASCAL CLASS > IconPushbutton > > IF hBitmap == NULL_PTR > SELF:lUseImage := FALSE > SELF:hImage := NULL_PTR > SELF:AxitXP() > ELSE > IF SELF:oBitmap != NULL_OBJECT > SELF:oBitmap:Destroy() > SELF:oBitmap := NULL_OBJECT > ENDIF > SELF:lUseImage := TRUE > SELF:dwImgType := IMAGE_BITMAP > SELF:oBitmap := oBmp > SELF:hImage := hBitmap > SELF:InitXP() > ENDIF > > RETURN SELF:lUseImage > > > HTH, > Bernhard >
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Highlighting Buttons on tab page freezes program "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-10 07:39 +1000
Re: Highlighting Buttons on tab page freezes program "Willie Moore" <williem@wmconsulting.com> - 2011-05-09 21:51 -0500
Re: Highlighting Buttons on tab page freezes program "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-10 14:09 +1000
Re: Highlighting Buttons on tab page freezes program "Willie Moore" <williem@wmconsulting.com> - 2011-05-10 05:52 -0500
Re: Highlighting Buttons on tab page freezes program "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-11 01:53 +1000
Re: Highlighting Buttons on tab page freezes program "Willie Moore" <williem@wmconsulting.com> - 2011-05-10 11:57 -0500
Re: Highlighting Buttons on tab page freezes program "Willie Moore" <williem@wmconsulting.com> - 2011-05-10 11:57 -0500
Re: Highlighting Buttons on tab page freezes program "Bernhard Mayer" <Idonotexisthere@nowhere.com> - 2011-05-11 07:35 +0200
Re: Highlighting Buttons on tab page freezes program "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-13 06:59 +1000
Re: Highlighting Buttons on tab page freezes program "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-05-13 08:57 +1000
Re: Highlighting Buttons on tab page freezes program "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-14 08:47 +1000
Re: Highlighting Buttons on tab page freezes program "Bernhard Mayer" <Idonotexisthere@nowhere.com> - 2011-05-13 07:55 +0200
Re: Highlighting Buttons on tab page freezes program "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-14 08:52 +1000
Re: Highlighting Buttons on tab page freezes program "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-14 17:16 +1000
Re: Highlighting Buttons on tab page freezes program - Solved! "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-15 02:30 +1000
Re: Highlighting Buttons on tab page freezes program - Solved! "Gerhard Bunzel" <g.bunzel@domonet.de> - 2011-05-16 00:08 +0200
Re: Highlighting Buttons on tab page freezes program - Solved! "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-17 21:55 +1000
Re: Highlighting Buttons on tab page freezes program - Solved! "Willie Moore" <williem@wmconsulting.com> - 2011-05-17 07:19 -0500
Re: Highlighting Buttons on tab page freezes program - Solved! "Paul D B" <polleke@NOMORESPAMhnt.be> - 2011-05-18 17:00 +0200
Re: Highlighting Buttons on tab page freezes program Sherlock <sherlock@sherlock.com.au> - 2011-05-10 05:01 -0700
Re: Highlighting Buttons on tab page freezes program "Craig Dawson" <craig@control.nospam.net.au> - 2011-05-11 01:58 +1000
Re: Highlighting Buttons on tab page freezes program "Paul D B" <polleke@NOMORESPAMhnt.be> - 2011-05-18 16:39 +0200
Re: Highlighting Buttons on tab page freezes program "Paul D B" <polleke@NOMORESPAMhnt.be> - 2011-05-18 16:42 +0200
csiph-web