FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBrowse 16.04 : Right Freeze
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
XBrowse 16.04 : Right Freeze
Posted: Tue Apr 26, 2016 10:20 AM
We can freeze one or more columns on the left. There can be occasions when we need to freeze a column on the Right. Typical situations are the right most column is horizontal total of many detail-columns all of which can not fit the browse window.

From 16.04 it is possible to freeze one column on the right. This can be in addition to freezing columns on the left. All other columns scroll horizontally between the left and right freeze columns.

Usage is very simple:
oBrw:oRightCol := oCol
This can be cancelled or changed to another column at any time during run-time.

Sample:


Another use is to display contents of a column like photos or memos with full height on the right.

This requires just one statement:

oBrw:oRightCol:lFullHeight := .t.
and this can be toggled at runtime.



Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: XBrowse 16.04 : Right Freeze
Posted: Tue Apr 26, 2016 12:20 PM
GULP

you're fantastic
and you can make a list of rtf files and show at left the page rtf on the xbrowse ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: XBrowse 16.04 : Right Freeze
Posted: Tue Apr 26, 2016 05:00 PM

Excelente trabajo...!

Dios no está muerto...



Gracias a mi Dios ante todo!
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: XBrowse 16.04 : Right Freeze
Posted: Tue Apr 26, 2016 06:50 PM

Great!

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse 16.04 : Right Freeze
Posted: Tue Apr 26, 2016 10:23 PM
and you can make a list of rtf files and show at left the page rtf on the xbrowse ?

We want to do that. Not only rtf but any type of file.
But we need to do more work on this.
Regards



G. N. Rao.

Hyderabad, India
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: XBrowse 16.04 : Right Freeze
Posted: Wed Apr 27, 2016 09:55 AM
Hi
How about build a function to know Title width?
Ex. Ctrl + Mouse Left key and show title width message. easy to change our code

Code (fw): Select all Collapse
::oCol := ::oBrw:AddCol()
 ::oCol:nWidth        := 20
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse 16.04 : Right Freeze
Posted: Wed Apr 27, 2016 10:39 AM

It may be easier to do something like this:

oCol:nWidth := oBrw:GetWidth( "這是一個句子". oFont )

You may also try
oCol:AutoFit()
or
oBrw:AutoFit()

Regards



G. N. Rao.

Hyderabad, India
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: XBrowse 16.04 : Right Freeze
Posted: Wed Apr 27, 2016 11:30 AM
nageswaragunupudi wrote:It may be easier to do something like this:

oCol:nWidth := oBrw:GetWidth( "這是一個句子". oFont )

You may also try
oCol:AutoFit()
or
oBrw:AutoFit()

I see.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit

Continue the discussion