in reply to wxWidgets Events question

Greetings, greenhorn_007.

Do you have any example code you can display, so we have some idea of how to help/direct you? As it is now, we're left with as many questions, as you have. :)

A link to the wxWidgets Module(s) you're using, would also be of great help, in giving you better, more accurate information.

--Chris

¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

Replies are listed 'Best First'.
Re^2: wxWidgets Events question
by greenhorn_007 (Acolyte) on May 27, 2014 at 22:14 UTC

    Sorry for being so unclear. Unfortunately a code sample would not be possible. I can give some links to the documentation pages I am using and try to make my explanation more clear?

    The Wizard documentation link: http://docs.wxwidgets.org/2.8.12/wx_wxwizard.html#wxwizard So there is this window wizard I want to use. It navigates threw some pages (special WizardPage or WizardPageSimple - they are practicaly panels with links to previous and next page). And in this WizardPages I just place my controls like buttons and text fields. The wizard window has some special events like page changed(meaning next/back button click) etc. I am using wizard with 2 pages. The first for collecting user data. The second - for running my program with that data and displaying results. While my program (well, it's not really a program, just the real logic in my code, classes etc, that can happily live without GUI, they do the real stuff). That code produces some progress messages: they tell what it is doing at the moment. I want my second page to display these messages. But it's kind of like... sending some info to the GUI without events, without user input, just some other part of the code wants to give it.

    I thought that I can run my real code with the collected data in some appropriate event handler. But what would that event be? I liked the EVT_WIZARD_PAGE_SHOWN(id, func). The problem is my program doesn't recognize it? But it recognizes the EVT_WIZARD_PAGE_CHANGED - so I thought just after this handler is done- it's my turn. How is that done and is it possible? Or is there another approach to running my code and sending some stuff to the GUI?