Re: Getting the "busy" cursor to display.

2012-04-10 Thread James Tappin
On 10 April 2012 11:36, Michael Cronenworth wrote: > James Tappin wrote: > > Is there some other call (or calls) I should be making to force the > updates > > to take place? > > I use the following for widget updates during background processing: > >while ( gtk_events_pending( ) ) >gt

RE: Making a cursor (cross hair) track between image displays

2012-04-10 Thread Tilton, James C. (GSFC-6063)
Hi GTK+ application developers: As it often happens, the inquirer often answers his own question. I finally found clear enough example of something similar in gtkmm 3 and through a little trial and error found the solution. Here it is for gtkmm 3: Glib::RefPtr ref_Gdk_window = get_window

Re: Getting the "busy" cursor to display.

2012-04-10 Thread Michael Cronenworth
James Tappin wrote: > Is there some other call (or calls) I should be making to force the updates > to take place? I use the following for widget updates during background processing: while ( gtk_events_pending( ) ) gtk_main_iteration( ); Not sure if it will work for cursor drawing

Re: Getting the "busy" cursor to display.

2012-04-10 Thread James Tappin
On 10 April 2012 10:09, wrote: > On 10 April 2012 16:58, James Tappin wrote: > > call gdk_display_sync(gdk_display_get_default()) > > call gdk_window_set_cursor(draw_window, busy_cursor) > > call gdk_display_sync(gdk_display_get_default()) > > My gtk2 program does this with: > >

Re: Getting the "busy" cursor to display.

2012-04-10 Thread jcupitt
On 10 April 2012 16:58, James Tappin wrote: >      call gdk_display_sync(gdk_display_get_default()) >      call gdk_window_set_cursor(draw_window, busy_cursor) >      call gdk_display_sync(gdk_display_get_default()) My gtk2 program does this with: gdk_window_set_cursor( w

Getting the "busy" cursor to display.

2012-04-10 Thread James Tappin
I have a gtk (fortran) application that displays a progress monitor while computing, and I would like to display the busy cursor while the program is reading a large data file. Right now what I have is: To define the busy cursor and GDK window (module [global] variables). draw_window = gtk_wi

RE: Making a cursor (cross hair) track between image displays

2012-04-10 Thread Tilton, James C. (GSFC-6063)
Hi again, I've made a lot of progress on this task - but I still am having trouble with manipulating the appearance of the Cursor. Apparently the approach for doing this has changed between gtkmm 2 and 3, and apparently all the solutions I can find via Google are for gtkmm 2. How can I change