(wx-users) Re: problems with wxMSW 2.8.0 SOLVED

Jacob (=Jouk) Jansen joukj at hrem.nano.tudelft.nl
Thu Jan 25 04:23:08 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?

Thanks this put me on the right track. What solved the problem :
       1) the wxStaticbox sbox prevented everything else to be displayed. 
            On linux and VMS with wxGTK/wxGTK1 this is not a problem.
       2) In a "MOUSE-EVENT for canvas" I used wxPaintDC dc(this). When I
            changed this to wxClient( canvas ) it started to work.
	    for wxGTK/wxGTK1 on linux and VMS there is no difference

What is the reason for the differences in behaviour for wxMSW and wxGTK? I
chose wxWidgets for its portability, so that I could develop on my favorite
platform and when all works just put it on a windoze box without effort.
	 
	 
	 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