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