Hopefully a simple one..

I have a couple of radio buttons - depending on the selection, I want to
hide/show fields.

Click event handler:
sub userradio_Click {
    $cs->Change(-visible=>0);
    $cslabel->Change(-visible=>0);
    $ws->Change(-visible=>0);
    $wslabel->Change(-visible=>0);
    $us->Change(-visible=>1);
    $uslabel->Change(-visible=>1);
    #Refresh the main window somehow...
}

I need to refresh the window somehow. I tried $main->SetRedraw(1), but
that had unexpected effects.

Any advice would be appreciated before I start drawing rectangles over my
window to hide things!!


Reply via email to