I have to raise and lower an xbrowse, is there a way to avoid flickering of the xbrowse dialog?
Is There a correct FiveWin method to resize an XBrowse without flickering ?
Try the small test pls
#include "FiveWin.ch"
#include "xbrowse.ch"
FUNCTION Main()
LOCAL oDlg
LOCAL oBrw
LOCAL oBtnUp
LOCAL oBtnDown
local nHeightIni := 350
USE Customer NEW SHARED
DEFINE DIALOG oDlg ;
SIZE 800,500 PIXEL TRUEPIXEL ;
TITLE "Test Resize XBrowse"
@ 10,10 XBROWSE oBrw OF oDlg ;
SIZE 760,nHeightIni PIXEL ;
AUTOCOLS ALIAS "CUSTOMER"
oBrw:CreateFromCode()
@ 370,10 BUTTON oBtnUp ;
PROMPT "Up" ;
SIZE 80,25 PIXEL ;
OF oDlg ;
ACTION AlzaBrowse( oBrw,nHeightIni )
@ 370,100 BUTTON oBtnDown ;
PROMPT "Down" ;
SIZE 80,25 PIXEL ;
OF oDlg ;
ACTION AbbassaBrowse( oBrw,nHeightIni )
ACTIVATE DIALOG oDlg CENTERED
RETURN NIL
FUNCTION AlzaBrowse( oBrw, nHeightIni )
LOCAL nChecked:= 2
LOCAL nDecrement
nDecrement := nChecked * 30
oBrw:nHeight := nHeightIni - nDecrement
oBrw:Refresh(.f.)
RETURN NIL
FUNCTION AbbassaBrowse( oBrw, nHeightIni )
LOCAL nChecked := 0
LOCAL nDecrement
nDecrement := nChecked * 30
oBrw:nHeight := nHeightIni - nDecrement
oBrw:Refresh(.F.)
RETURN NII use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com