Re: How wide can a widget get ?
- From: Rob Clack <rnc sanger ac uk>
- To: "Nix N. Nix" <nix go-nix ca>, gtk-app-devel-list gnome org
- Cc:
- Subject: Re: How wide can a widget get ?
- Date: Wed, 24 Nov 2004 08:34:06 +0000
There's a limit to how high and wide X windows can get. I asked the
same question a while ago and here's what I got back from Jody Goldberg.
We ended up keeping track of where we are and setting the scrolled
region to a max of about 30k. This means, of course, that if you want
to move to an object that's outside the scrolled region, you have to
reset it to include your target object before scrolling to it. You
still use a scrolled window, but control it more manually.
Hope this helps
Rob
------------------------------------------------------------------
On Wed, Oct 06, 2004 at 09:06:20AM +0100, Rob Clack wrote:
>>
>> Specifically, when the box exceeds about 33000 units (world units, I
>> think) in length, its display becomes erratic
This is a known problem. The underlying X drawing mechanism uses 16
bit sizes for things. It's also not terribly smart about clipping
in some versions. You'll want to only draw the portion of the line
that is actually displayed. It would be nice if foo/gnome canvas
did this automagicly, but none of us have sat down and written it.
------------------------------------------------------------------
Nix N. Nix wrote:
Hi!
What's the maximum width I can set a widget to ? I end up attempting to
set the width of one of my drawing area widgets to 66327, and it doesn't
seem to want to go that wide. Is there an inherent limit to the width of
a widget ?
The drawing area is inside a scrolled window, so it doesn't cause my app
to become extremely wide. It's not a huge drawing area, either, because
it's only about 50 - 100 pixels tall, so I don't envision memory to be a
problem, but I could be wrong.
Should I start implementing my own scrolling, instead of using a
scrolled window ?
I would appreciate any comments you can offer. Thanks !
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For every action, there is an equal and opposite government program.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rob Clack Acedb Development, Informatics Group
email: rnc sanger ac uk Wellcome Trust Sanger Institute
Tel: +44 1223 494883 Wellcome Trust Genome Campus
Fax: +44 1223 494919 Hinxton Cambridge CB10 1SA
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]