Not working nStretchCol (xBrowse )
Posted: Tue May 08, 2018 6:07 am
I have recompiled their programs under FWH18.03 (xHarbour ) In xBrowse has stopped working option nStretchCol. In version 17.12 it's Ok
www.FiveTechSoft.com
https://forums.fivetechsoft.com/
Code: Select all
local oDlg, oBrw
USE CUSTOMER
DEFINE DIALOG oDlg SIZE 800,300 PIXEL TITLE FWVERSION + " STRETCH NONE"
@ 10,10 XBROWSE oBrw SIZE 380,130 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" ;
COLUMNS "FIRST","CITY","SALARY" ;
AUTOCOLS CELL LINES NOBORDER
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
Code: Select all
local oDlg, oBrw
USE CUSTOMER
DEFINE DIALOG oDlg SIZE 800,300 PIXEL TITLE FWVERSION + " STRETCHCOL_LAST"
@ 10,10 XBROWSE oBrw SIZE 380,130 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" ;
COLUMNS "FIRST","CITY","SALARY" ;
AUTOCOLS CELL LINES NOBORDER
oBrw:nStretchCol := STRETCHCOL_LAST
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
Code: Select all
USE CUSTOMER
DEFINE DIALOG oDlg SIZE 800,300 PIXEL TITLE FWVERSION + " STRETCHCOL_WIDEST (recommended)"
@ 10,10 XBROWSE oBrw SIZE 380,130 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" ;
COLUMNS "FIRST","CITY","SALARY" ;
AUTOCOLS CELL LINES NOBORDER
oBrw:nStretchCol := STRETCHCOL_WIDEST
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
Code: Select all
local oDlg, oBrw
USE CUSTOMER
DEFINE DIALOG oDlg SIZE 800,300 PIXEL TITLE FWVERSION + " STRETCHCOL <specified>"
@ 10,10 XBROWSE oBrw SIZE 380,130 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" ;
COLUMNS "FIRST","CITY","SALARY" ;
AUTOCOLS CELL LINES NOBORDER
oBrw:nStretchCol := 1
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
I do not understand.But if I next increase the width xBbroseб, the column width (number nStretchCol) will not change
Code: Select all
ocal oBrw
private oDlg
USE CUSTOMER
DEFINE DIALOG oDlg SIZE 800,300 PIXEL TITLE FWVERSION + " STRETCHCOL_LAST"
@ 10,10 XBROWSE oBrw SIZE 380,130 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" ;
COLUMNS "FIRST","CITY","SALARY" ;
AUTOCOLS CELL LINES NOBORDER
oBrw:nStretchCol := STRETCHCOL_LAST
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg ON INIT MY_INI() CENTERED
return NIL
procedure My_Ini
oDlg:nWidth+=100
oDlg:aControls[1]:nWidth+=100
return
Code: Select all
METHOD Resize( nSizeType, nWidth, nHeight ) INLINE ( ::ColStretch(), ::Super:ReSize( nSizeType, nWidth, nHeight ), If( ::lPainted, ::Refresh(), ) )