Dear Ranier,

  You sent me several messages the past weeks. Some of them we agree, some
we don't. And many I take some time to respond because we have other tasks
in our work.

  I value every contribution, but sometimes they are overwhelming,
sometimes I don't agree, sometimes they are precious. It depends.

  IUP code affects several critical applications here at Tecgraf. So
everything is weighted before changed.

  I thank you for your contribution, but it is up to you to feel
comfortable with our update policy.

Best Regards,
Antonio Scuri

Em qui, 6 de jun de 2019 22:05, Ranier VF <[email protected]> escreveu:

> Hi,
> Ok, this is a little test.
> Very well, wich we can confirm, that priority of IUP team is not
> improve iup code, but, only add new features.
> So why spend time and energy, if no one has interest...
>
> Thank you.
> Best regards,
> Ranier Vilela
> ________________________________________
> De: Ranier VF <[email protected]>
> Enviado: quarta-feira, 5 de junho de 2019 14:06
> Para: IUP discussion list.
> Assunto: [Iup-users] Performance optimize in function winButtonWmCommand.
>
> Hi,
> Here some performance optimize in function winButtonWmCommand.
> The "_IUPBUT_INSIDE_ACTION" is not used anywhere else and can
> changed by much faster C resource.
>
> --- \dll\iup\a\src\win\iupwin_button.c  Mon Jun 03 20:25:39 2019
> +++ iupwin_button.c     Wed Jun 05 10:58:31 2019
> @@ -660,21 +660,17 @@
>           so we added a test here also */
>        if (iupAttribGetBoolean(ih, "CANFOCUS"))
>        {
> +        static int inside_action = 0;
>          Icallback cb = IupGetCallback(ih, "ACTION");
>          if (cb)
>          {
>            /* to avoid double calls when pressing enter and a dialog is
> displayed */
> -          if (!iupAttribGet(ih, "_IUPBUT_INSIDE_ACTION"))
> +          if (!inside_action)
>            {
> -            int ret;
> -            iupAttribSet(ih, "_IUPBUT_INSIDE_ACTION", "1");
> -
> -            ret = cb(ih);
> -            if (ret == IUP_CLOSE)
> +            inside_action = 1;
> +            if (cb(ih) == IUP_CLOSE)
>                IupExitLoop();
> -
> -            if (ret!=IUP_IGNORE && iupObjectCheck(ih))
> -              iupAttribSet(ih, "_IUPBUT_INSIDE_ACTION", NULL);
> +            inside_action = 0;
>            }
>          }
>        }
>
> Best regards,
> Ranier Vilela
>
>
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to