Bug in TBtnBmp?

Bug in TBtnBmp?

Postby Enrico Maria Giordano » Fri Feb 04, 2011 11:30 am

What is the reason for these lines in TBtnBmp:LostFocus() method?

Code: Select all  Expand view
  if ::lPressed
      ::lPressed := .f.
      ::Refresh()
   endif


A negative effect is that a pressed button (using GoDown() method) switch to non-pressed status on lostfocus.

Can I remove the above lines without side effects?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bug in TBtnBmp?

Postby Enrico Maria Giordano » Fri Feb 04, 2011 10:24 pm

I just tried to comment out those lines and now the problem seems to be fixed. I can't see any side effects. Can I apply this fix in the FWH SVN?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Re: Bug in TBtnBmp?

Postby TimStone » Tue Mar 15, 2011 3:26 am

Bumped up for Daniel
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Bug in TBtnBmp?

Postby Daniel Garcia-Gil » Tue Mar 15, 2011 4:21 am

Thanks Enrico

already fixed and updated to SVN
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita



Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 48 guests