I've been away from wx development for a while, so I hope this problem is easily solved. (Haven't found any clean resolution via googling.)
I want to place a label on a parent panel, and be able to change its text programmatically during execution. The first thing I ran into is that StaticText apparently doesn't provide a method to change the text.
So OK, I replaced it with a Text control, and started trying to make it look like a static text: read only, no border, black text, not grayed out, with a background the same as the parent. I couldn't find a clean way to do this, in particular the background.
I'd think that someone has had the same need/desire, but searching didn't turn up anything. Any pointers appreciated.
On Tue, 2012-03-13 at 13:03 -0700, Don Dwiggins wrote:
I've been away from wx development for a while, so I hope this problem
is easily solved. (Haven't found any clean resolution via googling.)
I want to place a label on a parent panel, and be able to change its
text programmatically during execution. The first thing I ran into is
that StaticText apparently doesn't provide a method to change the text.
So OK, I replaced it with a Text control, and started trying to make it
look like a static text: read only, no border, black text, not grayed
out, with a background the same as the parent. I couldn't find a clean
way to do this, in particular the background.
I'd think that someone has had the same need/desire, but searching
didn't turn up anything. Any pointers appreciated.
You should be able to call SetLabel to change the text a StaticText
displays. Certainly my programs can do that without difficulty.
-Chris
···
On Tue, Mar 13, 2012 at 1:03 PM, Don Dwiggins <ddwiggins@advpubtech.com> wrote:
I've been away from wx development for a while, so I hope this problem is
easily solved. (Haven't found any clean resolution via googling.)
I want to place a label on a parent panel, and be able to change its text
programmatically during execution. The first thing I ran into is that
StaticText apparently doesn't provide a method to change the text.