DCBROWSE ... DATATOOLTIP
Posted: Wed Mar 24, 2010 7:48 am
Looks like the DATATOOLTIP/TIPBLOCK-clauses in browses showing arrays only work correctly if the array is already filled when the browse comes up.
In this case, no tooltip is shown and "n" is always "1". If the first line is changed to "aDir := Directory()" and this is removed from DCREAD ..., the TIPBLOCK works correctly.
Background: I have several browses showing different data depending on the user input in the same dialog, so the array contens changes. In those dialogs, the browses are initially empty.
Code: Select all
aDir := {}
@ 1,1 DCBROWSE oBrowse DATA aDir ...
DCBROWSECOL ELEMENT 1 DATATOOLTIP {||.T.} TIPBLOCK {|n|Var2Char(aDir[n,1])}
...
DCREAD GUI EVAL {||aDir := Directory(),oBrowse:RefreshAll()}
Background: I have several browses showing different data depending on the user input in the same dialog, so the array contens changes. In those dialogs, the browses are initially empty.