Re: [Harbour] Re: FocusIn and FocusOut in widgets

2010-02-27 Thread CarozoDeQuilmes
Hi Francesco, I only use HbQt to make a final framework based in harbour user commands Pritpal Bedi is the Qt expert and HbQt guru. Regards CdQ On Sat, Feb 27, 2010 at 12:36 PM, francesco perillo wrote: > Thank you for your sample. > > I'm reading a book on Qt but it is C++ based. It's really i

Re: [Harbour] Re: FocusIn and FocusOut in widgets

2010-02-27 Thread francesco perillo
Thank you for your sample. I'm reading a book on Qt but it is C++ based. It's really interesting what you can do with Qt. In C++ you can easily subclass widgets to extend their functionalities, add slots and signals... is it possible to do this with hbqt/hbqtcommand ? in C++ or Harbour ? Frances

Re: [Harbour] Re: FocusIn and FocusOut in widgets

2010-02-27 Thread CarozoDeQuilmes
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

Re: [Harbour] Re: FocusIn and FocusOut in widgets

2010-02-27 Thread francesco perillo
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

Re: [Harbour] Re: FocusIn and FocusOut in widgets

2010-02-27 Thread CarozoDeQuilmes
I thinks that yes. In HbQtCommand we use it for execute an user action on GotFocus and/or LostFocus Sample: DEFINE TEXTBOX t1 VALUE "Initial Value" ONLOSTFOCUS myRoutineForValid() END TEXTBOX Regards CdQ On Sat, Feb 27, 2010 at 5:21 AM, francesco perillo wrote: > Is this a way to have

Re: [Harbour] Re: FocusIn and FocusOut in widgets

2010-02-27 Thread francesco perillo
Is this a way to have WHEN/VALID implementation ? Francesco ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour

Re: [Harbour] Re: FocusIn and FocusOut in widgets

2010-02-26 Thread CarozoDeQuilmes
Work very good !!! Many Thanks This is my sample for test: *#include "hbqt.ch"* * * *REQUEST HB_QT* * * *STATIC s_qApp* * * *STATIC pEvents* * * */*--*/* * * *INIT PROCEDURE Qt_Start()* * * * hbqt_errorsys()* * * * s_qApp :=

[Harbour] Re: FocusIn and FocusOut in widgets

2010-02-26 Thread Pritpal Bedi
CarozoDeQuilmes wrote: > > Hi Pritpal, are implemented the FocusIn and FocusOut events in widget (not > Windows, it work fine for my), for example TextBox ??? > Try something like: #include "hbqt.ch" pEvents := Qt_Events_New() qWidget := QWidget():new() qWidget:installEventFilt