DbSelectArea( "bp" )
bp->( OrdSetFocus( "bpopen" ) ) // it's a conditional index ( for xFlag == .t. )
bp->( ordScope( 0, bs->bestnr ) )
bp->( ordScope( 1, bs->bestnr ) )
REDEFINE BROWSE oBrw GRID ALIAS "bp" ID 20 OF oDlg
ADD COLUMN TO oBrw;
HEADER "Name" ;
SIZE 70;
DATA bp->name;
ALIGN DT_LEFT
... Add some more columns
Hi Detlef:Detlef Hoefner wrote:When using a scope with dbfntx and you click into a window of an other application and come back to your own application then you can scroll in your TsBrowse beyond the scope which was set before.
oBrw:lNoResetPos := .F.
REDEFINE BROWSE oBrwBoss ALIAS "boss" ID 10 OF oDlg;
ON CHANGE (;
aData := aGetData( boss->master ),;
oBrwSlave:SetArray( aData ),;
oBrwSlave:Reset(),;
oBrwSlave:GoTop(),;
oBrwBoss:Setfocus();
)
The crux as that i wasted 2 days searching the culprit for this behaviour.
I never thought that a browse in a modal dialog could work in the background. Repainting the screen content is ok but not doing 'hidden' database work.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 92 guests