Disabling wxWizard buttons

Fabian Cenedese Cenedese at indel.ch
Fri Jun 22 02:04:02 PDT 2007


At 17:45 21.06.2007 +0200, Vadim Zeitlin wrote:
>On Thu, 21 Jun 2007 17:42:24 +0200 Fabian Cenedese <Cenedese at indel.ch> wrote:
>
>FC> Is there a possibility to enable/disable these buttons? I could only
>FC> make out private elements. And I don't really like to look for controls
>FC> with IDs (wxID_FORWARD) that might change in the future.
>
> They won't change. So you can use EVT_UPDATE_UO(wxID_FORWARD) for example.

That seems to work. I change the flag from a worker thread doing the
lengthy operation. But the visual state only changes once I e.g. move
the mouse or do something else. Sending a dummy wxPostEvent
(without doing any handling at all) after the state change also updates
the visual appearance.

Is this the way to go? Or should this be done automatically in the
idle event handling?

Thanks

bye  Fabi






More information about the wx-users mailing list