Is there a row stretch depending on the amount of text and lines possible for memofields?
Thanks in advance
Otto
Is there a row stretch depending on the amount of text and lines possible for memofields?
Thanks in advance
Otto

MLCount( <cString> , ;
[<nLineLen>] , ;
[<nTabSize>] , ;
[<lWrap>] , ;
[<lLongLines>] ) --> nLineCount
nRowHeight := MlCount (...)Thank you Stefan,
I think nRowHeight is part of paint method and can only be set for all rows not for a unique row as I want.
This would be possible if nRowHeight would be part of PaintData.
Best regards,
Otto
Otto,
I tried to do this a long time ago with TWBrowse and found it to be very difficult. One problem is with the display of the browse. Each time the screen is drawn you have to figure out if there is enough room to display each record depending on the number of rows that will be required to display the amount of text in the memo field. Or, you have to display as many lines of the memo as will fit, and then display one more line when the browse is scrolled up.
Of course these things can be solved, but there will still be a tremendous calculation overhead when displaying the browse which will cause a slowdown in the display speed.
I don't believe this capability is built into the XBrowse either.
Regards,
James
Hello James,
thank you.
But if you look into paint method you will see that immediately after the DATAPAINT method
nRowPos++ follows.
I will try what happens if I switch the nRowPos calculation into DATAPAINT.
Sure it will be necessary to limit the amount of text.
Best regards,
Otto
nHeight := DrawTextEx( hDC, cLine, aRect, nOr( DT_CALCRECT, DT_WORDBREAK ) )Rao,
Unfortunately, he wants EACH record to have a height based on the length of the memo of that record.
This would be a nice feature if there is a lot of variability in the length of the memos. But as I pointed out in my previous message, this could cause a significant calculation overhead which may make it too slow to be acceptable.
Regards,
James
Mr James
XBrowse (or any other browse I know) can not have different heights for different rows, unlike column widths. I understood, rightly or wrongly, that Mr. Otto wanted to set rowheight of the browse in such a way that the longest memoline is fit snugly.
Many times, I too felt the need to have varying rowheights for different rows like Excel, but it needs major changes in xbrowse. At many places the logic of xbrowse depends on fixed number of rows and rowheight (unless the window is resized).
Hope someday xbrowse will provide this facility too.



So all informations you want to browse, must have a (leading) record in the leading table. This applies also to memo text (fields): So, if you want to show (browse) the content of a memo text (field), you have to break down the content in a corresponding amount of records, that’s all!
Dear Mr. Rao,
yes, you are right. Sorry, if my explanation are misleading. I'm loving the tremendous features of xBrowse and I admit that I havn't utilised all of them yet
Of course you can display fields, pictures, memo fields or other informations from other tables in the columns, but you cannot browse informations without having a record - might be comletely empty - in the 'leading' table!
Can you confirm?
My intention was and still is to introduce a method to display long text (continuous text) without using memo fields and with a normal row height!
Do you think it is possible to move the drawing of the dividers from the Paint to the PaintData method?
Of course you can display fields, pictures, memo fields or other informations from other tables in the columns, but you cannot browse informations without having a record - might be comletely empty - in the 'leading' table!
Therefore I asked in another post if ColDividerStyle/RowDividerStyle could be selected for each row and col.