Hi Francesco: for WHEN/VALID you can use VALID property (not implemented at
this moment, but I will implement it before release the first HbQtCommand
version.
Ex:

DEFINE TEXTBOX t1
   VALUE "Initial Value"
   VALID myRoutineForValid() // Need Return .T. or .F.
END TEXTBOX

The HbQtCommand and his documentation are under construction.

Replying your question (Valid into LostFocus, the alternative way...):

For Ex: Valid that len of TextBox is less than 16 characters

Function MyRoutineForValid()
   if len( GetProperty( "win" , "t1" , "value" ) ) >= 16
      HbQtC_MsgInfo( "Len for TextBox greater than 15" )
      // with the next sentence you return focus to t1 textbox
      DoMethod( "win" , "t1" , "setfocus" )
   endif
Return NIL

For see examples, you can open the index.html into
/hbqtcommand/doc/htmlhelp/

or

for running a real sample, and see a complete sample about HbQtCommand
controls (widgets) you can compile the MAINDEMO located in
/hbqtcommand/samples/

Read the readme into /hbqtcommand/samples/ for a little guide to compile
maindemo in Windows and/or Linux

Remember that HbQtCommand and his documentation is under construction

Regards

CdQ


On Sat, Feb 27, 2010 at 10:00 AM, francesco perillo <fperi...@gmail.com>wrote:

> Thank you for your reply.
>
> I still had no time to look at HbQtCommand documentation... I hope to
> do it tomorrow
>
> > DEFINE TEXTBOX t1
> >    VALUE "Initial Value"
> >    ONLOSTFOCUS myRoutineForValid()
> > END TEXTBOX
>
> What happens when myRoutineForValid() returns .F. ?
> Or when myRoutineForValid() returns .T. and the following editbox
> myRoutineForWHEN returns .F. ? Is there a upper layer to handle the
> "get" system in a clipper style?
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to