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 =
gtk_drawing_area_new();gtk_widget_set_size_r
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.
***
Hello,
Le 21/07/2015, Roger Matthews 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 drawing area has the siz