(wx-users) Re: problems with wxMSW 2.8.0

Jacob (=Jouk) Jansen joukj at hrem.nano.tudelft.nl
Thu Jan 25 00:18:42 PST 2007


VZ wrote on 24-JAN-2007 17:56:25.18

>On Tue, 23 Jan 2007 11:46:46 +0100 (MET) "Jacob (=Jouk) Jansen" <joukj at hrem.nano.tudelft.nl> wrote:
>
>JJ> The windows XP version seems to be unable to display parts of the graphics.
>JJ> I just cut a small part from my program (I know in the excerpt not all
>JJ> variables are declared) (see below). The wxStaticBox sbox is displayed on
>JJ> all versions correctly. The bitmap drawn to the dc of "canvas" shows itself
>JJ> on VMS and Linux but not on the wxMSW version.
>
> Why do you draw it on wxClientDC and not on wxPaintDC in EVT_PAINT
>handler?
>
>JJ> What do I do wrong? Is there some "memory/stack-size" problem in the wxMSW
>JJ> implementation?
>
> I think the most likely problem is that wxMSW doesn't allow wxClientDC of
>a window to paint over its children.

In the application the bitmap (and also lines, text etc..) are generated by a
a procedure that is called from another language than c++ (i.e. C or F90)
By doing so the EVT_PAINT is not activated and the class of "canvas" is not
known. So you need at least a way to force the EVT_PAINT (how do I do this?).
 However, I prefer the code as it is (and works in wxGTK) so that I can
"draw directly" to the window, without manualy calling the event-handler.

What would be the reason for wxMSW not allowing wxClientDC of a window to
paint over its children? Is this a limitation of Windows?

                       Jouk
		       


Bush : All votes are equal but some votes are more equal than others.

>------------------------------------------------------------------------------<

  Jouk Jansen
		 
  joukj at hrem.nano.tudelft.nl

  Technische Universiteit Delft        tttttttttt  uu     uu  ddddddd
  Kavli Institute of Nanoscience       tttttttttt  uu     uu  dd    dd
  Nationaal centrum voor HREM              tt      uu     uu  dd     dd
  Lorentzweg 1                             tt      uu     uu  dd     dd
  2628 CJ Delft                            tt      uu     uu  dd     dd
  Nederland                                tt      uu     uu  dd    dd
  tel. 31-15-2782272                       tt       uuuuuuu   ddddddd

>------------------------------------------------------------------------------<





More information about the wx-users mailing list