Re: Moving legend objects

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Moving legend objects

Rik-4
On 01/03/2018 09:00 AM, [hidden email] wrote:
Subject:
Re: PickableParts or HitTest graphic properties
From:
Andreas Weber [hidden email]
Date:
01/03/2018 07:02 AM
To:
[hidden email]
List-Post:
[hidden email]
Content-Transfer-Encoding:
quoted-printable
Precedence:
list
MIME-Version:
1.0
References:
<MTAwMDA0Ny5ub21hZA.1513813788@quikprotect> [hidden email]
In-Reply-To:
[hidden email]
Message-ID:
[hidden email]
Content-Type:
text/plain; charset=utf-8
Message:
2

Am 21.12.2017 um 06:47 schrieb Daniel J Sebald:
It appears that FLTK is the toolkit for which mouse rotation in the
legend causes a zoom/unzoom.  I notice that one can mouse-click on the
legend and drag it around (a feature I'm sure many are happy with), but
that doesn't work for a garden-variety axes.  So, is there something
extra in C++ programming for legend?
It was me who added the possibility to drag the legend to another position.

In __init_fltk__.cc around line 1683 you'll find the exception for legends.

-- Andy

This is super useful.  But going forward, should this be implemented directly in C++ in say Figure.cc or Canvas.cc or should it be implemented within the Octave language using ButtonDownFcn?

We have another issue which is that the the "File" and "Edit" menus are already directly implemented in C++, but for maximum Matlab compatibility they should be implemented as uimenu objects.  For FLTK this is done when figures are created by the __add_default_menus__.m function.

--Rik