wxPaintEvent not working while using with class wxStaticText

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Uma
Earned a small fee
Earned a small fee
Posts: 15
Joined: Mon Jul 16, 2012 10:44 am

wxPaintEvent not working while using with class wxStaticText

Post by Uma » Mon Dec 02, 2013 5:28 am

In RedHat 5.0 Linux Version, wxPaintEvent not working while using with class wxStaticText. In Windows its working fine. Can anyone help me?

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2465
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxPaintEvent not working while using with class wxStatic

Post by PB » Mon Dec 02, 2013 7:08 am

I know nothing about Linux but I guess this remark
Please notice that in general it is impossible to change the drawing of a standard control (such as wxButton) and so you shouldn't attempt to handle paint events for them as even if it might work on some platforms, this is inherently not portable and won't work everywhere.
is there for a reason.

Nunki
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 218
Joined: Fri Sep 14, 2012 8:26 am
Location: Kontich, Belgium
Contact:

Re: wxPaintEvent not working while using with class wxStatic

Post by Nunki » Mon Dec 02, 2013 7:44 am

Hi,
Can you elaborate on what you are trying to do ? Do you want to display some static text and change it while the program runs ? Do you want to change static text - usually used as titles in a dialog ?

regards,
Nunki

Post Reply