Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!olivea!mintaka!bloom-beacon!dprg-330.GOVt.shearson.COM!fgreco From: fgreco@dprg-330.GOVt.shearson.COM (Frank Greco) Newsgroups: comp.windows.x Subject: Re: Xview questions: Message-ID: <9010241329.AA02329@islanders.> Date: 24 Oct 90 13:29:29 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 47 > > 1) I have two buttons and a text item on a main window panel. Next to these > are three canvases. When I pull down my main menu it has the 'standard' mac > types of file operations, open, save, run, etc. When I launch the > running of the computational routines which write XImages into the canvases > I have a problem with the items in the panel. That is, the panel does no > repaint itself during the time the computations are running. Is there > a way to force this? Break up your repainting so that after a bit of drawing, you call notify_dispatch() to process incoming events (ie, WIN_REPAINT). Look at the example in Dan Heller's XVPM (2nd ed) 19.10.2 Explicit Dispatching for a start in the right direction. > 2) I still don't understand why I have problems with the panels and > canvases filling up the screen. I have a frame color set by the window > manager. When I create panels they have this color - this is what I want. > However, my canvases and panels are not the same color. As a result there > are little white regions of the window. This gets much more noticeable if > I resize the window. Can I fill these white regions? When I > am all done creating all the items, canvases, and panels for the main frame > I size everything with window_fit and it looks OK with the exception of the > small white panel slivers that 'fill in' the frame. I've tried reading the > frame rect and using this to resize the panel and have hasd no luck yet. I haven't seen this behavior. Although I've seen some bugs with TEXTSW's bringing along part of the frame when they scroll. > 3) I've found that hitting buttons and showing cmd_frames and such > sometimes cause small squares to appear in the xterm from which the > application was started. They appear at random places and at random > times in the execution of operating the app. Is this a bug? My app > has absolutely no prinf statements which could be spitting stuff to the > xterm. I am running Openlook 2.0 as the WM and XView 2.0. Both were > shipped with my IPC and already installed on the HD. > Yes, I've seen this one bug (the "Xacne" effect...;->). It looks like someone (OW server?) is getting confused on where to redraw the active text cursor. This doesn't happen if a vanilla MIT X server (with olwm) is used. > I'm still learning - but it basically works....... > Pretty simple isn't it? Frank G.