Help coming from Code Blocks

General questions regarding the usage of CodeLite
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help coming from Code Blocks

Post by eranif »

papayrus wrote:WxFormBuilder locked up when I added a tectCtrl and clicked in it. Is this a bug?
Yes, I reported this bug a while ago - it was not fixed yet. To workaround it: Alt-TAB in and out from wxformBUilder
papayrus wrote:Where can I add code like
In the constructor of the derived class.
You might also want to use m_textCtrl->ChangeValue() and not m_textCtrl->SetValue()
The former will not fire an event while the later will fire an event

Eran
Make sure you have read the HOW TO POST thread
papayrus
CodeLite Curious
Posts: 8
Joined: Fri Sep 07, 2012 11:48 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help coming from Code Blocks

Post by papayrus »

eranif wrote:
papayrus wrote:WxFormBuilder locked up when I added a tectCtrl and clicked in it. Is this a bug?
Yes, I reported this bug a while ago - it was not fixed yet. To workaround it: Alt-TAB in and out from wxformBUilder
papayrus wrote:Where can I add code like
In the constructor of the derived class.
You might also want to use m_textCtrl->ChangeValue() and not m_textCtrl->SetValue()
The former will not fire an event while the later will fire an event

Eran
I hate to sound newish but can you tell me where that is in what file exactly?
Nice I like the changevalue.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help coming from Code Blocks

Post by eranif »

In your example, you should place it in the constructor of the class: MainFrame (assuming that m_textCtrl is belonged to MainFrameBase)

Code: Select all

MainFrame::MainFrame(wxWindow *parent) : MainFrameBase( parent )
{
    m_textCtrl->ChangeVaue(wxT("Hello world"));
}
Eran
Make sure you have read the HOW TO POST thread
papayrus
CodeLite Curious
Posts: 8
Joined: Fri Sep 07, 2012 11:48 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help coming from Code Blocks

Post by papayrus »

eranif wrote:In your example, you should place it in the constructor of the class: MainFrame (assuming that m_textCtrl is belonged to MainFrameBase)

Code: Select all

MainFrame::MainFrame(wxWindow *parent) : MainFrameBase( parent )
{
    m_textCtrl->ChangeVaue(wxT("Hello world"));
}
Eran
OK that's what I did just wanted to make sure that was the proper place. Thank You very much:)
Post Reply