Re: [gtk-list] drawing area widget
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] drawing area widget
- Date: Mon, 26 Apr 1999 17:55:54 -0400 (EDT)
On Tue, 27 Apr 1999, Victor STANESCU wrote:
> is it possible to find out the size of a drawingarea widget as it was
> allocated after packing? and not just the size that i want it to have?
>
Look at the "scribble" example near the end of the Gtk tutorial; you want
to connect to configure_event
> if i put scrollbars to a drawing area, it can be larger than the size
> displayed on screen and move around using them, or i have to simulate the
> action of scrollbars myself?
>
You have to manually implement scrollbars for a drawing area (that is, you
have to keep up with the values in the scrollbar's adjustment and figure
out what meaning to assign them. GnomeCanvas will do this automatically if
you use it instead).
> how can i draw a smaller rectangle from a larger gdk pixmap on a drawing
> area?
>
gdk_draw_pixmap() takes the size and location of the area to copy
as some of its arguments.
> finally, how can i resize a gdk pixmap ?
>
I'm not sure you can; you might have to create a new one. But I don't know
for sure.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]