CUEBANNER "REQUIRED"
karinha wrote:Márcio, não entendi nada. Explique melhor, ou poste a sua dúvida no fivewin Brasil com mais detalhes, não sei porquê você posta dúvidas no forum em inglês? No forum em espanhol, mesmo que você poste a dúvida em Português, muitos vão entender.
Abs.
Regards, saludos.
Antonio Linares wrote:Dear Marc,
I think Cristobal means this way:
@ nRow, nCol GET aGets[ 1 ] VAR aData[ 1, 2 ] ;
PICTURE aData[ 1, 3 ] SIZE nWidth - nCol * 2, 15 PIXEL OF oDlg ;
COLOR nClrTxt, CLR_WHITE CUEBANNER "REQUIRED" BOTTOMBORDER ;
INFIELD INFONT oFontI INCLRTXT CLR_GRAY ;
INCLRBORDER { | o | if( o:lFocused, o:nInClrLineB, nClrBox ) } ;
INSEPH 1 INSEPV 1 ; //INWHPEN 2 ;
INCLRLINEDIS CLR_BLUE DYNAMIC ; //GROUP
INERROR "EMPTY VALUE NOT VALID" ;
INCLRERROR CLR_BLUE, CLR_HGRAY
REDEFINE GET oActive var cActive ID 143 Font oFontB of oGrps Valid _ChkField( cActive,oActive) PICTURE "@!" UPDATE
//-------------------
Static Func _CHkField( cActive,oActive )
Local Saying
If cActive = " "
Saying := "Sorry .. the Field ACTIVE is a Required field"+CRLF
Saying += "and Can Not be left BLANK"
MsgInfo( Saying )
oActive:SetFocus()
Return(.f.)
Else
Return(.t.)
Endif
// end
cnavarro wrote:Use "CUEBANNER" clause with GET objectCUEBANNER "REQUIRED"
For use clause CUEBANNER, in you RC file, include Manifest.
// C:\FWH..\SAMPLES\RICKBAN.PRG -> By Rick Lipkin
#include "FiveWin.ch"
FUNCTION Main()
LOCAL oDlg, oBtn, oActive, cActive, oFont
cActive := SPACE(40) // "TESTE DE CUEBANNER "
SetDlgGradient( { { 1, RGB( 199, 216, 237 ), RGB( 237, 242, 248 ) } } )
DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 00, -14 BOLD
DEFINE DIALOG oDlg FROM 5, 5 TO 25, 40 TITLE "Testing CUEBANNER" FONT oFont
@ 2, 2 GET oActive VAR cActive PICTURE "@!" OF oDlg SIZE 100, 12 UPDATE ;
VALID( ChkField( cActive, oActive ) )
@ 06, 08 BUTTON "&Quit" OF oDlg SIZE 40,12 ACTION( oDlg:End() ) CANCEL
ACTIVATE DIALOG oDlg CENTERED
oFont:End()
RETURN NIL
FUNCTION CHkField( cActive, oActive )
LOCAL Saying
IF cActive = " "
Saying := "Sorry... the Field ACTIVE is a Required field" + CRLF
Saying += "and Can Not be left BLANK"
MsgInfo( Saying )
// oActive:VARPUT( "Field ACTIVE is a Required" )
// oActive:Refresh()
oActive:SetFocus()
RETURN( .F. )
ELSE
RETURN( .T. )
ENDIF
RETURN( .T. )
// FIN / END
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 57 guests