FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH1402 : Xbrowse nDatalines
Posts: 166
Joined: Wed Aug 29, 2012 08:25 AM
FWH1402 : Xbrowse nDatalines
Posted: Fri Apr 25, 2014 01:54 PM
Hello,

Next problem with xBrowse : oBrw:nDatalines is set to 2 , works as expected in FWH1303 , NOT IN FWH1402 (shows 1 dataline)

I have no idea to search for , try to give the code so short as possible :

Code (fw): Select all Collapse
@ 0,0 XBROWSE oBrw ARRAY Arr PIXEL OF oDlg FONT oFont;
        COLUMNS aCol;
        HEADERS aHead;
        COLSIZES aWidth;
        SORT aSort;
        SIZE (oDlg:nRight - oDlg:nLeft)/2 , (oDlg:nBottom -oDlg:nTop)/2-10;
        AUTOSORT

oBrw:ndataLines := 2  // Is executed. Before activating the dialog this value is still there
.....
oBrw:CreateFromCode()


Frank
test
Posts: 166
Joined: Wed Aug 29, 2012 08:25 AM
Re: FWH1402 : Xbrowse nDatalines
Posted: Fri Apr 25, 2014 04:11 PM

Hello,

After calling oBrw:CreateFromCode()

In FWH1303 : oBrw:nRowHeight is nil
In FWH1402 : oBrw:nRowHeight is 17
When it is set to nil , it receives later the correct value (39) and the browse shows 2 datalines

                  I found the reason : in Sortarraydata i made obrw:refresh() active , this gives obrw:nRowHeight a value before oBrw:nDataRow is set

                  So when i set oBrw:nDataRow , i set also oBrw:nRowHeight to nil

Frank

Frank

test

Continue the discussion