FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bug in TBtnBmp and dialogs
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TBtnBmp and dialogs
Posted: Wed Dec 05, 2007 09:48 AM
In the following sample, please place the mouse pointer over the button and try to close the dialog using ALT-F4. It will not close.

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg

    @ 1, 1 BTNBMP;
           FILE "C:\FWH\BITMAPS\OPEN.BMP";
           NOBORDER

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBtnBmp and dialogs
Posted: Tue Dec 11, 2007 09:10 AM

Any news? :-)

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in TBtnBmp and dialogs
Posted: Tue Dec 11, 2007 11:15 AM
Enrico,

Fixed :-)

Please add this code to Class TDialog:
METHOD SysCommand( nWParam, nLParam ) CLASS TDialog

   if nWParam == SC_CLOSE .and. ::lModal
      if GetCapture() != 0  // New !
         ReleaseCapture()  // New !
      endif                       // New !
      return .f.
   endif

   ...
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Bug in TBtnBmp and dialogs
Posted: Tue Dec 11, 2007 12:03 PM

Is it possible that the problem doesn't occur when creating dialogs from resources ?

I don't have the problem in my application.

Thanks.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in TBtnBmp and dialogs
Posted: Tue Dec 11, 2007 12:23 PM

Michel,

Have you tested with FWH 7.12 ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TBtnBmp and dialogs
Posted: Tue Dec 11, 2007 01:28 PM
Antonio Linares wrote:Enrico,

Fixed :-)

Please add this code to Class TDialog:


Thank you!

EMG
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
Bug in TBtnBmp and dialogs
Posted: Tue Dec 11, 2007 02:04 PM

antonio, this is for 7.11 or 7.12 or too?

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in TBtnBmp and dialogs
Posted: Tue Dec 11, 2007 02:26 PM

Norberto,

For both and previous versions too

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion