[Gtk-sharp-list] Entry position in a Table
jon at jcosby.com
Mon Nov 26 15:25:28 EST 2007
Not exactly what comes to mind when I think of "widget", but it works.
Andrew York wrote:
> I believe this should be accomplished in the parent container, using the
> Gtk.Alignment widget in the table cell and then putting the textbox in
> the Gtk.Alignment widget.
> I hope this helps
> Jon Cosby wrote:
>> There seem to be three ways to align text in an Entry (Alignment,
>> Position, Xalign) but nothing that aligns the widget itself. I have
>> trackEntry = new Entry();
>> trackEntry.WidthRequest = 90;
>> trackEntry.HeightRequest = 30;
>> trackEntry.Xalign = 0;
>> table1.Attach(trackEntry, 1, 2, 4, 5, AttachOptions.Shrink,
>> AttachOptions.Shrink, 1, 1);
>> but the Entry widget is center-aligned. It only seems to effect the
>> cursor/text. I've also looked at Position but that doesn't make any
>> difference. Any suggestions?
>> Jon Cosby
>> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
More information about the Gtk-sharp-list