- Code: Select all Expand view RUN
- #include "FiveWin.ch"
Function test()
local oDlg,ofont
local oBrowse
local aData:= {}
local oBrush1,oBrush2
local obtn
DEFINE BRUSH oBrush1 STYLE HORIZONTAL
DEFINE BRUSH oBrush2 STYLE HORIZONTAL
DEFINE FONT oFont NAME "TAHOMA" SIZE 00, -12
DEFINE DIALOG oDlg SIZE 400,500 PIXEL FONT oFont TRUEPIXEL ;
TITLE "test" TRANSPARENT COLOR CLR_BLACK,CLR_WHITE
@ 10,10 BTNBMP obtn CENTER SIZE 96,96 PIXEL OF oDlg NOROUND 2007
obtn:bClrGrad := { |lInvert| If( lInvert, oBrush2:hBrush, oBrush1:hBrush ) }
obtn:disable()
ACTIVATE DIALOG oDlg CENTERED
oFont:End()
RELEASE BRUSH oBrush1,oBrush2
RETURN NI
and it run ok as you can see only it show black lines
How I can make to add a color ? for a sample red ?
I made
DEFINE BRUSH oBrush1 STYLE HORIZONTAL COLOR CLR_RED it run ok on easy dialog
but I need on Tfolderex class and it not run ok
I tried to change the color of border for a sample
:nClrBorder := { ||nRgb(218,214,179) } but not work