[Gambas-devel] About togglebuttons

Benoit Minisini gambas at ...1...
Sun May 23 20:33:57 CEST 2004


On Sunday 23 May 2004 20:12, Daniel Campos wrote:
> Hi:
>
> I've seen a difference between the 'Value' property in buttons and
> ToggleButtons:
>
>
> ->Using 'Button', when you set 'Value' to TRUE, the 'Click' event
> raises.
>
> ->Using 'ToggleButton', when you set 'Value' to TRUE' value changes,
> but 'Click' event does not raise.
>
> Is this a feature or a bug? should I emulate it in the GTK+ component
> (by default, GTK+ emits that event once you change 'toggled' state)?
>
> Regards,

Well, the current principle is that changing the value of a control 
programatically should raise the event, as if the user did it by hand.

So I must change the QT component so that setting the value of a toggle button 
raises the Click event. 

The GTK behaviour is correct.

Regards

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




More information about the Devel mailing list