[GRASS-dev] Re: grass-dev Digest, Vol 41, Issue 49

Michael Barton michael.barton at asu.edu
Wed Sep 16 22:47:48 EDT 2009

On Sep 16, 2009, at 5:25 PM, grass-dev-request at lists.osgeo.org wrote:

> Date: Wed, 16 Sep 2009 19:08:38 -0000
> From: "GRASS GIS" <trac at osgeo.org>
> Subject: [GRASS-dev] [GRASS GIS] #750: wxGUI: scalebar loses focus
> To: undisclosed-recipients:;
> Message-ID: <040.a968f51a41a425b4779ef44b0d9f7177 at osgeo.org>
> Content-Type: text/plain; charset="utf-8"
> #750: wxGUI: scalebar loses focus
> -------------------- 
> +-------------------------------------------------------
> Reporter:  hamish  |       Owner:  grass-dev at lists.osgeo.org
>     Type:  defect  |      Status:  new
> Priority:  minor   |   Milestone:  6.4.0
> Component:  wxGUI   |     Version:  svn-develbranch6
> Keywords:          |    Platform:  Linux
>      Cpu:  x86-64  |
> -------------------- 
> +-------------------------------------------------------
> Hi,
> in the wx Map Display window if you add a scalebar, drag it to the  
> bottom
> left, then add a raster legend, after that it is not possible to  
> drag the
> scalebar any more, even if you reselect add scalebar from the add  
> overlay
> menu. The legend gets dragged around instead.
> ??
> Hamish

What is happening is not quite what it appears. The real problem is  
that both the scalebar and legend are "maps" because that is how GRASS  
draws them. The invisible "maps" are the same size as the screen. When  
you put both a legend and a scalebar on a real (i.e., visible) map and  
they overlay each other it is sometimes hard to grab the underlying  
element. If you move the legend out of the way, you can grab and move  
the scalebar.

There is probably a way to fix this but I didn't figure it out when I  
first did this, and it hasn't been high enough on the priority list to  
fix afterwards. What is needed is to somehow clip the graphic of the  
legend and scalebar so that it closely conforms to the element.  
However, this would also need to change size if the element changes  


More information about the grass-dev mailing list