[Gambas-devel] TabStrip bug?

Benoit Minisini gambas at ...1...
Tue Feb 22 11:01:24 CET 2005


On Saturday 19 February 2005 16:32, Daniel Campos wrote:
> Hi Benoît:
>
> I do not understand very well the "Current" property from TabStrip control.
> The code returns the object itself:
>
> BEGIN_PROPERTY(CTABSTRIP_current)
>
>   THIS->index = WIDGET->currentPageIndex();
>   RETURN_SELF();
>
> END_PROPERTY
>
> However the property is defined as:
>
> GB_PROPERTY_READ("Current", "i", CTABSTRIP_current),
>
> It returns a reference to the object as an integer ?????
>
> I think this is a bug, and should be replaced as:
>
> GB_PROPERTY_READ("Current", ".Tab", CTABSTRIP_current),
>
>
> Is this true?
>
>
> Regards,
>
> D. Campos
>
>

A thoughtless blunder yet... Thanks for the fix.

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list