in reply to Win32:GUI check box to enable and disable features

I'm not sure why but it seems like you're trying to add another text field during what looks like a click event.

Why not just update the state of the existing widget(s) like you said in the description?
eg: $widget->configure(-state=>  ('disabled' || 'normal')  );

Replies are listed 'Best First'.
Re^2: Win32:GUI check box to enable and disable features
by Karger78 (Beadle) on Sep 01, 2009 at 14:12 UTC
    Hi, Thanks for your response. here is what I added <code> sub cpLogsLocal_Click{ #$main->AddTextfield(-LocalCpPath->disabled(0)); $main->btnLocalCpPath->configure(-state=> ('disabled' || 'normal') ); } </code It doesn't seem to like the configure method. "Con't find 'configure' in package Win32::GUI."
      I did do some further changes, I think I am on the right track at this time. So I am trying to change a property of textbox called LocalCpPath. Doesn't seem to work though.
      sub cpLogsLocal_Click{ $main->LocalCpPath(-disabled=>0,); }

        Try:

        sub cpLogsLocal_Click{ LocalCpPath->Enable(); }

        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.