[Gambas-user] configuring toolbar in code

Benoît Minisini gambas at ...1...
Fri Aug 28 12:44:51 CEST 2009


> On Friday 28 August 2009 08:14:51 Benoît Minisini wrote:
> > > On Friday 28 August 2009 07:37:46 Benoît Minisini wrote:
> > > > > I wondered if anyone had the code/knew how to make ones program
> > > > > react to the user clickign on that little vertical button on the
> > > > > end of a toolbar - to popup  a list of available tool buttons and
> > > > > allow drag-n-drop, like in the gambas IDE. I trolled the gambas3
> > > > > ide code but couldn't find it.
> > > > >
> > > > > Regards
> > > > >
> > > > > Richard
> > > >
> > > > It is automatic. Otherwise you have the Action.ConfigureToolbar()
> > > > method if you really want to open the configuration toolbar by hand.
> > > >
> > > > Regards,
> > >
> > > Nothing popups up when I click mine, must be doing something wrong.
> > > I'll take another look.
> > >
> > > Richard
> >
> > You must define the toolbar key property, and the action property of each
> > toolbar control.
> >
> > Regards,
>
> Don't suppoise you could point me to a sample code in the IDE?
>

There is no code at all. You define these properties in the property sheet. 
Look at the main toolbar in the FMain form of the IDE for example, and in the 
menus.

-- 
Benoît




More information about the User mailing list