【发布时间】:2014-05-03 08:58:33
【问题描述】:
如何将一个小部件放在另一个小部件的前面? 我想把timeLeft Label 放在DrawingArea框的前面
我的代码:
box.SetSizeRequest((int)Math.Floor(size*2.5), size);
box.ExposeEvent += boxExpose;
theMainWindow.winFix.Put(box, x, y);
box.Show();
Pango.FontDescription fontdesc = Pango.FontDescription.FromString("Lucida Console " + (size - 6));
timeLeft.ModifyFont(fontdesc);
timeLeft.SetSizeRequest((int)Math.Floor(size*2.5)-6, size-6);
theMainWindow.winFix.Put(timeLeft, x+3, y+3);
timeLeft.Show();
【问题讨论】:
标签: mono widget label gtk# drawingarea