I have an ( second browse ) xbrowse that I would like to fit a long array field into a column and allow the column to word wrap into multi-line and resize the row to the depth of the deepest column ..
Thanks
Rick Lipkin
- Code: Select all Expand view RUN
DEFINE BRUSH oBrush FILENAME (cDEFA+"\grey.bmp" )
DEFINE ICON oICO RESOURCE "WORLD"
DEFINE DIALOG oGRPS RESOURCE "VENDOR" ;
ICON oICO ;
TITLE cTITLE BRUSH oBrush TRANSPARENT
REDEFINE xBROWSE oLBX1 ;
RECORDSET oRsWeb ;
COLUMNS "Run_This", ;
"URL" ;
COLSIZES 30,200 ;
HEADERS "Run", ;
"Web Site to Search" ;
ID 111 of oGrps ;
AUTOSORT FASTEDIT LINES CELL
oLbx1:bClrRowFocus := { || { CLR_BLACK, RGB(185,220,255) } }
oLbx1:nMarqueeStyle := MARQSTYLE_HIGHLROWMS
if ! Empty( oCol := oLbx1:oCol( "Run" ) )
oCol:SetCheck( { "ON", "OFF" } )
oCol:cSortOrder := nil
// oCol:lBmpStretch = .T.
endif
AEVAL( oLbx1:aCols, { |o| o:nEditType := EDIT_GET } )
* COLSIZES 30,30,30,100,30,30 ;
// resize the row ( multi-line ) on this xbrowse listbox when desc
// is wider than the column
REDEFINE xBROWSE oLBX2 ;
ARRAY aResults ;
COLUMNS 1,2,3,4,5,6 ;
HEADERS "Site", ;
"Part", ;
"Name", ;
"Desc", ;
"Price", ;
"Qty" ;
ID 121 of oGrps ;
AUTOSORT AUTOCOLS FASTEDIT LINES CELL
REDEFINE BUTTON oBTN1 ID 112 of oGrps // ; // add files
* ACTION ( _FileView("A"),;
* oLBX1:REFRESH(), SysReFresh(),;
* oLBX1:SetFocus() )
REDEFINE BUTTON oBTN2 ID 114 of oGrps // ; // edit files
* ACTION ( _FileView( "E"), ;
* oLBX1:REFRESH(), SysReFresh(),;
* oLBX1:SetFocus() )
REDEFINE BUTTON oBTN3 ID 119 of oGrps // ; // del files
* ACTION ( Delete_Um() )
REDEFINE BUTTON oBTN10 ID 124 of oGrps // ; // view log file
* ACTION ( WaitRun( "NOTEPAD.EXE ERRORLOG.TXT" ) )
REDEFINE BUTTON oBTN5 ID 117 of oGrps // ; // run
* ACTION ( _RunDist( cNAME ) )
REDEFINE BUTTON oBTN6 ID 118 of oGrps ; // quit
ACTION ( dbCloseAll(), ;
oGrps:END() )
ACTIVATE DIALOG oGrps NOWAIT ;
ON INIT( oLbx1:SetFocus(), .F. );
VALID ( IIF( !lOK, ExitPgm(.T., oRsWeb), .F. ))
RETURN( NIL )