[Gambas-user] ToolButton.Visible can't be set

Benoît Minisini gambas at ...1...
Thu Mar 12 18:53:47 CET 2015


Le 12/03/2015 17:58, Charlie Reinl a écrit :
> Salut Benoît,
>
> ToolButton.Visible  can't be set to false by code.
>
> see attached project.
>

You are using a ToolBar, and ToolBar manages the visibility of its 
ToolButtons behind the curtain (it loads its settings after the 
Form_Load function has been called).

To make the ToolBar understands what you want, you must act when it 
raises its "Configure" event.

Regards,

-- 
Benoît Minisini




More information about the User mailing list