I finished the work on the xbrowse-tools ( page 1 )
for Header and Footer
The download for this version :
http://www.pflegeplus.com/fw_downloads/xbrowsetest.zip
There is still one little problem :
changing with the PAINT-Button fonts at runtime.
The Test-browser is painted on the main-dialog.
The settings are done in a folder-page.
---------------------------------------------
The Button < PAINT > calls this function.
Everything works, only the font ( size and color ) i couldn't change
After solving this problem, i can do the download for the forum.
- Code: Select all Expand view RUN
// -------- PAINT BROWSER called from button < PAINT > --------------
FUNCTION PAINT_BROWSE(oLbx0)
// Working ( values from color-selections and sliders )
// -----------------------------------------------------------
oLbx0:bClrGrad := { | lInvert | If( ! lInvert, ;
{ { nMOVE1, BR_COLOR1, BR_COLOR2 }, ;
{ nMOVE1,BR_COLOR2,BR_COLOR1 } }, ;
{ { nMOVE2,BR_COLOR3,BR_COLOR2 }, ;
{ nMOVE2,BR_COLOR2,BR_COLOR3 } } ) }
// Working ( value from slider )
// ---------------------------------
oLbx0:nHeaderHeight := BRWHEADER
// Working ( value from slider )
// ----------------------------------
oLbx0:nFooterHeight := BRWFOOTER
// NOT working (some tests)
// ------------------------------
oBrwFont:End()
oBrwFont := TFont():New("Arial", ,-18,.F.,.F. , , , ,.F. )
oLbx0:oFont := oBrwFont // new Font
oLbx0:bClrHeader := { || { 128, 0 } } // new Color RED
// new color, using a var from collection
// --------------------------------------------
* oLbx0:bClrHeader := { || { BR_TCOLOR, 0 } }
oLbx0:Refresh()
RETURN( NIL )
Any solution for this ?
Regards
Uwe