Tk Library Source Code

View Ticket
Login
Ticket UUID: 458301
Title: BWidget ArrowButton bug (1.3.1) [patch]
Type: Bug Version: None
Submitter: petasis Created on: 2001-09-04 07:46:54
Subsystem: bwidget Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-09-06 07:02:49
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2001-09-06 00:02:49
Description:
ArrowButtons, in version 1.2.1 (the latest release from Unifix),
you could make a button a specific color, and place it in a frame of the
same color without any problem.
In 1.3.1 though, a gray outline appears, that cannot be eliminated
through the ArrowButton options. This is because in 1.3.1 a frame is
used to enclose all widget ellements.
This frame has the default borderwidth and colour (1 & gray in my system),
thus making a gray rectangular around the button.

In my opinion, the solution is to set the borderwidth to 0 when creating
the frame. So, line 89 in arrow.tcl has to be changed to

frame $path -class ArrowButton -borderwidth 0 -highlightthickness 0

in order to work as expected. (-highlightthickness 0 is not required, but
why not :-))
User Comments: andreas_kupries added on 2001-09-06 07:02:49:
Logged In: YES 
user_id=75003

Changed and committed.