[Gtk-sharp-list] Text input in drawing area

Andy Selvig ajselvig at gmail.com
Mon Jan 11 17:43:16 EST 2010


Using fixed layout is generally a bad idea when you're making GUI's. When
you make a form that has a bunch of labels and text boxes you should
definitely NOT use fixed layout since it makes your form intolerant to
resizing and internationalization. In this case, using things like tables
and HBox/VBox are the way to go.

However, there are situations where having the ability to specify the
coordinate position of a control relative to its parent is useful, and I
think that your problem is one of them. It's a special case that goes
outside of the normal use case for GUI toolkits.

On Mon, Jan 11, 2010 at 4:31 PM, Piotr Zurek <p.zurek at gmail.com> wrote:

> Hi Andy,
>
> Thanks for a quick answer.
>
> On Tue, Jan 12, 2010 at 11:14, Andy Selvig <ajselvig at gmail.com> wrote:
> > * From what I can tell, this can be used interchangeably with
> DrawingArea,
> > except EventBox gives all the UI support out of the box. With
> DrawingArea,
> > you have to add the event masks and create new handlers for the
> interaction
> > events. EventBox lets you create a Cairo context on the Expose event just
> > like DrawingArea, so I'm not entirely sure why the latter even exists.
>
> That's one of the things that I have a problem understanding. From
> what I have read in different threads in the group and from looking at
> some other projects, people tend to avoid using the
> FixedLayout/EvenBox path. Why, is a mystery to me.
>
> I'll definitely have a look at your project to see how I could adopt
> that for my use.
>
> Thanks,
> Piotr
>
> p.s. I've just noticed your MonoWorks project. Will ask you about that
> in a separate email.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20100111/931a78a1/attachment.html 


More information about the Gtk-sharp-list mailing list