Opened 17 years ago
Closed 16 years ago
#74 closed defect (worksforme)
Tcl version of v.digit's background colour doesn't work
Reported by: | craigleat | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 6.4.0 |
Component: | Default | Version: | svn-trunk |
Keywords: | v.digit, Tcl | Cc: | glynn@…, hamish_b@… |
CPU: | Unspecified | Platform: | Unspecified |
Description
It appears that the v.digit option: settings -> Symbology -> Background is broken, because I am unable to change the background colour. A further annoyance is that the background colour changes from white to cyan whenever a background vector is added. If a raster is added the background stays white.
Tested with Spearfish.
Change History (12)
comment:1 by , 17 years ago
Keywords: | Tcl added |
---|---|
Summary: | v.digit option to set background colour doesn't work → Tcl version of v.digit's background colour doesn't work |
comment:2 by , 17 years ago
raster maps do turn the background cyan if you use the -o overlay flag with d.rast.
Hamish
comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed by Glynn with r30805. Also backported to 6.3.0-relbranch.
comment:4 by , 17 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Glynn:
I think I've fixed this with r30805.
The background color is now white, but changing the background color from the Setting window Symbology tab (1st item) still doesn't work as expected.
With r30810 (just committed) it now respects the bg color, but only if you add a background command like 'd.grid 5000'. I also notice that you can't turn off background commands once created, unchecking their tick boxes has no visible effect, once rendered. (if not yet rendered it won't draw it if unticked) To make the bg cmd go away you need to fully delete the command text. (putting a # at the start of the line could work too? but not well)
Hamish
comment:5 by , 17 years ago
Milestone: | 6.3.0 → 6.4.0 |
---|
comment:6 by , 16 years ago
Cc: | added |
---|---|
CPU: | → Unspecified |
Platform: | → Unspecified |
Resolution: | → worksforme |
Status: | reopened → closed |
I've just tested in 15-08-08 SVN develbranch_6. All of these problems seem to be fixed, at least in the Mac version. I have some odd mouse behavior (middle-click acting like right-click), but that could be a function of using TclTk 8.5 aqua. Could you please check and see if we can close this?
follow-up: 8 comment:7 by , 16 years ago
Cc: | removed |
---|---|
Resolution: | worksforme |
Status: | closed → reopened |
Hamish:
it now respects the bg color, but only if you add a background command like 'd.grid 5000'
Agreed. The bg colour reverts to white if the bg command is disabled/removed.
Hamish:
I also notice that you can't turn off background commands once created
No, the toggle button works for me. Prefixing the command with a # also works.
Michael:
I have some odd mouse behavior (middle-click acting like right-click)
My mouse clicks work as expected.
Tested with GRASS 6.4 revision 32853 of 18 Aug 2008, Ubuntu 7.10 and Tcl 8.4.
Craig
comment:8 by , 16 years ago
Replying to craigleat:
Hamish:
I also notice that you can't turn off background commands once created
craigleat:
No, the toggle button works for me. Prefixing the command with a # also works.
s/turn off/remove/
Hamish
comment:9 by , 16 years ago
Cc: | added |
---|
I don't understand the 's/turn off/remove/'
I just checked again. I have no problem with the background color settings on my Mac with the current GRASS 6.4 compiled from the SVN develbranch_6. The vector itself is in the first "background", but that shouldn't be turned off of course. Glynn revamped the code so as to use a TclTk canvas instead of an xwin. Maybe he can look at this too. It seems OK to me though.
Michael
comment:10 by , 16 years ago
comment:11 by , 16 years ago
In r32876, the canvas' background colour is updated whenever the background setting changes.
comment:12 by , 16 years ago
Cc: | added |
---|---|
Resolution: | → worksforme |
Status: | reopened → closed |
Well done Glynn and thanks. It works correctly now (for me at least). I'll allow Hamish to test further and resolve as 'fixed'.
Confirmed.
It's not just vector backdrop maps which turn the background color cyan, "d.grid 5000" does it too.
Hamish