For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > October 2004 > Mouse and Buttons









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Mouse and Buttons
Florian

2004-09-30, 8:57 pm

Hi,

I have another problem with TK here on Windows. I would like to
enable/disable buttons, but I can't seem to find out how to do that.

I found the "-default" method for the button widget, but setting that to
"disabled" doesn't seem to do anything.

Also, how can I change the cursor of the mouse to the hourglass and
back? Is this possible?


Thanks!
Ala Qumsieh

2004-09-30, 8:57 pm

Florian wrote:

> Hi,
>
> I have another problem with TK here on Windows. I would like to
> enable/disable buttons, but I can't seem to find out how to do that.


-state => 'disabled'

> Also, how can I change the cursor of the mouse to the hourglass and
> back? Is this possible?


$w->Busy;
$w->Unbusy;

--Ala
Florian

2004-10-01, 3:56 pm

Ala Qumsieh wrote:
> Florian wrote:
>
>
>
> -state => 'disabled'
>
>
>
> $w->Busy;
> $w->Unbusy;
>
> --Ala


Hmm, I don't know how I missed those - but thanks a bunch!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com