FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A problem to display last column using oBrw:GoRightMost()
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
A problem to display last column using oBrw:GoRightMost()
Posted: Thu Nov 26, 2015 12:42 PM
Hello,

because of many columns, I use oBrw:GoRightMost() on buttonaction to show the end-results.
The last column is not shown complete.
Normal crolling shows the full size of the last column.



any idea, to solve the problem ?

best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: A problem using oBrw:GoRightMost()
Posted: Thu Nov 26, 2015 12:50 PM
Mr Ukoenig,

Perhaps, a workaround:

Code (fw): Select all Collapse
#define GO_RIGHT_MOST ( oBrw:GoRightMost(), oBrw:Right() )


Regards
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: A problem to display last column using oBrw:GoRightMost()
Posted: Thu Nov 26, 2015 01:00 PM

I added :

oBrw:GoRight()

NO difference, only a part of the last column is shown.

best regards
Uwe :roll:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: A problem to display last column using oBrw:GoRightMost()
Posted: Thu Nov 26, 2015 01:13 PM
Ok,

Now try:

Code (fw): Select all Collapse
#define GO_RIGHT_MOST ( oBrw:GoRightMost(), oBrw:GoLeft(), oBrw:GoRight() )
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: A problem to display last column using oBrw:GoRightMost()
Posted: Thu Nov 26, 2015 01:15 PM
I found a solution :

COLUMNS { "NACHNAME", "VORNAME", "RTYP", ;
"KOST_RZH", "KOST_BEI", "KOST_PRI", ;
"KRK", "KRX", ;
"FK0", "PFX0", "PFK1", "PFX1", "PFK2", "PFX2", "PFK3", "PFX3", ;
"B1X", "PBK", "PBX", "B2X", ;
"PRA", "VPK", "VPX", "PRI", "BERG", "SUMME", "PKT_SUMME", "RECH_DATUM", "RECH_DATUM" } ;

It works with the last column defined twice and column-size 1

oCol := oBrw1:oCol( "RECH_DATUM" )
oCol:bStrData := { || (cMUmsName)->RECH_DATUM }
oCol:cHeader := "Erstellt"
oCol:nWidth := 90
oCol:nDataStrAlign := AL_CENTER
oCol:nHeadStrAlign := AL_CENTER


oCol := oBrw1:oCol( "RECH_DATUM" )
oCol:bStrData := { || (cMUmsName)->RECH_DATUM }
oCol:cHeader := ""
oCol:nWidth := 1
oCol:nDataStrAlign := AL_CENTER
oCol:nHeadStrAlign := AL_CENTER




maybe any other solution ?

best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: A problem to display last column using oBrw:GoRightMost()
Posted: Thu Nov 26, 2015 01:54 PM
Thank You very much.
The solution with the combination works fine.

The GORIGHT - selection :

REDEFINE BTNBMP oBtn3 OF oFld:aDialogs[ 1 ] ;
ID 302 PIXEL 2007 ;
BORDER ;
FILENAME c_Pfad1 + "Rechts.Bmp" ;
ACTION ( oBrw1:GoRightMost(), oBrw1:GoLeft(), oBrw1:GoRight(), oBrw1:Refresh() ) ;
CENTER

best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: A problem to display last column using oBrw:GoRightMost()
Posted: Thu Nov 26, 2015 02:30 PM

you're welcome

best regards

Continue the discussion