>George,
> How could I reference to Toolbar buttons by key? I known that if by index will be like this:
> Thisform.tbrtoolbar.buttons(i).enabled = .t.
> Again, if I set the style of button as 4-placeholder, how to specify the width and add new control as combo box in it??
>
>Thank you
John,
As I recall, there's no way, outside of dropping a combo on the menu, of including it. Then it simply sits on top of it, and, if you allow user customization, it won't be included. You can, however, indicate that it's a button menu.
The key is used mostly in conjunction with the buttonclick event. The clicked button is passed to the event. The key is simply a property of the button. (ie. IF button.key =). You can also reference the individual button's properties by assign the button to a variable (ie oButton = Thisform.tbrtoolbar.buttons(i)) and reference the button properties that way.
George
Ubi caritas et amor, deus ibi est