Antonio Linares wrote:Rick,
Very good idea! thanks
Frances,
have you tried it ?
Antonio,
No. I already modify that function. But I will re-create on my testbed. And follow Rick's suggestion. I will post results here.
Antonio Linares wrote:Rick,
Very good idea! thanks
Frances,
have you tried it ?
Antonio Linares wrote:Frances,
Could you post your rc (the portion for such dialog) here ? thanks
DLG_ADDCALLER DIALOGEX 0,0,240,63
FONT 9,"Verdana",0,0,0
STYLE NOT WS_VISIBLE|WS_CHILDWINDOW|WS_BORDER
BEGIN
CONTROL "",4001,"Button",WS_CHILDWINDOW|WS_VISIBLE|BS_GROUPBOX,8,10,224,32,WS_EX_TRANSPARENT
CONTROL "&First Name",2003,"Static",WS_CHILDWINDOW|WS_VISIBLE,12,18,38,9
CONTROL "",1002,"Edit",WS_CHILDWINDOW|WS_VISIBLE|WS_BORDER|WS_TABSTOP,10,28,101,12
CONTROL "MI",2005,"Static",WS_CHILDWINDOW|WS_VISIBLE,114,18,10,9,WS_EX_TRANSPARENT
CONTROL "X",2004,"Edit",WS_CHILDWINDOW|WS_VISIBLE|WS_BORDER|WS_TABSTOP,112,28,16,12
CONTROL "Last Name",2007,"Static",WS_CHILDWINDOW|WS_VISIBLE,132,18,38,9,WS_EX_TRANSPARENT
CONTROL "XXX",1006,"Edit",WS_CHILDWINDOW|WS_VISIBLE|WS_BORDER|WS_TABSTOP,129,28,101,12
CONTROL "Confirm",3010,"Button",WS_CHILDWINDOW|WS_VISIBLE|WS_TABSTOP|BS_DEFPUSHBUTTON,76,46,42,14
CONTROL "Cancel",3011,"Button",WS_CHILDWINDOW|WS_VISIBLE|WS_TABSTOP,122,46,42,14
CONTROL "",3014,"Button",WS_CHILDWINDOW|WS_VISIBLE|WS_TABSTOP,229,1,10,10
END
DLG_ADDCALLER DIALOGEX 0,0,240,63
FONT 9,"Verdana",0,0,0
STYLE NOT WS_VISIBLE|WS_CHILDWINDOW|WS_BORDER
BEGIN
CONTROL "&First Name",2003,"Static",WS_CHILDWINDOW|WS_VISIBLE,12,18,38,9
CONTROL "",1002,"Edit",WS_CHILDWINDOW|WS_VISIBLE|WS_BORDER|WS_TABSTOP,10,28,101,12
CONTROL "MI",2005,"Static",WS_CHILDWINDOW|WS_VISIBLE,114,18,10,9,WS_EX_TRANSPARENT
CONTROL "X",2004,"Edit",WS_CHILDWINDOW|WS_VISIBLE|WS_BORDER|WS_TABSTOP,112,28,16,12
CONTROL "Last Name",2007,"Static",WS_CHILDWINDOW|WS_VISIBLE,132,18,38,9,WS_EX_TRANSPARENT
CONTROL "XXX",1006,"Edit",WS_CHILDWINDOW|WS_VISIBLE|WS_BORDER|WS_TABSTOP,129,28,101,12
CONTROL "",4001,"Button",WS_CHILDWINDOW|WS_VISIBLE|BS_GROUPBOX,8,10,224,32,WS_EX_TRANSPARENT
CONTROL "Confirm",3010,"Button",WS_CHILDWINDOW|WS_VISIBLE|WS_TABSTOP|BS_DEFPUSHBUTTON,76,46,42,14
CONTROL "Cancel",3011,"Button",WS_CHILDWINDOW|WS_VISIBLE|WS_TABSTOP,122,46,42,14
CONTROL "",3014,"Button",WS_CHILDWINDOW|WS_VISIBLE|WS_TABSTOP,229,1,10,10
END
METHOD Paint() CLASS TGroup
local aSize, hOldFont, oFont
CallWindowProc( ::nOldProc, ::hWnd, WM_PAINT, ::hDC, 0 )
if IsAppThemed() .and. ! Empty( ::cCaption )
oFont = If( ::oFont != nil, ::oFont, ::oWnd:oFont )
ASize = GetLabelDim( ::hWnd, ::cCaption, oFont:hFont )
hOldFont = SelectObject( ::hDC, oFont:hFont )
SetBrushOrgEx( ::hDC, nBmpWidth( ::oBrush:hBitmap ) - ::nLeft, nBmpHeight( ::oBrush:hBitmap ) - ::nTop )
FillRect( ::hDC, { 0, 7, aSize[ 2 ] + 2, aSize[ 1 ] + 11 }, ::oBrush:hBrush )
SetBkMode( ::hDC, 1 )
TextOut( ::hDC, 0, 9, ::cCaption, Len( ::cCaption ) )
SelectObject( ::hDC, hOldFont )
endif
return 1
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 68 guests