[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XForms] some success and some problems with old code using version

From: Jens Thoms Toerring
Subject: Re: [XForms] some success and some problems with old code using version 1.3.7
Date: Fri, 2 May 2014 20:54:20 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Jos,

On Fri, May 02, 2014 at 07:36:29PM +0200, jos wrote:
> 1: the problem occurs in a callback function for
> fl_add_xyplot(ACTIVE_XY_PLOT, ... )
> This function originally allowed to change the plotted values using
> a left mouse and a right mouse.
> When using xforms-1.0.90 and 1.0.91 the left mouse button allows to
> change the data points. The right mouse button does not.
> My first versions were written with xforms ?.0.88 or some similar version.
> When using xforms-1.3.7 using left mouse has no effect. It is not
> possible to move a data point.

The widget still allows to change the value with the left mouse
button if you hit one of the "dots" (unless fl_set_xyplot_inspect()
has been called with a 'true' value). At least with the 'xyplotactive'
demo program it does and that's the one I use for testing since I don't
use the widget in my own code.

> The right mouse does not allow this either. I can not find a
> fl_set_xyplot_mouse_buttons kind of function.
> Has this been a deliberate change since 1.0.9x ? Is there a remedy?

Yes, most widgets now only react to the left mouse button per
default - all other widget sets do it that way and I found
that it tended to annoy people (and me) using my programs
using XForms. Other people on the mailing list didn't complain
when I made these changes.

I can, of course, also add an fl_set_xyplot_mouse_buttons() func-
tion to allow the user to re-enable other mouse buttons.

> 2:  I used fl_get_menu to load and save content to and from my program.
> Now all the code returns is a -1. It does not seem to recognize the
> menu tree at all.
> This happens when using 1.3.7.
> When using 1.0.9[01] all is well.
> Has the library changed / should I recode this or have there
> been no changes to this bit of code over the years (and might this
> be a bug) ?

I can't draw any conclusions from your descriptions since I don't
know the circumstances. It would definitely help if I knew how you
set up your menu. A compilable example program would be even better;-)
All I can say at the moment is that the function seems to work cor-
rectly in the 'menu' demo program (and, of course, there have been
changes of the code, so it could be a bug;-).

                           Best regards, Jens
  \   Jens Thoms Toerring  ________      address@hidden
   \_______________________________      http://toerring.de

reply via email to

[Prev in Thread] Current Thread [Next in Thread]