Can Update a label on a Group control ...if yes How ?
I made
oGroupPreview:cCaption:="Preview "+str(nWBmp)+"X"+str(nHBmp)
oGroupPreview:refresh()
not run !!!!
DATA nClrBorder // not INIT value, initial value is nil
METHOD Paint() CLASS TGroup
local aSize, hOldFont, oFont
// Add this
oFont = If( ::oFont != nil, ::oFont, ::oWnd:oFont )
CallWindowProc( ::nOldProc, ::hWnd, WM_PAINT, ::hDC, 0 )
// Add this
if !HB_IsNIL( ::nClrBorder )
RoundBox( ::hDC, 0, Int( Abs( oFont:nHeight ) / 2 ) + 1, ::nWidth, ::nHeight - 1, 0, 0, ::nClrBorder )
endif
if IsAppThemed() .and. ! Empty( ::cCaption )
// Remove this
//oFont = If( ::oFont != nil, ::oFont, ::oWnd:oFont )
.../...
@ 10, 20 GROUP oGroup1 TO 60, 120 ;
PROMPT " HOLA " OF oParent ;
COLOR Rgb( 32, 32, 32 ), CLR_WHITE ;
PIXEL FONT oFont4
// Add this
oGroup1:nClrBorder := CLR_BLUE
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 72 guests