Re: [Iup-users] MASK (non inheritable) (since 3.0)

2022-02-27 Thread Andrew Robinson
That sounds great but could you be more specific please? Where is that API for
that listed in the following screen capture for IUP - Version 3.30? ...









I couldn't find any text for "regex" or "mask" yet.




Thanks,

Andrew


On 2/27/2022 at 9:53 AM, Antonio Scuri  wrote:


  It is available with the internal SDK. Take a look at the iup/src/iup_mask.c
file for more details.



Best,

Scuri






Em dom., 27 de fev. de 2022 às 13:50, Andrew Robinson 
escreveu:




Ola Antonio,




RE: https://www.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html




Is that regEx engine available in the API somewhere, or is it for internal use
by IUP only?




Thanks,

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


Re: [Iup-users] IupMatrixSetFomula

2022-02-27 Thread Andrew Robinson
I apologize, I didn't mean to say it wasn't useful, only that it wasn't useful
if you require more than one title line.




The prototype for IupMatrixSetFormula only has a parameter for col and nothing
for lin. Is the following a typo in the HTML documentation for IUP - Version
3.30?:

void IupMatrixSetFormula(Ihandle* ih, int col, const char* formula, const
char* init); [in C]
iup.MatrixSetFormula(ih: ihandle, col: number, formula: string, [init:
string]) [in Lua]
or ih:SetFormula(col: number, formula: string, [init: string]) [in Lua]








On 2/27/2022 at 10:13 AM, Antonio Scuri  wrote:


> "so it's not a useful function"



  I think if you read the documentation carefully you will see that it is a
very useful function...




  Also you will find out that the formula receives two parameters lin and col,
so you can test the col number and return the contents you actually want in
the UNITS cell. Then maybe you're not stuck after all...




Scuri






Em qui., 24 de fev. de 2022 às 20:20, Andrew Robinson 
escreveu:




Ola Antonio,




I have the following dialog:









I would like to use IupMatrixSetFormula to change values when I select between
S.I., CGS, and Imperial units but IupMatrixSetFormula cannot be restricted to
just the rows below the UNITS row so it's not a useful function. Is there a
way to restrict which rows IupMatrixSetFormula or am I stuck with doing it
manually, cell-by-cell?




Thanks,

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


Re: [Iup-users] Small nitpick

2022-02-27 Thread Antonio Scuri
Fixed and committed to the SVN.

Em qua., 9 de fev. de 2022 às 19:23, Andrew Robinson 
escreveu:

> Ola Antonio,
>
> Online documentation for IUP - Version 3.30
> GETFOCUS_CB
>
> Action generated when an element is given keyboard focus. This callback is
> called after the KILLFOCUS_CB of the element that loosed the focus. The
> IupGetFocus function during the callback returns the element that loosed
> the focus.
>
> Lost is the opposite of found
> Loosen is the opposite of tightened
> Loosed is the opposite of fasten
>
> It should read "the last element that lost focus" and not "the element
> that loosed the focus"
>
> I know: English sucks
>
> Regards,
>
> Andrew
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IupMatrixSetFomula

2022-02-27 Thread Antonio Scuri
> "so it's not a useful function"

  I think if you read the documentation carefully you will see that it is a
very useful function...

  Also you will find out that the formula receives two parameters lin and
col, so you can test the col number and return the contents you actually
want in the UNITS cell. Then maybe you're not stuck after all...

Scuri


Em qui., 24 de fev. de 2022 às 20:20, Andrew Robinson 
escreveu:

> Ola Antonio,
>
> I have the following dialog:
>
>
> I would like to use IupMatrixSetFormula to change values when I select
> between S.I., CGS, and Imperial units but IupMatrixSetFormula cannot be
> restricted to just the rows below the UNITS row so it's not a useful
> function. Is there a way to restrict which rows IupMatrixSetFormula or am I
> stuck with doing it manually, cell-by-cell?
>
> Thanks,
> Andrew
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] MASK (non inheritable) (since 3.0)

2022-02-27 Thread Antonio Scuri
  It is available with the internal SDK. Take a look at the
iup/src/iup_mask.c file for more details.

Best,
Scuri


Em dom., 27 de fev. de 2022 às 13:50, Andrew Robinson 
escreveu:

> Ola Antonio,
>
> RE: https://www.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html
>
> Is that regEx engine available in the API somewhere, or is it for internal
> use by IUP only?
>
> Thanks,
> Andrew
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] MASK (non inheritable) (since 3.0)

2022-02-27 Thread Andrew Robinson
Ola Antonio,




RE: https://www.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html




Is that regEx engine available in the API somewhere, or is it for internal use
by IUP only?




Thanks,

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