oFnt := TFont():New( MEMVAR->aFonts[14],, -16, .F., .F., 0, 0, 400, .F., .F., .F., 222, 3, 2, 1, , 34 )
oFnt1:= TFont():New( MEMVAR->aFonts[14],, -14, .F., .F., 0, 0, 400, .F., .F., .F., 222, 3, 2, 1, , 34 )
oFnt2:= TFont():New( MEMVAR->aFonts[14],, -22, .F., .F., 0, 0, 700, .F., .F., .F., 222, 3, 2, 1, , 34 )
DEFINE DIALOG oDlg RESOURCE 'REPORT' ;
COLOR CLR_BLACK, THEME2007 ;
FONT oFnt
oDlg:lHelpIcon := .F.
REDEFINE TITLE oHeader ID 100 OF oDlg ;
SHADOW BOTTOMLEFT SHADOWSIZE 2
oHeader:AddText( 8, 15, cRptTitle , , , , "BOTTOMLEFT" , oFnt2 , CLR_WHITE )
REDEFINE LISTBOX oLbx ;
FIELDS REP->REP_NR, REP->REP_NAME ;
FIELDSIZES 50, 100 ;
FONT oFnt ;
HEADER 'No.', 'Report Name' ;
ID 101 OF oDlg ;
COLORS RGB( 0 , 0 , 0 ),RGB( 192 , 192 , 192 ) ;
ON DBLCLICK if(empty(REP->REP_SECRET).or.(REP->REP_SECRET='Y'.and.UserRights(13)) , RPTPROMPT() , )
oLbx:bRClicked = { | nRow, nCol, nFlags | (oLbx:SetFocus(), oLbx:lButtonDown(nRow,nCol),if(UserRights(14,.T.),ShowPopup( nRow, nCol, oDlg, oLbx ), ) ) }
WbrStyles( oLbx )
oLbx:bChange := {|| (oSays:settext( MEMVAR->FindKey ) , oSays:refresh()) }
oLbx:lMChange := .F.
oLbx:lAdjLastCol:= .T.
oLbx:nLineStyle := 10
oLbx:nLineHeight := 28
oLbx:nHeaderHeight:= 29
oLbx:aHJustify := { 2, 2 }
oLbx:aJustify := { 2, 0 }
oLbx:bKeyChar = { | nKey | IIF(nKey = VK_RETURN , (iif((REP->REP_SECRET='Y'.and.UserRights(13)).or.REP->REP_SECRET<>'Y',RPTPROMPT(),MsgStop(' You can not print this report ')) , oLbx:SetFocus() ), ;
(FindRpt(nKey,oLbx),oSays:Refresh()) ) }
oLbx:bKeyDown = { | nKey |(IIF(nKey = VK_INSERT.and.UserRights(14,.F.), RptSet(.T.,oLbx,.F.) , ;
IIF(nKey = VK_ADD .and.UserRights(14,.F.), RptSet(.F.,oLbx,.F.) , ;
IIF(nKey = VK_DELETE.and.UserRights(14,.F.), DelRpt(oLbx) , ) ) ) , oLbx:Refresh()) }
REDEFINE SAY oSay PROMPT 'Search :' ID 202 OF oDlg FONT oFnt1
REDEFINE SAY oSays PROMPT FindKey ID 102 OF oDlg PICTURE '@!' FONT oFnt1 ;
COLORS CLR_BLUE, CLR_WHITE
oSays:lTransparent := .F.
REDEFINE SAY oSay PROMPT 'DOUBLE CLICK OR ENTER TO SELECT OPTION' ID 201 OF oDlg ;
FONT oFnt
ACTIVATE DIALOG oDlg CENTER RESIZE16
oFnt1:End()
oFnt2:End()
oFnt:End() <- Line 84