GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

plotting radar data

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
strafer



Joined: 20 May 2006
Posts: 1

PostPosted: Sat May 20, 2006 5:58 pm    Post subject: plotting radar data Reply with quote

I am using the following code to plot the target on the window.

gdk_color_alloc(gdk_colormap_get_system(), &color);
gdk_gc_set_foreground(gc,&color);
gdk_draw_arc(pix, gc,true,p->x,p->y,4,4,0,360*64);

But I would like to place an object instead of the point(target) so that the object moves when I change the x and y position of the object. Right now the previous point remains on the screen even after I plot a new point on the screen. Basically I would like to move the point around the screen so that only one point is visible at a time. If someone could send me a code for creation of objects or icons which can be moved around the screen unlike a point which is retained on the screen. Another problem with the point is that once I minimize the screen the point is rubbed off. Can anyone tell me how to create objects at run time and move them on the screen? My email id is strafer58@yahoo.com.au.
Thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP