Re: Scrolling a Cairo drawing-area or Gtk layout

2015-07-27 Thread Jim Charlton
I did some testing of the code and also found that getting scroll bars to appear was not so easy. The only way that I could get them to appear was to modify the code with a container layout of: layout2-viewport-scrolled window-window2. Here is the section of the code that I altered. *

RE: Scrolling a Cairo drawing-area or Gtk layout

2015-07-27 Thread Roger Matthews
Hi Damien Caliste, Jim Charlton, and Pramithesh, that has worked and here is the code I used:window2 = gtk_window_new(GTK_WINDOW_TOPLEVEL);gtk_window_set_default_size(GTK_WINDOW(window2), 1000, 800);grid2 = gtk_grid_new();darea =

Re: Scrolling a Cairo drawing-area or Gtk layout

2015-07-27 Thread Damien Caliste
Hello, Le 21/07/2015, Roger Matthews roger.matth...@hotmail.com a écrit : which results from a simple straight line equation, and*/ /* that extends beyond the bounds of the window. Reading your code quickly, it seems to me that, you're drawing indeed the line outside the drawing area, *but* the