...
oBrw:nDataLines := 4
oCol:nDataLines := 4
...
James Bott wrote:I think you also need to increase the row height.
oBrw:nRowHeight := 35
James
nageswaragunupudi wrote:Mr Frances
Please try again. This works for me.
reinaldocrespo wrote:Frances;
Hi. And hi everyone.
I often do this. First I calculate how many lines are needed to display the desired data by executing this inside a loop that walks through each element of the array looking at the column in question. nLines := Max( nLines, Len( a ) )
Then take the xbrowse object and change nDataLines property like this: oPcLbx:nDataLines := nLines
And that should do it.
The other thing you can do would be to show only the first line with an ellipsis at the end. Once you click on the ellipsis, show a memoedit dialog with all the data that can also be used for editing.
Hope that helps.
Reinaldo.
#include "fivewin.ch"
#include "xbrowse.ch"
function Main()
local oWnd, oBrw, oDbf
use customer
database odbf
define window ownd
@ 0,0 xbrowse oBrw of oWnd ;
object odbf ;
rows { 10, 5, 30, 50, 100 } // Array of record numbers
oBrw:nRowHeight := 55
oBrw:CreateFromCode()
oWnd:oClient := oBrw
activate window oWnd
return nil
FUNCTION utest()
LOCAL oWnd, oBrw
LOCAL aArray := { {Space(200), Space(200)} }
DEFINE window oWnd
@ 0,0 xbrowse oBrw of oWnd ;
headers '1', '2';
columns 1,2;
Array aArray
WITH OBJECT oBrw
:nDataLines := 4
:nMarqueeStyle := MARQSTYLE_HIGHLROWRC
:aCols[1]:nDataLines := 4
:aCols[1]:nEditType := EDIT_GET
:aCols[1]:lAutoSave := .T.
:aCols[1]:nWidth := 200
:aCols[1]:lAllowSizing := .F.
:aCols[1]:cEditPicture := '@!' //COMMENT THIS AND YOU CAN CTRL+ENTER FOR ANOTHER LINE...
:aCols[2]:nDataLines := 4
:aCols[2]:nEditType := EDIT_GET
:aCols[2]:lAutoSave := .T.
:aCols[2]:nWidth := 200
:aCols[2]:lAllowSizing := .F.
:aCols[2]:cEditPicture := '@!' //is this odd because I need all text entered by end user all upper case
END WITH
oBrw:CreateFromCode()
oWnd:oClient := oBrw
activate window oWnd
RETURN
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 83 guests