Gracious monks,
I have sought long and faltered. No where can I find a simple example of how to change a button's appearance when it is pressed while its associated callback runs. It's no good to see the appearance change after the callback finishes, I want a doohickey as simple as changing the button's color while its callback runs. And of course I'll switch the appearance back once the callback/sub is done.

My problem stems from some Win32::OLE calls I'm making that do lots of processing/formatting with Word. They take long enough such that a user might not notice that:

"No matter which value is specified for the -relief option, when the button is pressed with the mouse, its relief will change to 'sunken'." (from Learning Perl/Tk by Nancy Walsh, p. 69)
I want something more dramatic than a sunken button. It doesn't have to be the AIX "running man", a simple change of colors will do--I just can't see the option to do it.

Thanks,
Brig


In reply to Tk button appearance while its callback runs by ff

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.