Say and groups works correctly . Thanks.
Now I have another anomaly with folder
when I use oFld:setoption(2) the focus remain in in folder 1
I modify the foldxbrw.prg in samples adding :
oBrw1:aCols[ 2 ]:bEditBlock := { || oFld:SetOption(2) }
After click on the colum and switch in folder 2 try the arrows key , doesn't work because the focus remain on folder .
Regards Maurizio
- Code: Select all Expand view
- #include "FiveWin.ch"
#include "XBrowse.ch"
function Main()
local oDlg, oFld, oBrw1, oBrw2
local aDat1, aDat2
aDat1:={{"Row1-Col1","Row1-Col2","Row1-Col3"},;
{"Row2-Col1","Row2-Col2","Row2-Col3"},;
{"Row3-Col1","Row3-Col2","Row3-Col3"},;
{"Row4-Col1","Row4-Col2","Row4-Col3"}}
aDat2:={{"ROW1-COL1","ROW1-COL2","ROW1-COL3"},;
{"ROW2-COL1","ROW2-COL2","ROW2-COL3"},;
{"ROW3-COL1","ROW3-COL2","ROW3-COL3"},;
{"ROW4-COL1","ROW4-COL2","ROW4-COL3"}}
DEFINE DIALOG oDlg RESOURCE "Test"
REDEFINE FOLDER oFld ;
PROMPTS "One", "Two" ;
DIALOGS "One", "Two" ;
ID 100 OF oDlg
REDEFINE XBROWSE oBrw1 ID 10 OF oFld:aDialogs[ 1 ] ARRAY aDat1 AUTOCOLS
REDEFINE XBROWSE oBrw2 ID 10 OF oFld:aDialogs[ 2 ] ARRAY aDat2 AUTOCOLS
oBrw1:aCols[ 2 ]:nEdittype := EDIT_BUTTON
oBrw2:aCols[ 2 ]:nEdittype := EDIT_GET
oBrw1:aCols[ 2 ]:bEditBlock := { || oFld:SetOption(2) }
ACTIVATE DIALOG oDlg CENTERED
return nil