【发布时间】:2015-09-25 05:24:11
【问题描述】:
我用这段代码在工具栏上创建了一组按钮
ToolButton [] botones = new ToolButton[3];
for (int y = 0; y < botones.Length; y++)
{
botones [y] = new ToolButton (Stock.Add);
botones [y].Label = "menu" + y;
toolbar1.Insert(botones [y],toolbar1.NItems);
}
ShowAll ();
如何将信号添加到每个按钮,所以当我单击时,我会在工具栏中获得每个按钮的标签?
【问题讨论】:
标签: mono gtk monodevelop gtk#