Can anyone give me an example of displaying an image with wxStaticBitmap

132 views
Skip to first unread message

张臻

unread,
Nov 20, 2009, 9:55:15 AM11/20/09
to wx-u...@googlegroups.com
I am a new user of wxWidgets and I tried to used wxFormBuilder to build a
form with a wxStaticBitmap in it, but after I compiled my program succeed,
I found that when I run it, it immediately crashed. Can anyone give an
example of displaying an image with wxStaticBitmap?

--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/

Vadim Zeitlin

unread,
Nov 20, 2009, 10:17:17 AM11/20/09
to wx-u...@googlegroups.com
On Fri, 20 Nov 2009 22:55:15 +0800 ÕÅÕé <zzh...@windforce.name> wrote:

Õ> Can anyone give an example of displaying an image with wxStaticBitmap?

Whenever you have a question about using some wxFoo class the first thing
to do is to grep for it in samples directory. Doing this for wxStaticBitmap
will find a couple of examples of using it.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

张臻

unread,
Nov 20, 2009, 10:24:43 AM11/20/09
to wx-u...@googlegroups.com
在 Fri, 20 Nov 2009 23:17:17 +0800,Vadim Zeitlin <va...@wxwidgets.org>
写道:

> On Fri, 20 Nov 2009 22:55:15 +0800 ÕÅÕé <zzh...@windforce.name> wrote:
>
> Õ> Can anyone give an example of displaying an image with
> wxStaticBitmap?
>
> Whenever you have a question about using some wxFoo class the first
> thing
> to do is to grep for it in samples directory. Doing this for
> wxStaticBitmap
> will find a couple of examples of using it.
>
> Regards,
> VZ
>

Thanks very much!

Reply all
Reply to author
Forward
0 new messages