| Ticket UUID: | 974034 | |||
| Title: | ArrowButton attributes insensitive to [option add] | |||
| Type: | Bug | Version: | None | |
| Submitter: | eriklns | Created on: | 2004-06-16 16:46:55 | |
| Subsystem: | bwidget | Assigned To: | damonc | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2009-07-01 14:07:25 | |
| Resolution: | Rejected | Closed By: | oehhar | |
| Closed on: | 2009-07-01 07:07:25 | |||
| Description: |
The command [option add *ArrowButton.$property 20 100] has no effect for at least the properties "width" and "height". (While it does have effect for the options "background" and "foreground"). I have been using BWidget 1.7 in combination with Tcl/Tk 8.4.6 Sincerely, Erik Leunissen | |||
| User Comments: |
oehhar added on 2009-07-01 14:07:25:
That is true by design. The default value is hard coded to 15x15.
Is there any need to transfer it to a BWResource ?
The option declaration is as follows:
Widget::declare ArrowButton [list \
[list -typeEnum button 0 [list arrow button]] \
[list -dirEnum top 0 [list top bottom left right]] \
[list -widthInt150"%d >= 0"] \
[list -heightInt150"%d >= 0"] \
[list -ipadxInt00"%d >= 0"] \
[list -ipadyInt00"%d >= 0"] \
[list -cleanInt20"%d >= 0 && %d <= 2"] \
[list -activeforegroundTkResource""0 button] \
[list -activebackgroundTkResource""0 button] \
[list -disabledforeground TkResource""0 button] \
[list -foregroundTkResource""0 button] \
[list -backgroundTkResource""0 button] \
[list -stateTkResource""0 button] \
[list -troughcolorTkResource""0 scrollbar] \
[list -arrowbdInt10"%d >= 0 && %d <= 2"] \
[list -arrowreliefEnumraised0[list raised sunken]] \
[list -commandString""0] \
[list -armcommandString""0] \
[list -disarmcommandString""0] \
[list -repeatdelayInt00"%d >= 0"] \
[list -repeatintervalInt00"%d >= 0"] \
[list -fgSynonym-foreground] \
[list -bgSynonym-background] \
]
nobody added on 2009-04-02 15:41:37: Okay, I withdraw my previous comment. using the default "interactive" priority solves the problem. option add *foreground red4 [email protected] added on 2009-04-02 13:27:50: BWidget 1.8 / T cl 8.5.2 / Windows-XP
Perhaps the following observation is related to this case:
Changing the foreground color with [option add ...] does not affect SpinBox Arrow buttons.
The arrow buttons are displayed black-on-black while the show read-on-blach, when the mouse cursor moves over.
I'm using the following color settings:
#
# Night-Mode colors
#
option add *backgroundblackwidgetDefault
option add *foregroundred4widgetDefault
option add *insertBackgroundred4widgetDefault
option add *disabledBackgroundblackwidgetDefault
option add *disabledForegroundred4widgetDefault
option add *highlightBackgroundblackwidgetDefault
option add *highlightColorblackwidgetDefault
option add *selectColorblackwidgetDefault
option add *selectBackgroundblackwidgetDefault
option add *selectForegroundred3widgetDefault
option add *activeBackgroundblackwidgetDefault
option add *activeForegroundred3widgetDefault
| |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki