yhuang@spectra.eng.hawaii.EDU (Ye Huang) (03/16/91)
Hello, Xpert, When I tried to get the geometry of a window by using XGetValues() or XGetAttributes(), the values returned (x, y, width, height) always are the root window's. I wonder if I misused them. But it seems not. The following is the way I passed parameters to them.(0,0) and 1024, 1024. XGetValues(XtDisplay(Drawing_area), XtWindow(Drawing_area), &root, &x,..) Widget Drawing_area(this is the place I am going to draw the graph). If that was not the way to get the window information, would you please advise me how to get x,y, and width and height of a window?? I am using the Xt programming. Thank you very much for your help. ---Thomas Ye Huang ---Electrical Engineering Department --- yhuang@spectra.eng.hawaii.edu