Re: [Iup-users] IUP Plot X Axis Ticks

2019-05-15 Thread Antonio Scuri
No, but I don't think I fully understand what you want... Best, Scuri Em qua, 15 de mai de 2019 às 15:34, Milind Gupta escreveu: > Yes the tick numbers that represent the X axis scale values. > > On Wed, May 15, 2019 at 11:06 AM Antonio Scuri > wrote: > >> Hi, &g

Re: [Iup-users] CID 210676 (#1 of 1): Resource leak (RESOURCE_LEAK)

2019-05-27 Thread Antonio Scuri
1500} > 6. Jumping back to the beginning of the loop. > 14. Jumping back to the beginning of the loop. > 1501 } > 1502} > > Following the "conditions", that can actually occur, var name leaks > pointer. > IHMO I really believe fix this. > >

Re: [Iup-users] NOT_WORKING is not defined in Windows port

2019-05-25 Thread Antonio Scuri
NOT_WORKING isolates a code that is *not *working... It is there as a reminder. Best, Scuri Em sáb, 25 de mai de 2019 às 11:16, Ranier VF escreveu: > Hi, > When compiling iup_calendar.c in windows port, var NOT_WORKING is > not defined; > What is the correct definition? > > Best regards, >

Re: [Iup-users] IUP 3.27: iupObjectCheck raise segmentation fault

2019-05-26 Thread Antonio Scuri
It seems that is trying to destroy an IupImage that is already destroyed. I can't go further without more context. Can you reproduce the problem in a small sample? Best, Scuri Em sex, 24 de mai de 2019 às 16:33, Ranier VF escreveu: > Hi, > I'm around with a IUP bug. Below show the

Re: [Iup-users] ENC: New Defects reported by Coverity Scan for IUP - Portable User Interface

2019-05-26 Thread Antonio Scuri
I received the same message sent directly by Coverity Scan. Best, Scuri Em sáb, 25 de mai de 2019 às 08:08, Ranier VF escreveu: > Hi, > This a new report by Coverity about IUP 3.27 Windows port. > Best regards, > Ranier Vilela > > De:

