- Code: Select all Expand view RUN
- DEFINE ICON oIco FILE ".\jnet.ico"
//DEFINE BRUSH oBrush FILENAME '.\logo.jpg'
define dialog oDlg title 'ingreso de usuarios a la AppCobros ( credenciales) ' + netname() SIZE 400, 400 ICON oIco pixel transparent STYLE nOr( DS_SYSMODAL, DS_MODALFRAME ) //brush oBrush
//@ 0, 0 BITMAP oBrush FILENAME '.\logo.jpg' ADJUST NOBORDER OF oDlg SIZE 600,800 PIXEL
@005,05 say aSay [ 01 ] prompt 'login' of oDlg size 70,15 pixel
@025,05 say aSay [ 02 ] prompt 'password' of oDlg size 70,15 pixel
@045,05 say aSay [ 03 ] prompt 'num_empre' of oDlg size 70,15 pixel
@065,05 say aSay [ 04 ] prompt 'gestion' of oDlg size 70,15 pixel
@085,05 say aSay [ 05 ] prompt 'e_cod' of oDlg size 70,15 pixel
@005,75 get aGet [ 01 ] var hData['login'] of oDlg picture '@!' size 090,15 pixel valid !empty( hData['login'] )
@025,75 get aGet [ 02 ] var hData['password'] of oDlg picture '@!' size 090,15 pixel valid !empty( hData['password'] ) .and. veaLogin( hData['login'], hData['password'] )
@045,75 get aGet [ 03 ] var hData['num_empre'] of oDlg picture '999' size 090,15 pixel valid !empty( hData['num_empre'] )
@065,75 get aGet [ 04 ] var hData['gestion'] of oDlg picture '@!' size 090,15 pixel valid !empty( hData['gestion'] )
@085,75 get aGet [ 05 ] var hData['e_cod'] of oDlg picture '@!' size 060,15 pixel valid !empty( hData['e_cod'] ) .and. ;
veaE_Cod( hData['login'], hData['password'], hData['num_empre'], hData['gestion'], hData['e_cod'] )
@145,05 BUTTON aBtn [ 01 ] prompt 'Grabar' size 60, 15 action ( lGrabar := .t., oDlg:end() ) of oDlg pixel
@145,105 BUTTON aBtn [ 02 ] prompt 'Cancelar' size 60, 15 action ( lGrabar := .f., oDlg:end() ) of oDlg pixel
activate dialog oDlg Center valid( oIco:end(), .t. ) on init BuildBrush( oDlg )
function BuildBrush( oDlg )
local oImage, oBrush, aRect := oDlg:GetRect()
DEFINE IMAGE oImage FILENAME ".\logo.jpg"
oBrush := TBrush():new( ,,,, ResizeBmp( oImage:hBitmap, aRect[4], aRect[3], .T., ) ) // 1 = stretch, 2 : fitoutside, 3:fitinside
oImage:End()
oDlg:SetBrush( oBrush )
oBrush:End()
return nil
talvez una ayuda agradeceria
saludos