When browsing a tree, I find that :nEditType := EDIT_GET_BUTTON does not work. As in:
- Code: Select all Expand view RUN
REDEFINE XBROWSE oBrw ID 103 OF oDlg FOOTERS FASTEDIT
oBrw:SetTree( ::oTree, { "FolderOpen16", "FolderClose16", "Clear16" } )
ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 1 ] HEADER "Account"
ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 2 ] HEADER "SrvDate"
ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 3 ] HEADER "Expected" PICTURE "999,999,9999.99"
ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 4 ] HEADER "Paid" PICTURE "999,999,999.99"
WITH OBJECT oBrw
WITH OBJECT :Paid
:nEditType := EDIT_GET_BUTTON
:nWidth := 70
:nBtnBmp := 1
:addResource( "copy16" )
:bOnPostEdit := { |o,x| oBrw:oTreeItem:Cargo[ _PAID ]:= x , ::ReCalculate() }
:bEditBlock := { || oBrw:oTreeItem:Cargo[ _PAID ] := ;
oBrw:oTreeItem:Cargo[ _EXPECTED ],;
::ReCalculate() }
END
...
Does not show the button on the cell. Here is screen shot of how it looks (notice it is missing the button on the ":Paid" cell):
Help?
Reinaldo.