Re: [Iup-users] CID 341016 (#1 of 1): Dereference after null check (FORWARD_NULL)

2019-05-26 Thread Antonio Scuri
Committed a slighted changed version. Em sáb, 25 de mai de 2019 às 08:45, Ranier VF escreveu: > Hi, > Fix iup_globalattrib.c: > --- ..\..\a\src\iup_globalattrib.c Tue Apr 23 14:33:33 2019 > +++ iup_globalattrib.c Sat May 25 08:42:08 2019 > @@ -133,7 +133,7 @@ >

Re: [Iup-users] CID 210676 (#1 of 1): Resource leak (RESOURCE_LEAK)

2019-05-26 Thread Antonio Scuri
The code you added is an unreachable code. The "for" never ends normally, only in the return. Em sáb, 25 de mai de 2019 às 08:28, Ranier VF escreveu: > Hi, > Fix RESOURCE_LEAK at iup_attrib.c > > --- ..\..\a\src\iup_attrib.cSat Jan 26 16:02:13 2019 > +++ iup_attrib.cSat May 25

Re: [Iup-users] CID 210668 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2019-06-04 Thread Antonio Scuri
and "if (*value_max_size < value_len)" fail! > > Best regards, > Ranier Vilela > > De: Antonio Scuri > Enviado: terça-feira, 4 de junho de 2019 11:29 > Para: IUP discussion list. > Assunto: Re: [Iup-users] CID 210668 (#1 o

Re: [Iup-users] CID 210668 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2019-06-04 Thread Antonio Scuri
The realloc function does the malloc job. And it will only increase the size of the value pointer when necessary. Best, Scuri Em seg, 3 de jun de 2019 às 22:29, Ranier VF escreveu: > Hi, > Sorry but can't undestand the logic. > iupmatex_clipboard.c > line 505, call function: > > value =

Re: [Iup-users] CID 210668 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2019-06-04 Thread Antonio Scuri
est regards, > Ranier Vilela > > ________ > De: Antonio Scuri > Enviado: terça-feira, 4 de junho de 2019 11:09 > Para: IUP discussion list. > Assunto: Re: [Iup-users] CID 210668 (#1 of 1): Explicit null dereferenced > (FORWARD_NULL) > > The realloc function does the malloc job.

Re: [Iup-users] CID 341226 (#1 of 1): COM bad conversion to BSTR (COM.BSTR.CONV)

2019-06-04 Thread Antonio Scuri
We use BSTR as the same definition of WCHAR, that's why we can do what we do. In a more generic code that should work with BSTR variations then we should be more careful. But that's not the case. Best, Scuri Em seg, 3 de jun de 2019 às 23:05, Ranier VF escreveu: > Hi, > Several fixes for

Re: [Iup-users] CID 341226 (#1 of 1): COM bad conversion to BSTR (COM.BSTR.CONV)

2019-06-04 Thread Antonio Scuri
ry Corruption, level High. > > I agree with Coverity, the code is unsafe and violate the rules use of > functions > calls what await BSTR valid variables. > > Best regards, > Ranier Vilela > > > De: Antonio Scuri > Enviado: terça-f

Re: [Iup-users] Scintilla issue

2019-06-04 Thread Antonio Scuri
Hi, I would recommend you to take a look at the IupLuaScripterDlg code in the folder "iup\srclua5\scripter". It uses different colors for some fgcolor styles. IUP works very close with the Scintilla specs, so each IUP attribute is almost a direct map to a Scintilla message. You can also

Re: [Iup-users] Warnings coming from msvc compiler

2019-06-04 Thread Antonio Scuri
Thanks, that's from third party code. Except the LED parser, just removed the unused function. Best, Scuri Em ter, 4 de jun de 2019 às 16:22, Ranier VF escreveu: > Hi, > Here some warnings coming from msvc compiler: > > c:\dll\iup\iup\srcmglplot\src\pde.cpp(221) : warning C4701: potentially

Re: [Iup-users] CID 341005 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2019-05-28 Thread Antonio Scuri
Fixed and committed to SVN. Em sáb, 25 de mai de 2019 às 09:11, Ranier VF escreveu: > Hi, > --- ..\..\a\srcfiledlg\iupwin_newfiledlg.cppFri Sep 14 17:33:33 2018 > +++ iupwin_newfiledlg.cpp Sat May 25 09:09:00 2019 > @@ -719,7 +719,7 @@ > psiResult->Release(); >} >

Re: [Iup-users] CID 259217 (#1 of 1): Dereference null return value (NULL_RETURNS)4. dereference: Dereferencing a null pointer cbDragDataSize.

2019-05-28 Thread Antonio Scuri
Fixed and committed to the SVN. Thanks for reporting. Best, Scuri Em sáb, 25 de mai de 2019 às 09:37, Ranier VF escreveu: > Hi, > Fix iupwin_dragdrop.c: > --- \dll\iup\a\src\win\iupwin_dragdrop.cWed Apr 24 17:12:36 2019 > +++ iupwin_dragdrop.c Sat May 25 09:34:29 2019 > @@ -391,7

Re: [Iup-users] CID 341015 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)

2019-05-28 Thread Antonio Scuri
If that function is called with max ==0 then it is a much more serious error than a divide by zero, and we would mascarade the error by adding such code. Best, Scuri Em sáb, 25 de mai de 2019 às 08:54, Ranier VF escreveu: > Hi, > Fix iup_flatscrollbar.c: > ---

Re: [Iup-users] CID 259157 (#2 of 2): Division or modulo by zero (DIVIDE_BY_ZERO)

2019-05-28 Thread Antonio Scuri
Fixed and committed to the SVN Em sáb, 25 de mai de 2019 às 09:50, Ranier VF escreveu: > Hi, > --- \dll\iup\a\src\iup_expander.c Mon Oct 29 14:53:02 2018 > +++ iup_expander.c Sat May 25 09:49:19 2019 > @@ -384,9 +384,10 @@ >int frame_time = iupAttribGetInt(ih, "FRAMETIME"); >

Re: [Iup-users] Spin in GTK

2019-05-28 Thread Antonio Scuri
Not that I know of. This was a GTK decision. You can find the documentation here: https://developer.gnome.org/gtk3/stable/GtkSpinButton.html I would love to change that. I don't like the spin side by side. It seems to have something vertical in the CSS, but I have no idea how to use that. If

Re: [Iup-users] Spin in GTK

2019-05-28 Thread Antonio Scuri
want to keep GTK3 at the > same time... > Le mardi 28 mai 2019 à 15:51:35 UTC+2, Antonio Scuri < > antonio.sc...@gmail.com> a écrit : > > > Not that I know of. This was a GTK decision. You can find the > documentation here: > > https://developer.gnome.org/gtk3

Re: [Iup-users] Performance optimize in function winButtonWmCommand.

2019-06-06 Thread Antonio Scuri
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

Re: [Iup-users] Scintilla issue

2019-06-05 Thread Antonio Scuri
same set of > IupSetAttribute code in the map_cb) all of them are working. > So, not an issue anymore. > > Le mardi 4 juin 2019 à 22:32:34 UTC+2, Antonio Scuri < > antonio.sc...@gmail.com> a écrit : > > > Hi, > > I would recommend you to take a look at the IupLua

[Iup-users] Warnings Report

2019-06-07 Thread Antonio Scuri
Hi All, Here are some comments about the warnings report: - The report sent by Sur has 4000 lines. I just spent a long time taking a good look again at it. My opinion does not change. - As pointed the warnings in third party libraries will be ignored. I think Sur could exclude that from the

Re: [Iup-users] CID 341010 (#1 of 1): 'Constant' variable guards dead code (DEADCODE)

2019-05-29 Thread Antonio Scuri
Fixed and committed to the SVN. Em sáb, 25 de mai de 2019 às 10:10, Ranier VF escreveu: > Hi, > --- \dll\iup\a\src\win\iupwin_label.c Tue Nov 27 17:25:24 2018 > +++ iupwin_label.c Sat May 25 10:09:27 2019 > @@ -44,7 +44,7 @@ >int xpad = ih->data->horiz_padding, >ypad =

Re: [Iup-users] CID 210510 (#2 of 2): Unused value (UNUSED_VALUE)

2019-05-29 Thread Antonio Scuri
Fixed missing characters in lexicographic sort table Just committed to the SVN. Best, Scuri Em sáb, 25 de mai de 2019 às 10:04, Ranier VF escreveu: > Hi, > iup_str.c: > mm('®')= 96; mm('°')= 97; mm('µ')= 98; mm('¶')= 99; mm('…')=100; > mm('†')=101; mm('‡')=102; mm('•')=103;

Re: [Iup-users] CID 341020 (#1 of 1): Resource leak (RESOURCE_LEAK)

2019-05-29 Thread Antonio Scuri
Fixed and committed to the SVN. Em sáb, 25 de mai de 2019 às 09:59, Ranier VF escreveu: > Hi, > --- \dll\iup\a\src\iup_globalsdlg.c Tue Apr 23 18:07:31 2019 > +++ iup_globalsdlg.cSat May 25 09:56:52 2019 > @@ -216,9 +216,8 @@ >IupSetAttributeId(list2, "", i + 1,

Re: [Iup-users] modifying the IupMatrixEx context menu form menucontext_cb

2019-06-03 Thread Antonio Scuri
Hi, You can use IupAppend and IupInsert just like any container. Best, Scuri Em dom, 2 de jun de 2019 às 15:24, Matthew Kennedy escreveu: > Hi, I am using the awesome IupMatrixEx control, and I'd like to change the > contents on the context menu based on row/col, so I'm using the menu

Re: [Iup-users] Multiple fixes

2019-06-03 Thread Antonio Scuri
Fixed and committed to the SVN. Thanks for reporting. Best, Scuri Em sáb, 25 de mai de 2019 às 10:45, Ranier VF escreveu: > Hi, > Multiple fixes in iupwin_newfiledlg.c: > > --- ..\..\a\srcfiledlg\iupwin_newfiledlg.cppFri Sep 14 17:33:33 2018 > +++ iupwin_newfiledlg.cpp Sat May 25

Re: [Iup-users] CID 341015 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)

2019-06-03 Thread Antonio Scuri
: > Hi, > Divide by zero with integer, the behaviour is undefined. > Good luck to catch such errors. > > Best regards, > Ranier Vilela > > ________ > De: Antonio Scuri > Enviado: terça-feira, 28 de maio de 2019 21:09 > Para: IUP discussio

Re: [Iup-users] Ignore function return

2019-06-03 Thread Antonio Scuri
Ok. That I can do. Just committed to the SVN. Best, Scuri Em seg, 3 de jun de 2019 às 19:17, Ranier VF escreveu: > Hi Scuri, > Thank you for the commits. > However I have some comment about the commit 5211: > https://sourceforge.net/p/iup/iup/5211/ > > While comments like /* ignore

Re: [Iup-users] IUP Plot X Axis Ticks

2019-06-03 Thread Antonio Scuri
plot in the frequency x axis. So I just want to replace the text > on the a scale which says 250ns to 2MHz and the text 500ns to 1MHz. > > Milind > > On Wed, May 15, 2019 at 11:51 AM Antonio Scuri > wrote: > >> No, but I don't think I fully understand what you want..

Re: [Iup-users] Shorter warnings summary for IUP r5228

2019-06-09 Thread Antonio Scuri
Hi, The files at "\iup\srcmglplot\src" should be excluded too. They are from MathGL. Thanks, Scuri Em dom, 9 de jun de 2019 às 07:20, sur-behoffski < sur_behoff...@grouse.com.au> escreveu: > G'day, > > [Completely Unrelated, except that I'm an Aussie: Ash Barty::Tennis > French Open

Re: [Iup-users] Naming for proposed "Tecgraf Assistant"

2019-06-09 Thread Antonio Scuri
; If anyone has any better suggestions, or, equally finds that > there are any copyright/trademark/patent properties that I am > potentially infringing, and can propose a better name, then > such suggestions would be welcomed. > > This is really a question for Antonio Scuri, as the &quo

Re: [Iup-users] Matrix Value edit cb

2019-06-18 Thread Antonio Scuri
: > Thanks, i'm using the IFniis > Le mardi 18 juin 2019 à 14:03:41 UTC+2, Antonio Scuri < > antonio.sc...@gmail.com> a écrit : > > > Notice that there is a very similar callback signature: > > sIFniis x IFniis (the correct one) > > This could be causing your problems

Re: [Iup-users] GTK3 issues

2019-06-25 Thread Antonio Scuri
Hi, Can you report more details about your system? Do you know which gtk version? Best, Scuri Em ter, 25 de jun de 2019 11:49, Johann Philippe via Iup-users < iup-users@lists.sourceforge.net> escreveu: > Hello, > Since I updated to last IUP version, there are a few modifications with > the

Re: [Iup-users] Lua, UTF-16 and iup.clipboard

2019-06-25 Thread Antonio Scuri
Hi, That was a bug. FORMATDATA is not a string, and it was being returned as a string. Thanks for pointing that out. Just fixed and committed to the SVN. As a workaround you can do: script = iup.GetAttributeData(clipboard, "FORMATDATA") It will be returned as a light user data. Then

Re: [Iup-users] GTK3 issues

2019-06-25 Thread Antonio Scuri
, 25 de jun de 2019 às 12:14, Johann Philippe escreveu: > Gtk version is 3.0. > My system is Linux mint 18.3 (...i should update soon). > > Le mardi 25 juin 2019 à 16:56:15 UTC+2, Antonio Scuri < > antonio.sc...@gmail.com> a écrit : > > > Hi, > > Can you repor

Re: [Iup-users] IUP crash in Debug Mode

2019-06-19 Thread Antonio Scuri
Hi Simon, I can't see anything wrong with your script. First, what do you mean by Debug Mode? Are you debugging the Visual C++ application or the Lua script? When not in debug mode it works? Second, you have a very peculiar configuration as we speak previously. Maybe you will have to

Re: [Iup-users] FW: IUP crash in Debug Mode

2019-06-19 Thread Antonio Scuri
Ok. Can you make a simple test? To replace IupButton by IupFlatButton and check if there is any difference? Best, Scuri Em qua, 19 de jun de 2019 às 15:05, Simon Orde < simono...@family-historian.co.uk> escreveu: > … sorry – yet more clarification. > > > > When I said “if I modify the

Re: [Iup-users] IUP crash in Debug Mode

2019-06-19 Thread Antonio Scuri
Ok. Em qua, 19 de jun de 2019 às 15:03, Simon Orde < simono...@family-historian.co.uk> escreveu: > To be precise, when I said “If I run the iup dialog script from my > previous post… in (Visual C++) debug mode … it will close the application”, > I meant: “… it will close the application

Re: [Iup-users] IUP crash in Debug Mode

2019-06-19 Thread Antonio Scuri
sedown. This suggests that the main message loop has received a WM_QUIT > message or something like that (does IUP ever call PostQuitMessage?). I > get some errors at this point – but they are my own program errors which > are produced because the code didn’t expect to have the applicatio

Re: [Iup-users] FW: IUP crash in Debug Mode

2019-06-20 Thread Antonio Scuri
> seemingly gets called exactly when you would expect – i.e. in the same > circumstances that CMyApp::PumpMessage in the editor’s message crank would > return false. > > > > In my view, the big clue is that iup.GetParam and iup.Alarm both work > fine with no problems. What

Re: [Iup-users] FW: IUP crash in Debug Mode

2019-06-24 Thread Antonio Scuri
p in a long calculation > > -- update progress in some meaningful way > > gaugeProgress.value = i / 1 > > -- allow the dialog to process any messages > > iup.LoopStep() > > -- notice the user wanting to cancel and do something meaningful >

Re: [Iup-users] Matrix Value edit cb

2019-06-18 Thread Antonio Scuri
Notice that there is a very similar callback signature: sIFniis x IFniis (the correct one) This could be causing your problems. Best, Scuri Em seg, 17 de jun de 2019 às 19:39, Johann Philippe via Iup-users < iup-users@lists.sourceforge.net> escreveu: > Hello all, > A small report : > The

Re: [Iup-users] To seek more information about IUP

2019-05-17 Thread Antonio Scuri
Hi, No. Everything related to IUP documentation is on the website, which can also be downloaded in HTML, CHM and PDF formats. In the download files on SourceForge there is also a package with many samples. Best, Scuri Em sex, 17 de mai de 2019 às 23:52, Deepak Singh Rathore <

Re: [Iup-users] IUP Raspberry PI

2019-05-16 Thread Antonio Scuri
You can ignore those messages. We use GTK in a different way, so sometimes it displays warnings like these. Best, Scuri Em qua, 15 de mai de 2019 às 23:21, John Spikowski escreveu: > Hi Antonio, > > I'm getting theses strange warning when running my Online Dictionary > example that is using

Re: [Iup-users] surrogate pairs supported in windows

2019-05-14 Thread Antonio Scuri
Hi, Interesting. I saw that you did this: if (sizeof(ImWchar) == 2) cp = 0xFFFD; We use the TCHAR definition which is a 16 bits value when UNICODE is defined (the default in IUP), i.e. sizeof==2 by default. So we don't actually need the "Surrogate" variable storage but

[Iup-users] IUP 3.27

2019-04-30 Thread Antonio Scuri
of antialiasing and alpha in GDI, we added a hack to use GDI+. You can find the complete list of changes and files for download at: http://www.tecgraf.puc-rio.br/iup/ http://iup.sourceforge.net/ Best Regards, Antonio Scuri ___ Iup-users mailing list Iup

Re: [Iup-users] using IDLE_ACTION with threads

2019-07-04 Thread Antonio Scuri
No, there isn't. Once the idle is set, it will be called the next time the MainLoop regain control. But your are setting from another thread so the mainloop is running. Maybe the solution would be to set the idle in the main loop thread where you can have more control about that. Best, Scuri

Re: [Iup-users] using IDLE_ACTION with threads

2019-07-04 Thread Antonio Scuri
y do when they have a long running process they > need to provide UI feedback on, but can't break the long running process up > into time slices suitable for IupTimer? > > Matt > > > > > On Thu, Jul 4, 2019 at 2:31 PM Antonio Scuri > wrote: > >> No, ther

Re: [Iup-users] IupPopup FontDlg

2019-07-04 Thread Antonio Scuri
Don't know. Seems to be something inside GTK. If you take a look at iup/src/gtk/iupgtk_fontdlg.c you will see that the IUP code is quite simple, GTK does all the work. Maybe something in GTK was not initialized correctly when running the script. Missing IupOpen? Best, Scuri Em qui, 4 de

Re: [Iup-users] Feature proposition

2019-07-04 Thread Antonio Scuri
Hi, We already have that, see the TRAY, TRAYIMAGE and TRAYTIP attributes of a IupDialog. Yes, they must be associated with a dialog even if the dialog is hidden. Best, Scuri Em ter, 2 de jul de 2019 às 20:56, Johann Philippe via Iup-users < iup-users@lists.sourceforge.net> escreveu: >

Re: [Iup-users] IupPopup FontDlg

2019-07-05 Thread Antonio Scuri
ssing something in my extension module make? > > > On Thu, 2019-07-04 at 21:05 -0300, Antonio Scuri wrote: > > Don't know. Seems to be something inside GTK. If you take a look at > iup/src/gtk/iupgtk_fontdlg.c you will see that the IUP code is quite > simple, GTK does all th

Re: [Iup-users] IupPopup FontDlg

2019-07-05 Thread Antonio Scuri
p) > Ihandle *ih; > int x, y; > > besARGUMENTS("pii") > , , > besARGEND > > besRETURN_LONG(IupPopup(ih, x, y)); > besEND > > > On Fri, 2019-07-05 at 15:02 -0300, Antonio Scuri wrote: > > Can you try to add another dialog in the same example, but

Re: [Iup-users] FW: IUP crash in Debug Mode

2019-07-12 Thread Antonio Scuri
no > difference in behaviour. But an application like mine could set this off > at the outset. If the flag was disabled, IUP would behave as I proposed in > my last email, and use a registered windows message to exit its loop. If > the flag was enabled, it would behave as now and us

Re: [Iup-users] Not safe to call IUP functions from non-IUP main-loop thread?

2019-07-08 Thread Antonio Scuri
Just to reinforce what's in the documentation. All the GUI toolkits, as far as I know, are limited to calls only at the main application thread. This is for multi-threaded applications where threads are created with pthread or any similar toolkit. It is not related with main or secondary

Re: [Iup-users] docker build of tecgraf libraries from svn for ubuntu lts

2019-07-08 Thread Antonio Scuri
Fantastic, this will be very useful. > lua packages (which lua though?) Lua itself already has distribution packages, one for each Lua version. It is a lot of work, but this is a first start. > investigate ubuntu 19.04 (seems to be missing gtk 3 webkit) Not missing, the webkitgtk we

Re: [Iup-users] docker build of tecgraf libraries from svn for ubuntu lts

2019-07-08 Thread Antonio Scuri
a Lua IM package would do similarly. Ok I guess. Best, Scuri Em seg, 8 de jul de 2019 às 15:11, Matthew Kennedy escreveu: > > On Mon, Jul 8, 2019 at 10:06 AM Antonio Scuri > wrote: > >> > lua packages (which lua though?) >> >> Lua itself already has distribution

Re: [Iup-users] IupScintilla - Syntax Highlighting

2019-07-14 Thread Antonio Scuri
Hi, I'm not sure. For LED we end up writing our own lexer. The lexer code is usually portable. You may ask him if he would like to share the code. If so I can add it to our SVN. Best, Scuri Em dom, 14 de jul de 2019 19:03, John Spikowski escreveu: > Antonio, > > I would like to add

Re: [Iup-users] Running with LuaJIT

2019-04-21 Thread Antonio Scuri
hello.lua:2: in main chunk > [C]: at 0x01231f20 > stack traceback: > [C]: in function 'error' > .../init.lua:926: in function 'require' > hello.lua:2: in main chunk > [C]: at 0x01231f20 > > Are any people successfully using LuaJIT with

Re: [Iup-users] Running with LuaJIT

2019-04-17 Thread Antonio Scuri
Hi, The two packages are very different. First you need to know which LuaJit you are using, 32 or 64 bits. From the first message it looks like you are using a 32 bit version, but try to load a 64 bits DLL. From the second message it looks like other files are missing, like iup.dll.

Re: [Iup-users] Dialogs Callback SHOW_CB and CLOSE_CB seem to be interfering with each other

2019-04-21 Thread Antonio Scuri
Hi, I changed your sample just to add more print info, and it is working here. See attached. I suspect this could be an old bug already fixed in previous versions. IUP 3.11.2 has more than 4 years now... Here is the output: D:\tecgraf\iup\bin\Win64\Lua51>lua5.1 \Downloads\close_show.lua

Re: [Iup-users] docker build of tecgraf libraries from svn for ubuntu lts

2019-07-16 Thread Antonio Scuri
nu/lua/5.1/iupluaweb.so > /usr/lib/x86_64-linux-gnu/lua/5.2/iuplua.so > /usr/lib/x86_64-linux-gnu/lua/5.2/iuplua_mglplot.so > /usr/lib/x86_64-linux-gnu/lua/5.2/iuplua_plot.so > /usr/lib/x86_64-linux-gnu/lua/5.2/iuplua_scintilla.so > /usr/lib/x86_64-linux-gnu/lua/5.2/iupluacd.so >

Re: [Iup-users] docker build of tecgraf libraries from svn for ubuntu lts

2019-07-16 Thread Antonio Scuri
te about the TODO. Updated. > > I will have to check out what Debian accepts for packages. They're the > ideal place, but I'm not sure they'll enjoy the unconventional docker + > checkinstall approach. Perhaps a intermediate approach is to use the Ubuntu > PPA system. > > Matt >

Re: [Iup-users] FW: IUP crash in Debug Mode

2019-06-27 Thread Antonio Scuri
; > > > Theoretically you could use WM_USER + ? as the message id, but it’s more > robust to use a registered message. That way you can be 100% sure that > there won’t be a conflict with any application-defined messages, which > there could be if you took the WM_USER approach. &

Re: [Iup-users] GTK3 issues

2019-07-01 Thread Antonio Scuri
an older version until that. It might be related. > > Thanks > > Le mardi 25 juin 2019 à 18:21:01 UTC+2, Antonio Scuri < > antonio.sc...@gmail.com> a écrit : > > > That's just the major GTK version... > > Anyway I'm downloading the Linux mint 18.3, because I wo

Re: [Iup-users] FW: IUP crash in Debug Mode

2019-07-02 Thread Antonio Scuri
can do it in your own distribution, maybe in the future we can change that. Best, Scuri Em qui, 27 de jun de 2019 às 09:15, Antonio Scuri escreveu: > Hi, > > I'm in the middle of several tasks here. I'll get back to this soon. > Thanks for sending the suggestion. > > Best,

Re: [Iup-users] GTK3 issues

2019-06-30 Thread Antonio Scuri
ing an older version until that. It might be related. > > Thanks > > Le mardi 25 juin 2019 à 18:21:01 UTC+2, Antonio Scuri < > antonio.sc...@gmail.com> a écrit : > > > That's just the major GTK version... > > Anyway I'm downloading the Linux mint 18.3, bec

Re: [Iup-users] DEFAULTESC on IupMessageAlarm

2019-08-13 Thread Antonio Scuri
or > "NO" button by left/right direction key ) > On linux, after the dialog popup, press "ESC" always return 1, press > "ENTER" will return 1 or 2( because we can change the focus on "YES" or > "NO" by left/right direction key ) &g

Re: [Iup-users] DEFAULTESC on IupMessageAlarm

2019-08-12 Thread Antonio Scuri
Hi, IupMessageAlarm uses IupMessageDlg, which is a native pre-defined dialog. It does not have support for DEFAULTESC. IupAlarm is a IupDialog and we control everything. Best, Scuri Em dom, 11 de ago de 2019 às 10:10, 許永寬 escreveu: > Dear Scuri: > I created an IupMessageAlarm with

Re: [Iup-users] Tray Icon not working in GTK/Linux (was "Tray Icon not visible/working in KDE")

2019-08-13 Thread Antonio Scuri
I > have looked into the source code for IUP and the GTK driver, I found that > the GtkStatusIcon interface which is used for implementing the tray is > deprecated. We may need to define some macro during compile-time to enable > the deprecated functions, but I am not sure. > > I wi

Re: [Iup-users] Tray Icon not working in GTK/Linux (was "Tray Icon not visible/working in KDE")

2019-08-13 Thread Antonio Scuri
Already downloaded from the link you sent. Thanks, Scuri Em ter, 13 de ago de 2019 às 15:39, Antonio Scuri escreveu: > I would like to compare the code of the gtk sample test with what we do > in IUP, but I still did not have time. Maybe later today. Can you send me > t

Re: [Iup-users] DEFAULTESC on IupMessageAlarm

2019-08-13 Thread Antonio Scuri
Sorry, now I don't get what the problem is. Can you send more details? Best, Scuri Em seg, 12 de ago de 2019 às 11:13, 許永寬 escreveu: > Sorry for I didn't describe clear, > On Windows 7, It works as you say, but on linux, press "ESC" will get > "Returns" = 1 >

Re: [Iup-users] Tray Icon not working in GTK/Linux (was "Tray Icon not visible/working in KDE")

2019-08-27 Thread Antonio Scuri
good to know that > this has been fixed, will there be a new IUP release soon? > > Regards, > Damon H. > > P.S I hope the fires in Amazon burn out soon too, it would be terrible > otherwise. > On 26/08/19 6:47 PM, Antonio Scuri wrote: > > Hi, > > I thi

Re: [Iup-users] Tray Icon not working in GTK/Linux (was "Tray Icon not visible/working in KDE")

2019-08-26 Thread Antonio Scuri
ous week. > > That sounds great, feel free to do the tests when you have some free time. > I hope this bug can be resolved easily, but for now I have dropped tray > support for my project to concentrate on other elements of the GUI. > > Regards, > Damon H. > On 14/08/19 12

Re: [Iup-users] New build of IUP with CUSTOMQUITMESSAGE

2019-08-27 Thread Antonio Scuri
ely to be released? I’m keen to try it out but wasn’t > able to build IUP myself. > > > > All the best > > > > Simon > > > > > > *From:* Antonio Scuri [mailto:antonio.sc...@gmail.com] > *Sent:* 15 July 2019 6:59 PM > *To:* IUP discussion list.

Re: [Iup-users] iupplot PaintTo

2019-09-13 Thread Antonio Scuri
> Is it possible to use the PaintTo function and confine the plot inside a region in a given cdcanvas? No. IupPlot will use all the canvas area. You can draw in an image based canvas and then draw that image into your own canvas. > Also does PaintTo have to be called before the plot is

Re: [Iup-users] IUP Plot dataset y values

2019-09-17 Thread Antonio Scuri
You can use the CLICKSAMPLE_CB callback to identify that a sample was clicked. And PLOTMOTION_CB to move the point. You can use the IupPlotSetSample function to change the dataset value. Best, Scuri Em seg, 16 de set de 2019 às 17:04, Milind Gupta escreveu: > >> >> By the way did you

Re: [Iup-users] IUPPLOT: Query the dataset

2019-09-17 Thread Antonio Scuri
See the auxiliary functions of the IupPlot controls. There are functions to query the dataset. DS_USERDATA is just a pointer that is associated with the dataset. Best, Scuri Em ter, 17 de set de 2019 às 15:04, Milind Gupta escreveu: > Hi, > How can I query the dataset for a plot?

Re: [Iup-users] IupPopup and IupMenu

2019-09-13 Thread Antonio Scuri
The way is to use IupShow. Yes, it will not work with a IupMenu, so the idea is to use an IupDialog with no decorations with some control inside, maybe a IupList to display your list of options and allow typing some text. For instance: Ihandle* dlg = IupDialog(NULL); IupSetAttribute(dlg,

Re: [Iup-users] IUP Plot dataset y values

2019-09-16 Thread Antonio Scuri
Hi, You have to search for it in the dataset. By the way did you noticed that there is cursor in IupPlot using the Ctrl+H or Ctrl+V key combinations? Best, Scuri Em seg, 16 de set de 2019 às 00:44, Milind Gupta escreveu: > Hi, > Is there a way to get the X value as plotted on

Re: [Iup-users] Tray Icon not visible/working in KDE

2019-08-07 Thread Antonio Scuri
not change much but it might be a valuable minor detail when > reproducing the bug. > > Regards, > > Damon H. > On 06/08/19 6:31 PM, Antonio Scuri wrote: > > Hi Damon, > > The e-mail you used is not subscribed to the list, I had to authorize your > post. Please subscribe

Re: [Iup-users] Tray Icon not visible/working in KDE

2019-08-06 Thread Antonio Scuri
Hi Damon, The e-mail you used is not subscribed to the list, I had to authorize your post. Please subscribe to the list in order to be able to post. If you don't want to subscribe you can send e-mail directly to iup@tecgraf.- puc-rio.br It is possible that the image file is not being found. I

Re: [Iup-users] FW: IUP crash in Debug Mode

2019-07-15 Thread Antonio Scuri
Hi folks, We are going to release a new IUP version with the changes I commited to the SVN in the next couple of weeks. Best, Scuri Em seg, 15 de jul de 2019 14:53, Hernan Cano escreveu: > Simon: > The same site for IUP downloads has the DLLs you want. > I can guide you if you want. > >

Re: [Iup-users] Popup menu radio

2019-09-22 Thread Antonio Scuri
OK! Em dom, 22 de set de 2019 às 14:16, Johann Philippe via Iup-users < iup-users@lists.sourceforge.net> escreveu: > Sorry I found. > Here solution was to set "VALUE" to "ON" on item, and "AUTOTOGGLE" to "YES" > > > Le dimanche 22 septembre 2019 à 00:29:46 UTC+2, Johann Philippe via > Iup-users

Re: [Iup-users] IupPopup FontDlg

2019-07-06 Thread Antonio Scuri
auses this error. > > > On Fri, 2019-07-05 at 17:33 -0300, Antonio Scuri wrote: > > I mean a regular IupDialog on the same script, show it then show the > font dialog. Was that? > > > > Em sex, 5 de jul de 2019 às 16:58, John Spikowski > escreveu: > > I

Re: [Iup-users] Menu Hotkey Alignment

2019-07-10 Thread Antonio Scuri
Yes, use a '\t' before the hot key. See the TITLE attribute documentation of the IupItem. Best, Scuri Em qua, 10 de jul de 2019 às 03:35, John Spikowski escreveu: > Antonio, > > Is there a way to right align the hotkey references. See attached. > > >

Re: [Iup-users] IUP Compilation with msvc 2017

2019-11-04 Thread Antonio Scuri
Hi, The folders are not being created because the GNU mkdir must be installed. The cmd internal mkdir will not work. For now, our build system is based on GNU, so we need GNU compatible tools. We are considering moving to CMake in a near future. But now you will need to download MSYS too.

Re: [Iup-users] IUP Compilation with msvc 2017

2019-11-04 Thread Antonio Scuri
VF escreveu: > Hi Scuri, > "Or the shortcut "Developer Command Prompt for VS 2017"." > Yes this, this is being done. > But the compilation still stop at iup_array.c > > Thanks. > Ranier Vilela > > ________ >

Re: [Iup-users] IUP Library with Mingw64

2019-11-01 Thread Antonio Scuri
:\mingw64 > c:\mingw64\bin > c:\mingw64\include > c:\mingw64\libexec > c:\mingw64\mingw [x86_64-w64-mingw32] > c:\mingw64\share > c:\mingw64\x86_64-w64-mingw32 > > Thanks. > Ranier Vilela > > De: Antonio Scuri > Enviado: sexta-fe

Re: [Iup-users] IUP trunk=iup_attrib.c (dererencing a potential null pointer)

2019-11-04 Thread Antonio Scuri
That can never happen. If it does then nothing will work in IUP. One of the most sensible parts in IUP is its hash table. And it proved so far it is quite reliable. Best, Scuri Em seg., 4 de nov. de 2019 às 13:57, Ranier VF escreveu: > Hi, > Dererencing a potential null pointer at line 294.

Re: [Iup-users] IUP trunk=iup_dlglist.c (dereferencing a potential null pointer)

2019-11-04 Thread Antonio Scuri
I will try to build in a fresh installation and let you guys know. Yes, I'm in a rush for next week. But I still have 1 final task. Best, Scuri Em seg, 4 de nov de 2019 15:31, Simon Orde escreveu: > Hi Ranier > > I am also looking for an IUP build that works with MSVC 2017. In my case I

Re: [Iup-users] IUP trunk=iup_dlglist.c (dereferencing a potential null pointer)

2019-11-04 Thread Antonio Scuri
That won't be ok. Because there maybe dialogs ready to be destroyed after i>idlg_count. The code is protected by the iupObjectCheck call. It may read from an invalid memory, but it will correctly check the pointer. Best, Scuri Em seg., 4 de nov. de 2019 às 14:08, Ranier VF escreveu: >

Re: [Iup-users] Layout/sizing bug with GTK3 backend

2019-11-05 Thread Antonio Scuri
Ok. I'll take a look. But it will take some time, I'm trying to close the 2.38 version. Best, Scuri Em seg., 4 de nov. de 2019 às 21:44, Eric Wing escreveu: > Hi, I want to report that I’ve found some kind of bug in the IUP GTK3 > backend concerning layout/sizing. > > The bug seems to have

[Iup-users] IUP 3.28

2019-12-13 Thread Antonio Scuri
lp is needed. You can find the complete list of changes and files for download at: http://www.tecgraf.puc-rio.br/iup/ http://iup.sourceforge.net/ Best Regards, Antonio Scuri ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sou

Re: [Iup-users] Congratulations on IUP 3.28... iup_vled.c fprintf comment patch

2019-12-17 Thread Antonio Scuri
Thanks! Fixed and committed to the SVN. Best, Scuri Em ter., 17 de dez. de 2019 às 07:44, sur-behoffski < sur_behoff...@grouse.com.au> escreveu: > G'day all, > > Congratulations to Antonio on releasing IUP 3.28. I've been watching > the SVN repository closely for some time, and the

Re: [Iup-users] Libwebkit issue

2019-12-17 Thread Antonio Scuri
Hi, Are you are using pre-compiled binaries? It seems so. Probably the machine where I built the binaries linked against libwebkit-1.0.so.2 and this file is not installed on your computer. \there are a few possibilities: - rebuild IUP on your system - install the same libwebkit

Re: [Iup-users] treeview with (sortable) columns?

2019-12-12 Thread Antonio Scuri
ince it looks like an Excel sheet rather > than a table :/ > > I have text fields and an image that should be toggable. > > Thanks. > > Vincent > > > > On 02/12/2019 12:46, Antonio Scuri wrote: > > Hi, > > Take a look at the IupMatrix and IupMatrixE

Re: [Iup-users] IUP 3.28

2019-12-15 Thread Antonio Scuri
onment for me getting this. > > Thanks. > > *HERNAN CANO MARTINEZ* > Analista de Sistemas > > El vie., 13 de dic. de 2019 a la(s) 21:17, Antonio Scuri escribió: > >> Hi All, >> >>We just released IUP version 3.28 >> >>We would like to highl

Re: [Iup-users] IUP 3.28

2019-12-16 Thread Antonio Scuri
s. > > > El dom., 15 de dic. de 2019 a la(s) 19:17, Antonio Scuri escribió: > >> Hi Hernan, >> >> I was not involved in the Android driver development. Actually I don't >> have any Android development skill at all. >> >> It was a contribution

<    3   4   5   6   7   8   9   10   11   >