Re: Canvas basics

Hash: SHA1

Al Hooton <al hootons org> writes:

On Thu, 2004-12-23 at 00:17 +0000, Roger Leigh wrote:

<snip lots of canvas stuff>

      Roger, have you looked at the GtkSheet object in the GtkExtra project?

      I haven't used the sheet widget very much, but I'm using the canvas and
plot widgets extensively.  From what I've seen, I believe the sheet
widget, when placed on a canvas widget, may do everything you're looking
for.  It might at least be something to look at as a possibility.

Thanks for the suggestion.  It might work quite well, and I'll have a
look into it.  However, one reason I want to use the canvas is to
learn more about it.  I'm using this simple application as an

I've updated the test program I wrote to illustrate what I'm trying to
achieve.  It's here:
I've also made a screenshot:

As you can see, the row and column headings are quite complex.  When the
user scrolls the canvas, I'd the parts to the top and left of the red
lines to stay stuck to the viewable edge of the canvas (but scroll in
one direction in the same manner as Gnumeric).  Later on, I'd like to
add column/row/region selection, cut and paste, drag and drop etc.

One other problem I've run into is text scaling.  I can use
gnome_canvas_set_pixels_per_unit to set the canvas scaling factor
(cse-mainwindow.c, line 73).  If I change this, the text does not
scale with the other canvas items.  How can I get this to work
correctly?  At a scaling factor of 1.0, I get an unreadable mess.


- -- 
Roger Leigh
                Printing on GNU/Linux?
                Debian GNU/Linux
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]