Re: statictext, setlabel, and xrc

Bill Glover <[email protected]> Fri, 10 Mar 2006 08:18:22 +0000
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
g2boomjum,

I have used:

labelJobNum.Label = "This is the label text";

This seems to work for me.  I have found that I have to call 
labelJobNum.Refresh() in order for the change to show itself on the form.

Bill

Grant Goodyear wrote:
> After creating an xrc file using wxglade, and I have access a StaticText
> label with:
> 
>    StaticText labelJobNum =
>       XMLResource.GetControl(this, "labelJobNum", typeof(TextCtrl))
>       as TextCtrl;
> 
> (Is that the canonical method of accessing an xrc-specified control?)
> 
> Now I'd like to be able to change the text in "labelJobNum", but it
> seems that wx.StaticText.SetLabel doesn't exist?  What do people use as
> a workaround?
> 
> Thanks,
> g2boojum
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642