I have two situations in xBrowser and I wanted to know if you have already experienced this and if you were able to resolve it:
a) when using a larger font, for example: "Arial" -20, xBrowser starts showing the line, columns with different colors;
b) when setting the size of the columns, it does not display the browser;
I clarify that the browser does not have a header, lines and vertical and horizontal scrolling, it looks like a form.
Below is the browser code
- Code: Select all Expand view RUN
DEFINE FONT oFontBrowser NAME "Arial" SIZE 0, -20 BOLD
@ nLinha, nColuna XBROWSE oBrowser SIZE nLargura, nAltura ;
OF oApp():oDialog ;
COLUMNS 1, 2, 3, 4, 5, 6, 7 ; //, 8 ;
FONT oFontBrowser ;
NOBORDER PIXEL ;
DATASOURCE oApp():aArray
WITH OBJECT oBrowser
:nMarqueeStyle := MARQSTYLE_NOMARQUEE
:nColDividerStyle := LINESTYLE_NOLINES //LINESTYLE_BLACK
:nRowDividerStyle := LINESTYLE_NOLINES
:nHeadDividerStyle := LINESTYLE_NOLINES
:lColDividerComplete := .F.
:lUpdate := .T.
:lHScroll := .F.
:lVScroll := .F.
:lHeader := .F.
:l2007 := .F.
:lFlatStyle := .T.
:lRecordSelector := .F.
:lDrawBorder := .F.
:nStretchCol := STRETCHCOL_WIDEST
:nRowHeight := 40
:bLDblClick := { || oBrowser:Refresh(), oBrowser:GoBottom(), oGet:Setfocus() }
:bRClickData := { || oBrowser:Refresh(), oBrowser:GoBottom(), oGet:Setfocus() }
:bLClicked := { |r,c,f,o| oBrowser:Refresh(), oBrowser:GoBottom(), oGet:Setfocus() }
:bClrStd := { || { CLR_BLACK, nRGB( 255, 255, 128 ) } }
:bClrSel := { || { CLR_BLACK, nRGB( 255, 255, 128 ) } }
:bClrSelFocus := { || { CLR_BLACK, nRGB( 255, 255, 128 ) } }
WITH OBJECT :aCols[1]
:nWidth := oApp():aColunaBrowser[ 1 ]
:nDataStrAlign := AL_LEFT
END
WITH OBJECT :aCols[2]
:nWidth := oApp():aColunaBrowser[ 2 ]
:nDataStrAlign := AL_RIGHT
END
WITH OBJECT :aCols[3]
:nWidth := oApp():aColunaBrowser[ 3 ]
:nDataStrAlign := AL_LEFT
END
WITH OBJECT :aCols[4]
:nWidth := oApp():aColunaBrowser[ 4 ]
:nDataStrAlign := AL_RIGHT
END
WITH OBJECT :aCols[5]
:nWidth := oApp():aColunaBrowser[ 5 ]
:nDataStrAlign := AL_LEFT
END
WITH OBJECT :aCols[6]
:nWidth := oApp():aColunaBrowser[ 6 ]
:nDataStrAlign := AL_RIGHT
END
WITH OBJECT :aCols[7]
//:nWidth := oApp():aColunaBrowser[ 7 ]
:nDataStrAlign := AL_RIGHT
END
:SetBackGround( ".\imagens\fundo.png", BCK_FILL )
:CreateFromCode()
END
Note that to show the columns, I had to inhibit the measurements of the last column.
Thank you very much in advance
Att.
Oliveiros Junior