Tk Library Source Code

View Ticket
Login
Ticket UUID: 740499
Title: Missing docu for suppressing a drag in the -draginitcmd
Type: Bug Version: None
Submitter: pointsman Created on: 2003-05-20 14:41:56
Subsystem: bwidget Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-11-11 04:56:39
Resolution: None Closed By: dev_null42a
    Closed on: 2006-11-10 21:56:39
Description:
Sometimes, it's very handy, to be able to suppress a
drag in the -draginitcmd (say, for example, a tree
widget has nodes, which are dragable and others, which
are not, in the logic of the application). It seems,
the current implemention allows this (see proc
DragSite::_init_drag) --- if the -draginitcmd returns
{} instead of the expected 3 elements lists, there is
no error raised, but some explicte cleanup. The
documentation doesn't mention this. I propose, to add
something like

"If the command returns an empty string, the drag will
be suppressed."

at the end of the DragSite:register -draginitcmd
documentation.
User Comments: dev_null42a added on 2006-11-11 04:56:39:
Logged In: YES 
user_id=1381097

Man page fixed.  Thanks.