in reply to Re: Eliminate blinking cursor from text widget
in thread Eliminate blinking cursor from text widget

Thanks a lot.

I also wonder which is the easiest way to determine the field on which I have clicked in terms of _text_ x and y coordinates.

$board_text->bind('<Button-1>',\&click_handler); sub click_handler { my $click_x=... my $click_y=... #do sg. whith x,y }


What should ... be? (I admit that I haven't dome my research on that one yet.)

Replies are listed 'Best First'.
Re^3: Eliminate blinking cursor from text widget
by BrowserUk (Patriarch) on Jan 14, 2012 at 14:04 UTC

    If you do the bind like this:

    $ef1->bind( '<Button-1>', [ \&fred, 'bill' ] );

    Then when you click on entry field 1 ($ef1) the subroutine 'fred' will be called with the handle of $ef1 as the first parameter, and the value 'bill' as the second. Now you can program whatever action is required.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    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.

    The start of some sanity?