Richard Chidiak wrote:Mr Rao
The font issue is fixed but there is a bad side effect , the cursor now is focused on the end of the array (last row) instead of the first one
Richard
I tried to reproduce the problem but could not. The cursor is focused in the first row only.
Is it possible for you to post a self contained example which I can compile here and test?
I post here one of the tests I checked, which can be compiled and tested at your end also
- Code: Select all Expand view
- function xbarray()
local oDlg, oBrw, oFont
local aData := DIRECTORY( "c:\fwh\samples\*.prg" )
ASort( adata,,,{ |x,y| x[ 2 ] <= y[ 2 ] } ) // Just to disturb initial sort order
DEFINE FONT oFont NAME "Segoe UI Light" SIZE 0,-14 ITALIC
DEFINE DIALOG oDlg RESOURCE "TEST" TITLE FWVERSION
REDEFINE XBROWSE oBrw ID 101 OF oDlg ;
COLUMNS 1,2,3,4 HEADERS "File", "Size", "Date", "Time" ;
DATASOURCE ADATA AUTOSORT ;
LINES FONT oFont
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont
return nil
rc file
- Code: Select all Expand view
- #include "..\include\WinApi.ch"
TEST DIALOG 6, 15, 306, 227
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "TXBrowse demo"
FONT 8, "MS Sans Serif"
{
DEFPUSHBUTTON "OK", IDOK, 252, 211, 50, 14
CONTROL "", 101, "TXBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, 4, 5, 297, 202
}