Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bind to arrow in BrowseEntry?

Status
Not open for further replies.

xhonzi

Programmer
Jul 29, 2003
196
US
I'm using a BrowseEntry widget to display a list of files the user can select. The user might be deleting or making copies in a shell window while using the tool, so I wanted the list to be current when the user "browses" the list on the BrowseEntry. I thought I could just bind the refresh subroutine to the BrowseEntry, but that doesn't work since the binding is apparently on the 'Entry' subwidget and not on the 'arrow' subwidget. I then tried to bind specifically to the arrow by creating a reference:
Code:
$arrow=$browseentry->Subwidget("arrow");
$arrow->bind("<Button>", \&refreshBE);

That didn't work either. Is there a way to bind directly to the arrow?
 
Well, I'm just stupid. BrowseEntry has a "-listcmd" option that allows you to assign a subroutine when the arrow is pressed. For my purposes, this was all I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top