I am experiencing a strange behavior of xBrowse's display update while using the mouse scroll wheel OR Keyboard down arrow key. If I use the vertical scroll bar on the xBrowse to move down, then the display is OK.
I am experiencing this problem only on a DIALOG. If I change it to a window then this problem is not there.
Any idea where I have went wrong ?
My code
- Code: Select all Expand view
DEFINE DIALOG oDlg ;
TITLE "Account Heads"
oDlg:nTop:=100
oDlg:nBottom:=Round(WndMain():nHeight*.80,0) // 80% of Main Windows Ht
oDlg:nRight:=WndMain():nWidth-20 // 1032 -2 == 1030
@ 0, 0 XBROWSE oBrw LINES CELL;
COLUMNS 'ACCODE','NAME','GRCODE' ;
SIZE 370,oDlg:nHeight-35 PIXEL ;
OF oDlg ;
ALIAS 'AcMaster_ACM'
oBrw:CreateFromCode()
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW // Row Highlite
ACTIVATE DIALOG oDlg ;
on INIT oBrw:SetFocus()
Return NIL
Screen Preview when xBrowse used on a Dialog (result of the above given code)
[URL=http://g.imageshack.us/img151/d
If I change the above code to a Window instead of Dialog, then it is working fine
- Code: Select all Expand view
DEFINE WINDOW oDlg ;
TITLE "Account Heads"
oDlg:nTop:=100
oDlg:nBottom:=Round(WndMain():nHeight*.80,0) // 80% of Main Windows Ht
oDlg:nRight:=WndMain():nWidth-20 // 1032 -2 == 1030
@ 0, 0 XBROWSE oBrw LINES CELL;
COLUMNS 'ACCODE','NAME','GRCODE' ;
SIZE 370,oDlg:nHeight-35 PIXEL ;
OF oDlg ;
ALIAS 'AcMaster_ACM'
oBrw:CreateFromCode()
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW // Row Highlite
ACTIVATE WINDOW oDlg ;
on INIT oBrw:SetFocus()
Return NIL
Screen Preview when xBrowse used on a Window (result of the above given code)
[URL=http://g.imageshack.us/img139/windowgw5.
Regards
Anser