Search found 16 matches

by masteryoda
Sun Jun 22, 2008 8:02 pm
Forum: C++ Development
Topic: Displaying í and the other latin chars..how?
Replies: 7
Views: 6167

Auria wrote:Or look up Unicode tables and escape the character

"blah blah \Ux0085 blah blah"

Or write the app in english and use i18n to get translations
Auria, I tried to do a wxT("whatever\Ux00E0whatever") but it didn't work, can you give me a valid example?

Thanks!
by masteryoda
Sun Jun 22, 2008 6:22 pm
Forum: C++ Development
Topic: Access violation, how to deal with it?
Replies: 10
Views: 2431

Thanks, Stef! I'll do it!
by masteryoda
Thu Jun 19, 2008 8:33 pm
Forum: C++ Development
Topic: Access violation, how to deal with it?
Replies: 10
Views: 2431

Maybe you forgot to call setParentFrame and getParentFrame returns uninitialized pointer. erks, thanks, but I did call setParentFrame, as you can see here: BEGIN_EVENT_TABLE(MainFrame, wxFrame) EVT_MENU(ID_HELPMENU_ABOUT, MainFrame::OnAbout) EVT_MENU(ID_FILEMENU_QUIT, MainFrame::OnQuit) EVT_TIMER(I...
by masteryoda
Thu Jun 19, 2008 4:26 pm
Forum: C++ Development
Topic: Access violation, how to deal with it?
Replies: 10
Views: 2431

Auria, I clicked ACCEPT but I was mistaken, this question is not solved yet. How can I unmark it?

EDIT: Only moderators can do that. It's unaccepted :-)

Thanks, Mod!
by masteryoda
Thu Jun 19, 2008 4:20 pm
Forum: C++ Development
Topic: Access violation, how to deal with it?
Replies: 10
Views: 2431

Ok, Auria, here we go: BEGIN_EVENT_TABLE(MainPanel, wxPanel) EVT_BOOKCTRL_PAGE_CHANGING(ID_BOOK, MainPanel::OnPageChanging) EVT_BOOKCTRL_PAGE_CHANGED(ID_BOOK, MainPanel::OnPageChanged) END_EVENT_TABLE() MainPanel::MainPanel(wxFrame *frame, int x, int y, int w, int h) :wxPanel(frame, wxID_ANY, wxPoin...
by masteryoda
Wed Jun 18, 2008 7:34 pm
Forum: C++ Development
Topic: Access violation, how to deal with it?
Replies: 10
Views: 2431

And that's the method definition:

Code: Select all

void MainPanel::OnPageChanged(wxBookCtrlEvent &event)
{
    if (m_book->GetPageText(m_book->GetSelection()) != wxT("Start Page"))
        getParentFrame()->tb->EnableTool(ID_TOOLBAR_ON_HOME, false);
}
by masteryoda
Wed Jun 18, 2008 7:25 pm
Forum: C++ Development
Topic: Access violation, how to deal with it?
Replies: 10
Views: 2431

Can you post related code? Seeing how you get hold of that pointer could help clear why it may not be valid... Also if you use Connect() beware of the all-time-classics wrong event sink parameter problem Ok, Auria, let's go: class MainPanel: public wxPanel { public: MainPanel(wxFrame *frame, int x,...
by masteryoda
Wed Jun 18, 2008 6:14 pm
Forum: C++ Development
Topic: Access violation, how to deal with it?
Replies: 10
Views: 2431

Access violation, how to deal with it?

Well, I think it's simple to explain: I have a wxFrame that has a wxToolBar. That wxFrame also has a wxPanel with a wxBookCtrl. This wxBookCtrl has an event called OnPageChanged. My wxPanel has a pointer to wxFrame, and I expected that wxPanel would access wxFrame's items, but I was wrong. Inside th...
by masteryoda
Sat Jun 07, 2008 1:50 am
Forum: C++ Development
Topic: wxToolBar and separators - I think I found a wxBug...
Replies: 0
Views: 530

wxToolBar and separators - I think I found a wxBug...

Hello, wxPeople! I think I need your wxHelp. Take a look at this snippet in my MyFrame::MyFrame(): tb = new wxToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTB_FLAT | wxTB_NODIVIDER); tb->SetToolBitmapSize(wxSize(32, 32)); wxImage hand("handsdown.png", wxBITMAP_TYPE_PNG); wxIm...
by masteryoda
Fri May 23, 2008 8:51 pm
Forum: C++ Development
Topic: [Beginner] Can a child panel call his parent's methods?
Replies: 6
Views: 1722

Max, you rule! Well, Refresh() did work, but Update() did not. I made this way: MyChildPanel_1::OnCombo(blah blah blah) { (blah blah blah) this->GetParentPanel()->GetMyChildPanel_2()->Refresh(); (blah blah blah) } and that's fine! If by chance you want to run the .exe (curiosity), send me an e-mail ...
by masteryoda
Fri May 23, 2008 7:58 pm
Forum: C++ Development
Topic: [Beginner] Can a child panel call his parent's methods?
Replies: 6
Views: 1722

It worked! It worked! Max, you're the man! Thanks a lot for you help, and I know all you said is because your intentions are good. I had C++ classes years ago, and I forgot some basic stuff, but my project is doing well! wxWidgets is very simple to handle with, and I'm using Chart Director for finan...
by masteryoda
Fri May 23, 2008 6:23 pm
Forum: C++ Development
Topic: [Beginner] Can a child panel call his parent's methods?
Replies: 6
Views: 1722

Thanks, Max! I know that by learning C++ I can have all my questions solved, but I'm in a hurry to write some code for this college project I'm doing. Now I have a problem in my "main.h" file (it's a C++ problem, I think it's very easy for you to help me in this): First I declare class My...
by masteryoda
Fri May 23, 2008 3:26 pm
Forum: C++ Development
Topic: [Beginner] Can a child panel call his parent's methods?
Replies: 6
Views: 1722

[Beginner] Can a child panel call his parent's methods?

I was dealing with the problem below: the "OnCombo" of MyChildPanel_1 must get MyMainPanel's "atrib". http://img391.imageshack.us/img391/2135/teladc9.png I solved it moving the "OnCombo" event to MyMainPanel, but I think it's not the right way. I also tried using this->...
by masteryoda
Sat May 17, 2008 3:03 am
Forum: C++ Development
Topic: [Beginner] Simple question about wxPanel
Replies: 3
Views: 1105

Add a panel to the frame that will expand to the entire frame. Then add your other panels (1, 2,3+) to the top panel. They won't expand to take up the entire panel. -Max Thanks, man, but is it possible to do the way I asked, in order to keep the "dark gray background", or it's just imposs...
by masteryoda
Sat May 17, 2008 2:42 am
Forum: C++ Development
Topic: [Beginner] Simple question about wxPanel
Replies: 3
Views: 1105

[Beginner] Simple question about wxPanel

Is it possible to have a frame with only one wxPanel and this wxPanel will not fullfill the entire frame? A simple example of what I want: if I write this MyFrame::MyFrame( const wxString& title) : wxFrame(NULL, wxID_ANY, title) { // the minimal code m_panel1 = new wxPanel( this , wxID_ANY, wxP...