Two bugs on TCBrowse
Posted: Fri Jan 20, 2006 4:11 pm
The following sample shows two little bugs:
1. How to get rid of the ugly black background on the not focused cells?
2. Why the dialog can't be closed using ESC?
EMG
1. How to get rid of the ugly black background on the not focused cells?
2. Why the dialog can't be closed using ESC?
Code: Select all
#include "Fivewin.ch"
#include "Tcbrowse.ch"
FUNCTION MAIN()
LOCAL oDlg, oBrw, oCol
USE TEST
DEFINE DIALOG oDlg SIZE 300, 300
@ 0, 0 BROWSE oBrw
ADD COLUMN TO oBrw;
DATA TEST -> last;
HEADER "LAST";
COLOR CLR_RED, CLR_GREEN
ADD COLUMN TO oBrw;
DATA TEST -> first;
HEADER "FIRST";
COLOR CLR_RED, CLR_GREEN
oBrw:lCellStyle = .T.
ACTIVATE DIALOG oDlg;
ON INIT oDlg:SetControl( oBrw );
CENTER
CLOSE
RETURN NIL