Using a filter for the col parameter with IUP_IGNORE in CLICK_CB,
VALUE_EDIT_CB, and ACTION_CB does absolutely nothing to prevent the matrix
from going into the edit mode when double-clicking on a cell. The only thing
that works is to intercept the double-click (which only CLICK_CB can do after
ACTION_CB is called), disable the matrix so that nothing works, and then
re-enabling the matrix in VALUE_EDIT_CB (which is the last function to be
called for a click or double-click). I don't think you ever tried doing what
you suggest.

On 2/21/2022 at 4:56 AM, Ranier Fonseca <ranier_...@hotmail.com> wrote:
>De: Andrew Robinson <arobinso...@cox.net>
>Enviado: domingo, 20 de fevereiro de 2022 17:33
>Para: IUP discussion list.
>Assunto: Re: [Iup-users] DoubleClick and IupMatrix
>
>>I can change text here if I don't use IUP_IGNORE as suggested, but the text
is IUP text instead of image, so the result is undefined that I know of. I
>have to press Escape to exit the edit mode which leads to this:
>In ACTION_CB you have the key and the col to to determine what to do.
>According to the documentation:
>"Returns: IUP_DEFAULT validates the key, IUP_IGNORE ignores the key,
IUP_CONTINUE forwards the key to IUPs conventional processing, or the
identifier of the key to be treated by the matrix."
>So if you have "col" you can ignore the key or process the key.
>In other words, if you "col" is "Text Input" you return IUP_DEFAULT to
process the key or edition.
>If not, you return IUP_IGNORE to not process the key and do not enter
edition.
>
>In CLICK_CB you have the "col" and the "status".
>According to the documentation:
>status: Status of the mouse buttons and some keyboard keys at the moment the
event is generated.
>
>So if you "col" is the checkbox, process it and return IUP_IGNORE then do not
enter in edition.
>Maybe you have the UPDATE manually the line of matrix.
>
>regards,
>Ranier Vilela



_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to