TFolder fix

xBase/clipper
回覆文章
admin
Site Admin
文章: 50
註冊時間: 2014-09-23, 10:58

TFolder fix

文章 admin »

TFolder Box fix:

bug:
圖檔

fixed:
圖檔

old code:

代碼: 選擇全部

METHOD AdjustRect() CLASS TFolder

   local aRect:= If( ::lUnicode, TabCtrl_AdjustRectW( ::hWnd ), TabCtrl_AdjustRect( ::hWnd ) )

   if Len( ::aDialogs ) > 0 .and. ::aDialogs[ 1 ]:nTop <> aRect[ 1 ]
      AEval( ::aDialogs, { | oDlg | oDlg:Move( aRect[ 1 ], aRect[ 2 ] - 2 ) } )
   endif

return nil
fix code:

代碼: 選擇全部

METHOD AdjustRect() CLASS TFolder

   local aRect:= If( ::lUnicode, TabCtrl_AdjustRectW( ::hWnd ), TabCtrl_AdjustRect( ::hWnd ) )

   if Len( ::aDialogs ) > 0 .and. ::aDialogs[ 1 ]:nTop <> aRect[ 1 ]
      AEval( ::aDialogs, { | oDlg | ( oDlg:SetSize( aRect[4] - aRect[2], aRect[3] - aRect[1] - iif( IsAppThemed(), 2, 0 ) ), ;
                                      oDlg:Move( aRect[ 1 ] + 1, aRect[ 2 ] ) ) } )
   endif

return nil
line ID: ssbbstw
WeChat ID: ssbbstw
回覆文章