Re: [Iup-users] MASK (non inheritable) (since 3.0)
Actually, let me say that I think IUP's flavor of RegEx is one of the best implementations of RegEx I've ever seen. On 2/28/2022 at 6:52 AM, Andrew Robinson wrote: Yeah, I saw that little graphic but I didn't pay much attention to it because I thought it was an oversimplified UML diagram. The Text Mask API seems very cool. On 2/28/2022 at 6:05 AM, Antonio Scuri wrote: For some reason it is not in the navigation tree, but if you click on "Utilities" it is listed there. Em dom., 27 de fev. de 2022 às 16:21, Andrew Robinson escreveu: 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] MASK (non inheritable) (since 3.0)
Yeah, I saw that little graphic but I didn't pay much attention to it because I thought it was an oversimplified UML diagram. The Text Mask API seems very cool. On 2/28/2022 at 6:05 AM, Antonio Scuri wrote: For some reason it is not in the navigation tree, but if you click on "Utilities" it is listed there. Em dom., 27 de fev. de 2022 às 16:21, Andrew Robinson escreveu: 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
I think I know what you are talking about, but that doesn't help because I need an if statement in the formula to can test the current lin with IsNan() so I can skip it with a nop (no operation). On 2/28/2022 at 6:10 AM, Antonio Scuri wrote: No, I mean in the Lua script. The formula receives the lin and col as parameters. See the examples. Em dom., 27 de fev. de 2022 às 16:17, Andrew Robinson escreveu: 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 ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users
Re: [Iup-users] IupMatrixSetFomula
No, I mean in the Lua script. The formula receives the lin and col as parameters. See the examples. Em dom., 27 de fev. de 2022 às 16:17, Andrew Robinson escreveu: > 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 > ___ 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)
For some reason it is not in the navigation tree, but if you click on "Utilities" it is listed there. Em dom., 27 de fev. de 2022 às 16:21, Andrew Robinson escreveu: > 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