2015-07-14 17:51 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rtl/gtxwc/gtxwc.c
    ! fixed SetMode() when HB_GTI_RESIZABLE is set to .F.
This commit is contained in:
Przemysław Czerpak
2015-07-14 17:51:32 +02:00
parent 8d8235ecad
commit b45d22b385
2 changed files with 18 additions and 0 deletions

View File

@@ -10,6 +10,10 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2015-07-14 17:51 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/gtxwc/gtxwc.c
! fixed SetMode() when HB_GTI_RESIZABLE is set to .F.
2015-07-03 11:22 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
* include/harbour.hbx
* src/rtl/libnamec.c

View File

@@ -4983,12 +4983,18 @@ static HB_BOOL hb_gt_xwc_SetMode( PHB_GT pGT, int iRow, int iCol )
else
{
HB_MAXUINT nTimeOut = hb_dateMilliSeconds() + 1000;
HB_BOOL fResizable = wnd->fResizable;
#ifdef XWC_DEBUG
printf( "SetMode(%d,%d) begin\n", iRow, iCol ); fflush( stdout );
#endif
HB_XWC_XLIB_LOCK();
if( ! fResizable )
{
wnd->fResizable = HB_TRUE;
hb_gt_xwc_SetResizing( wnd );
}
hb_gt_xwc_ResizeRequest( wnd, iCol, iRow );
HB_XWC_XLIB_UNLOCK();
@@ -5004,6 +5010,14 @@ static HB_BOOL hb_gt_xwc_SetMode( PHB_GT pGT, int iRow, int iCol )
}
while( !fResult );
if( ! fResizable )
{
wnd->fResizable = HB_FALSE;
HB_XWC_XLIB_LOCK();
hb_gt_xwc_SetResizing( wnd );
HB_XWC_XLIB_UNLOCK();
}
#ifdef XWC_DEBUG
printf( "SetMode(%d,%d) => %d\n", iRow, iCol, fResult ); fflush( stdout );
#endif