From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,23b61d4dfe367913 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news2.google.com!proxad.net!proxad.net!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: graphical output on win xp with gnavi-package Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Fri, 8 Apr 2005 16:52:22 +0200 Message-ID: <1f533a5u5ryw7.svvwqn8tb3zu.dlg@40tude.net> NNTP-Posting-Date: 08 Apr 2005 16:52:26 MEST NNTP-Posting-Host: a9a13f78.newsread2.arcor-online.net X-Trace: DXC=Kn`K_KXcoMZkVRFeeUa4iQQ5U85hF6f;TjW\KbG]kaMX]kI_X=5KeaV4kXhVRfXV3W[6LHn;2LCV^7enW;^6ZC`T<=9bOTW=MN^ X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:10335 Date: 2005-04-08T16:52:26+02:00 List-Id: On 7 Apr 2005 08:45:58 -0700, Duke Luke wrote: > now most things are working as they're supposed to. > i programmed a nice tetris with the gnavi package and everything is > great. > > i have only one problem left: > when i create a window (canvas) and paint in it, it works as long as i > dont change its focus. > any time i change its focus, the whole window becomes blank and > nothing can be drawn on it further. > => this means, one cant even click on the window to activize it, > because that would make it blank! > > why does this happen Because Windows makes "erase background" when it wants to re-draw your window. > and what can i do about it? You have to process WM_PAINT. > do i have to use another package? which? Perhaps, you do something wrong with gnavi. I didn't use it, so I can't tell. It seems that neither your program nor gnavi process WM_PAINT, so once erased window stay blank. As a guess, maybe you have told to gnavi (or else it is always so) that your window is "owner-draw", so it does not attempt to do anything about WM_PAINT. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de