Error in gb.form (ValueBox) in Gambas 3

View: New views
6 Messages — Rating Filter:   Alert me  

Error in gb.form (ValueBox) in Gambas 3

by David Villalobos Cambronero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Error in gb.form (ValueBox)

I found an error in gb.form (Gambas 3) the event LostFocus in ValueBox does not works. Can someone validate?

Attached an example.

Best regards

David



     

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Error.valuebox-0.0.1.tar.gz (10K) Download Attachment

Re: Error in gb.form (ValueBox) in Gambas 3

by Benoit Minisini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On mardi 24 juin 2008, David Villalobos Cambronero wrote:

> Error in gb.form (ValueBox)
>
> I found an error in gb.form (Gambas 3) the event LostFocus in ValueBox does
> not works. Can someone validate?
>
> Attached an example.
>
> Best regards
>
> David

It is not really a bug, as ValueBox is actually a container that embeds other
controls. So it cannot get nor lost the focus!

I don't know if it is possible to fix that, because we need to let the
ValueBox raises the LostFocus or GotFocus event by itself when one of its
children gets the event.

I don't know if redeclaring the LostFocus and GotFocus event in the inherited
class work... I will check and think abour that.

--
Benoit Minisini

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Re: Error in gb.form (ValueBox) in Gambas 3

by Benoit Minisini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On mardi 24 juin 2008, Benoit Minisini wrote:

> On mardi 24 juin 2008, David Villalobos Cambronero wrote:
> > Error in gb.form (ValueBox)
> >
> > I found an error in gb.form (Gambas 3) the event LostFocus in ValueBox
> > does not works. Can someone validate?
> >
> > Attached an example.
> >
> > Best regards
> >
> > David
>
> It is not really a bug, as ValueBox is actually a container that embeds
> other controls. So it cannot get nor lost the focus!
>
> I don't know if it is possible to fix that, because we need to let the
> ValueBox raises the LostFocus or GotFocus event by itself when one of its
> children gets the event.
>
> I don't know if redeclaring the LostFocus and GotFocus event in the
> inherited class work... I will check and think abour that.

I said rubbish... ValueBox inherits TextBox, so LostFocus should work. Which
problem do you have exactly?

--
Benoit Minisini

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Parent Message unknown Re: Error in gb.form (ValueBox) in Gambas 3

by David Villalobos Cambronero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The event is never reached.

See the attached example.

Regards

David

----- Original Message ----
From: Benoit Minisini <gambas@...>
To: mailing list for gambas developers <gambas-devel@...>
Sent: Tuesday, June 24, 2008 3:27:50 PM
Subject: Re: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3

On mardi 24 juin 2008, Benoit Minisini wrote:

> On mardi 24 juin 2008, David Villalobos Cambronero wrote:
> > Error in gb.form (ValueBox)
> >
> > I found an error in gb.form (Gambas 3) the event LostFocus in ValueBox
> > does not works. Can someone validate?
> >
> > Attached an example.
> >
> > Best regards
> >
> > David
>
> It is not really a bug, as ValueBox is actually a container that embeds
> other controls. So it cannot get nor lost the focus!
>
> I don't know if it is possible to fix that, because we need to let the
> ValueBox raises the LostFocus or GotFocus event by itself when one of its
> children gets the event.
>
> I don't know if redeclaring the LostFocus and GotFocus event in the
> inherited class work... I will check and think abour that.
I said rubbish... ValueBox inherits TextBox, so LostFocus should work. Which
problem do you have exactly?

--
Benoit Minisini

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel



     

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Error.valuebox-0.0.1.tar.gz (10K) Download Attachment

Re: Error in gb.form (ValueBox) in Gambas 3

by Benoit Minisini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On mardi 24 juin 2008, David Villalobos Cambronero wrote:
> The event is never reached.
>
> See the attached example.
>
> Regards
>
> David
>

I understand: the changes made by Robert Rowe made the ValueBox inherits
UserControl and not TextBox anymore, and so its LostFocus event is not raised
anymore. As I told in my first explanation!

Alas I have no good solution at the moment...

--
Benoit Minisini

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Parent Message unknown Re: Error in gb.form (ValueBox) in Gambas 3

by David Villalobos Cambronero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, always is good to know...

regards

David

----- Original Message ----
From: Benoit Minisini <gambas@...>
To: mailing list for gambas developers <gambas-devel@...>
Sent: Wednesday, June 25, 2008 2:35:30 PM
Subject: Re: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3

On mardi 24 juin 2008, David Villalobos Cambronero wrote:
> The event is never reached.
>
> See the attached example.
>
> Regards
>
> David
>

I understand: the changes made by Robert Rowe made the ValueBox inherits
UserControl and not TextBox anymore, and so its LostFocus event is not raised
anymore. As I told in my first explanation!

Alas I have no good solution at the moment...

--
Benoit Minisini

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel



     

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel
LightInTheBox - Buy quality products at wholesale price