Re: [Iup-users] iupmatrix scroll bar

2015-06-26 Thread Antonio Scuri
In version 3.14 there is a problem with the canvas scrollbars. It is fixed on SVN. The IupMatrix already handle autohide of the scrollbars. Best, Scuri Em 26/06/2015 17:03, Milind Gupta milind.gu...@gmail.com escreveu: Hi Antonio, Is it possible to have a setting in iupmatrix to

Re: [Iup-users] Checkbox gap still present even with no text?

2015-06-15 Thread Antonio Scuri
Hi, Yes, there is a gap even if text is NULL. I may be able to reduce that. Which system are you using? Best Regards, Antonio Scuri On Sun, Jun 14, 2015 at 11:33 PM, Milind Gupta milind.gu...@gmail.com wrote: I see it and the attached example shows it. Is there any property that can

Re: [Iup-users] Checkbox gap still present even with no text?

2015-06-17 Thread Antonio Scuri
(not a problem at all)? Regards Mihail On 6/17/2015 22:17, Antonio Scuri wrote: Just added a fix to avoid that: - *Fixed: *size computation in *IupToggle* to not include the spacing between the check box and the text, if text is NULL or empty. Best, Scuri On Mon, Jun 15, 2015

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Antonio Scuri
Hi, I didn't check all your calculations, but did you noticed that when the dialog is resize you do the FitMat* twice? When MatA is resized, you compute both, then MatC is also resized and you compute both again. I think it would more interesting to set the size only of the respective

Re: [Iup-users] Downloading the correct version of IUP and CD

2015-06-15 Thread Antonio Scuri
The link called download tips in the documentation can help understand that. The question most important is which Ubuntu version you are using? Another way to figure that out is using uname -a at a terminal. Best Regards, Antonio Scuri Em 15/06/2015 20:47, luciano de souza luchya

Re: [Iup-users] Initial dialog size

2015-05-29 Thread Antonio Scuri
Well, I can check if the initial size problem occurs here. I'll do some testing. Best, Scuri On Thu, May 28, 2015 at 5:44 AM, John Spikowski supp...@scriptbasic.org wrote: Antonio, This is just a guess. I think there is a bug in the screen init and gets masked once it hits the event

Re: [Iup-users] [IUP 3.14] Problem with EDITION_CB of IupMatrix.

2015-06-01 Thread Antonio Scuri
This is a bug. I already fixed and committed to the SVN. It will take a few weeks to release a new version with binaries. Best, Scuri On Mon, Jun 1, 2015 at 10:55 AM, LELIEVRE Sebastien (SAFRAN ENGINEERING SERVICES) sebastien.lelie...@safran-engineering.com wrote: Hi, I do a

Re: [Iup-users] Possible to shrink an image button?

2015-06-30 Thread Antonio Scuri
. Shrink will be effective only for containers. For regular elements the current size will be set for a smaller value only if EXPAND is set. Best, Scuri On Tue, Jun 30, 2015 at 8:17 PM, Eric Wing ewmail...@gmail.com wrote: On 6/30/15, Antonio Scuri sc...@tecgraf.puc-rio.br wrote: It depends

Re: [Iup-users] Possible to shrink an image button?

2015-06-30 Thread Antonio Scuri
On Tue, Jun 30, 2015 at 10:11 PM, Antonio Scuri sc...@tecgraf.puc-rio.br wrote: Hi, Some comments about your code: - In a zbox all the elements inside it contribute to the layout natural size, even the hidden ones. - SHRINK is an attribute of the dialog. It is useless to set

[Iup-users] IUP 3.15 Released

2015-07-06 Thread Antonio Scuri
and files for download at: http://www.tecgraf.puc-rio.br/iup/ and http://iup.sourceforge.net/ Best Regards, Antonio Scuri -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools

Re: [Iup-users] IupSetAttributes

2015-06-28 Thread Antonio Scuri
Hi, You can do that using: IupSetAttributes(win, TITLE=\Address Book\, SIZE=500x300); Best Regards, Antonio Scuri Em 28/06/2015 11:40, James Fuller jcfulle...@gmail.com escreveu: I am a real novice but on my first try I find I cannot use IupSetAttributes with a space in the title as in: win

Re: [Iup-users] Images with coordinates. How-to?

2015-05-25 Thread Antonio Scuri
Yes, a dialog can have any set of controls. For instance, when you run Word or Notepad, if they where implemented using IUP, that main interface is a IupDialog, it contains lots of buttons an the text editor area. When you want to configure a Paragraph with more parameters that are available o

Re: [Iup-users] matrix expand

2015-05-25 Thread Antonio Scuri
Sorry, I mean the FITTOTEXT you are already using will set the WIDTH of that columns, so they will not be expanded by FITTOSIZE. Then you just have to set FITTOSIZE in the RESIZEMATRX_CB callback. Best, Scuri On Sat, May 23, 2015 at 1:10 PM, Antonio Scuri sc...@tecgraf.puc-rio.br wrote

Re: [Iup-users] Lua 5.3 with iup 3.14

2015-05-25 Thread Antonio Scuri
The LuaBinaries also defines LUA_COMPAT_MODULE. Best, Scuri -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance

Re: [Iup-users] Lua 5.3 with iup 3.14

2015-05-25 Thread Antonio Scuri
You have to modify the Makefile to include the LUA_COMPAT_MODULE definition as the tecmake configuration files used to build LuaBinaries does. Scuri Em 25/05/2015 21:57, Milind Gupta milind.gu...@gmail.com escreveu: Hi Karagy, Looking at the dll in the hex editor I see that my dll has

Re: [Iup-users] Images with coordinates. How-to?

2015-05-26 Thread Antonio Scuri
I never used SDL, so don't know. If SDL creates its own windows, then IUP is useless. If SDL can use an already existent window then yes, they can be used together. Best, Scuri -- One dashboard for servers and

Re: [Iup-users] rastersize is nil

2015-05-26 Thread Antonio Scuri
When you create an element its size is not defined. If you not manually set the size, then it will be available only when the layout of the dialog is computed. The layout is automatically computed when the dialog is shown. If you need the size before that, then there are alternatives. You can

Re: [Iup-users] matrix expand

2015-05-23 Thread Antonio Scuri
Hi, Will that dialog to be resized? I mean you will need to do it dynamically? Then, which columns you would like to be expanded along the dialog? Best, Scuri Em 23/05/2015 08:42, Pavel J. jurecka.pa...@gmail.com escreveu: Hi, How can i setup matrix to keep his size same as size of

Re: [Iup-users] matrix expand

2015-05-23 Thread Antonio Scuri
Hi, FITTOSIZE will set the column width, so you just have to set: grid.setAttribute(FITTOSIZE,COLUMNS) At the right moment, in the RESIZEMATRIX_CB callback. Best, Scuri On Sat, May 23, 2015 at 11:09 AM, Pavel J. jurecka.pa...@gmail.com wrote: Antonio Scuri antonio.scuri at gmail.com

Re: [Iup-users] Images with coordinates. How-to?

2015-05-23 Thread Antonio Scuri
I think it should be this (not sure, never programmed in Julia): IupOpen(); IupPlotOpen(); # init IupPlot library # create plots plot = IupPlot() # dialog hbox = IupHbox(plot, C_NULL); IupSetAttribute(hbox, MARGIN, 4x4); IupSetAttribute(hbox, GAP, 10); dlg = IupDialog(hbox);

Re: [Iup-users] Images with coordinates. How-to?

2015-05-21 Thread Antonio Scuri
Hi, No, only IupImage is accepted as an image handle in a control. So instead of using imFileImageLoadBitmap, use IupLoadImage. It will use imFileImageLoadBitmap internally and it will return an IupImage Ihandle* so you can use it in IupSetAttributeHandle. Best, Scuri On Wed, May 20, 2015

Re: [Iup-users] Cocoa question

2015-08-12 Thread Antonio Scuri
System limitation are common. The idea is to try to fit IUP rules to the system rules. But first we assume a generic approach, if things go wrong then see what are the system limitations. Set RASTERSIZE of the dialog to 500x550, these value must appear at cocoaDialogLayoutUpdateMethod, or at

Re: [Iup-users] Enabling UTF8 with the Windows driver?

2015-08-15 Thread Antonio Scuri
Hi, Since IUP strings are always char* you can use the system encoding if codes are 256, or use UTF-8 strings by setting the UTF8MODE global attribute to Yes. Best, Scuri On Sat, Aug 15, 2015 at 4:39 PM, Mihail Ivanchev mihai...@gmail.com wrote: Hi IUP, browsing the source of the

Re: [Iup-users] Problem with IupPlot AXS_AUTOSCALEEQUAL

2015-08-22 Thread Antonio Scuri
Hi, I made a simple change in the code but I don't if it is what you expect. I don't have Mathlab here to compare. Would you like to test it? If so are you using a pre-compiled binaries or building from sources? Best, Scuri On Fri, Aug 21, 2015 at 9:52 PM, Tao Li tao.li.luoy...@gmail.com

Re: [Iup-users] Problem with IupPlot AXS_AUTOSCALEEQUAL

2015-08-23 Thread Antonio Scuri
OK. It is already on SVN. So feel free to download and test. Best, Scuri On Sun, Aug 23, 2015 at 3:41 PM, Tao Li tao.li.luoy...@gmail.com wrote: Thanks Scuri I use source code to build the lib. So I can test it. Best regards, Tao -- Tao

Re: [Iup-users] Matrix scrolll bar

2015-06-29 Thread Antonio Scuri
IupMatrix uses those same attributes internally. So it is not possible to control them manually. Best, Scuri On Mon, Jun 29, 2015 at 9:00 PM, Milind Gupta milind.gu...@gmail.com wrote: Hi Antonio, Is it possible to hide and show the matrix scroll bar manually? For the canvas it

Re: [Iup-users] Rasbperry Pi (Raspbian)

2015-06-30 Thread Antonio Scuri
Hi, Thanks for sharing. Very interesting. Already committed changes on SVN. Best, Scuri On Tue, Jun 30, 2015 at 4:29 PM, Eric Wing ewmail...@gmail.com wrote: Hello, I'm new here. I'm trying out Iup for the first time. I'm developing on a Raspberry Pi 2. This is probably a little

Re: [Iup-users] Possible to shrink an image button?

2015-06-30 Thread Antonio Scuri
It depends on the layout. This usually occurs when you set the SIZE or RASTERSIZE to get an initial size for the dialog. The trick is right after showing the dialog, set USERSIZE to NULL. This will remove that limitation. If it is not your case, then I need more details to figure out whats

Re: [Iup-users] Cocoa followup

2015-07-30 Thread Antonio Scuri
Hi, Yes, I got it. The archive should be outdated because of SF recovery. I simply did not have time to process the more complex messages from the list. The layout is automatically computed when the dialog is shown. This is done in the portable code, the only functions you need to be

Re: [Iup-users] Two problems with matrix formatting.

2015-08-04 Thread Antonio Scuri
...@softeyes.net wrote: Am 25.07.2015 um 16:08 schrieb Antonio Scuri: A) the problem is not alignment, but height of the line. Set the HEIGHTn attribute for the lines that have text with multiple lines. If my understanding the documentation is correct, than not giving of those attributes, I should end

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Antonio Scuri
Ok. Independent from language. The new IUP Tutorial is a good starting point, what's online already has more pages than the download version. Best, Scuri On Tue, Aug 11, 2015 at 9:04 AM, Jörg F. Wittenberger joerg.wittenber...@softeyes.net wrote: Am 10.08.2015 um 19:20 schrieb Antonio

Re: [Iup-users] Cocoa question

2015-08-11 Thread Antonio Scuri
: On 8/4/15, Antonio Scuri sc...@tecgraf.puc-rio.br wrote: ok. I recommend a look at IupShow function code. Here is an inside look. When you show a dialog (IupShow/IupShowXY/IupPopup), the first thing it will do is to call IupMap, that will recursively created all the controls inside

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Antonio Scuri
: Am 10.08.2015 um 19:20 schrieb Antonio Scuri: Well, I really don't know. Just know that the calls are not actually active all at the same time. When you call IupFlush in one of them, it will stop that one, processes the pending messages one by one, then return to that one

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Antonio Scuri
. Am 11.08.2015 um 15:39 schrieb Antonio Scuri: Ok. Now I see. IupFlush is usually used when you need to processes messages after changing elements attributes that need to be updated by the system. I would recommend using IupMainLoop and something else for the database

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Antonio Scuri
Antonio Scuri: Maybe you can try the IDLE and see how it behaves. There is also another possibility. The IDLE callback is somewhat equivalent of while(IupLoopStep() != IUP_CLOSE) { do something } Not too bad. Though that's essentially the loop my program is sitting

Re: [Iup-users] Compile Error for iup_str.c with visual studio 2013

2015-08-13 Thread Antonio Scuri
That's weird. I compile IUP regularly in vc9, vc10, vc11, vc12 in 32 and 64 bits. Which vc are you using? Best, Scuri On Thu, Aug 13, 2015 at 1:10 PM, Tao Li tao.li.luoy...@gmail.com wrote: Hi, guys I have a couple of error when building iup static lib. It seems that vc can not recognize

Re: [Iup-users] Compile Error for iup_str.c with visual studio 2013

2015-08-13 Thread Antonio Scuri
Ok. Somehow that source file encoding got wrong. All those indices are 8 bit characters, so they can't be an index greater than 255. Could they have being converted during unpack? The original file encoding is Latin-1 charset (ISO8859-1), and it must be compiled in that way. Best, Scuri Em

[Iup-users] IUP SVN Online

2015-07-25 Thread Antonio Scuri
Hi, SVN is now back online and I just updated with the fixes I did the last week. Best, Scuri -- ___ Iup-users mailing list Iup-users@lists.sourceforge.net

Re: [Iup-users] Cocoa question

2015-07-25 Thread Antonio Scuri
25, 2015 at 5:19 AM, Eric Wing ewmail...@gmail.com wrote: On 7/24/15, Antonio Scuri antonio.sc...@gmail.com wrote: If all those modules I mentioned erlier are ready, iup*_common.c Mostly stubs. iup*_dialog.c Create and destroy a window and set TITLE. iup*_font.c Using the 2010

Re: [Iup-users] Button's SPACING doesn't seem to be included in the size computation

2015-07-23 Thread Antonio Scuri
](connectBtn, disconnectBtn), NORMALIZER[NORMALIZE=BOTH](pauseBtn, resumeBtn, connectBtn, disconnectBtn) ) Regards On 7/21/2015 20:49, Antonio Scuri wrote: Ok. So the problem is at the normalization, not at the button calc size. Now, how are you doing the normalization? Best

Re: [Iup-users] Cocoa question

2015-07-23 Thread Antonio Scuri
the GNUstep framework. I can be very useful. Thanks for pointing that out. Best, Scuri On Thu, Jul 23, 2015 at 1:36 AM, Eric Wing ewmail...@gmail.com wrote: On 7/22/15, Antonio Scuri sc...@tecgraf.puc-rio.br wrote: Hi, That cocoa driver was actually maintained outside the official

Re: [Iup-users] Cocoa question

2015-07-22 Thread Antonio Scuri
Hi, That cocoa driver was actually maintained outside the official repository. It was a brave initiative by Heesob Park, but he did not have the time necessary to complete it. So I leave it outside. If you want to give it a try that's great news. I would love to help you understand the

Re: [Iup-users] IupProgressDlg with IupPopup?

2015-07-14 Thread Antonio Scuri
It could be something related with your fork, because in C, execution returns after calling IupPopup always. Best, Scuri Em 14/07/2015 12:20, Eric Wing ewmail...@gmail.com escreveu: On 7/14/15, Antonio Scuri sc...@tecgraf.puc-rio.br wrote: That's the normal behavior of IupPopup. It blocks

Re: [Iup-users] Attribute request for IUP Matrix

2015-07-15 Thread Antonio Scuri
, 2015 at 8:36 AM, Antonio Scuri antonio.sc...@gmail.com wrote: I don't think so. Scuri Em 13/07/2015 12:34, Milind Gupta milind.gu...@gmail.com escreveu: Hi Antonio, The SCROLLBAR attribute says its on creation only. So the way I was hiding the scroll bar was setting dx xmax

Re: [Iup-users] Mnemonics of disabled buttons generate events (on Windows at least)

2015-07-15 Thread Antonio Scuri
Fixed and committed to SVN. Thanks for reporting. Best Regards, Scuri On Tue, Jul 14, 2015 at 2:33 PM, Mihail Ivanchev mihai...@gmail.com wrote: Hi List, I just spotted the said issue debugging my application. A disabled button can still be activated through its mnemonic. I have observed

Re: [Iup-users] GridBox slowness and more - Was: Re: Can I get my labels and fields to vertically ACENTER in an hBox?

2015-07-15 Thread Antonio Scuri
Hi, I was thinking. When you resize the dialog it takes the same long time? Best, Scuri On Sat, Jul 11, 2015 at 4:08 PM, Antonio Scuri sc...@tecgraf.puc-rio.br wrote: Ok. So it is not exclusive to the gridbox. I will do some tests here to compute the time. But only on monday... Best

Re: [Iup-users] Rasbperry Pi (Raspbian)

2015-07-15 Thread Antonio Scuri
BTW, some users do use IUP on Mac using GTK... But that's not optimal, I know. Scuri On Wed, Jul 15, 2015 at 3:25 PM, Antonio Scuri sc...@tecgraf.puc-rio.br wrote: Hi, Regarding Mac Cocoa, although would it be wonderful to have it, unfortunately we do not have sort term plans. For us

Re: [Iup-users] Rasbperry Pi (Raspbian)

2015-07-15 Thread Antonio Scuri
Hi, Regarding Mac Cocoa, although would it be wonderful to have it, unfortunately we do not have sort term plans. For us (Tecgraf) there are many other priorities first on the line. For now all our projects are for Windows or Linux. Best, Scuri On Mon, Jul 13, 2015 at 12:35 PM, Eric Wing

Re: [Iup-users] Associate structure with Ihandle

2015-07-13 Thread Antonio Scuri
You have to do that manually in the DESTROY_CB callback. The association itself can be in any custom attribute. Best, Scuri On Mon, Jul 13, 2015 at 5:42 PM, Milind Gupta milind.gu...@gmail.com wrote: Hi Antonio, How can I associate a structure with Ihandle so that it gets destroyed

Re: [Iup-users] Problem with IupPlot AXS_AUTOSCALEEQUAL

2015-08-25 Thread Antonio Scuri
Hi, You must set the REDRAW attribute so all other IupPlot attributes are processed when you change them dynamically after the plot is show. Best, Scuri On Tue, Aug 25, 2015 at 1:38 PM, Tao Li tao.li.luoy...@gmail.com wrote: Hi, Scuri Thanks for the update. It is working properly now.

Re: [Iup-users] Problem with IupPlot AXS_AUTOSCALEEQUAL

2015-08-24 Thread Antonio Scuri
Hi Tao, Please update from SVN and test again. One more fix. Thanks for the feedback. Best, Scuri On Mon, Aug 24, 2015 at 4:46 PM, Tao Li tao.li.luoy...@gmail.com wrote: Hi, Scuri Thanks for the new update. The new update did make the zoom-in operation keep the scale. However, the

Re: [Iup-users] iuplua matrixlist: toggle checkbox from code

2015-11-11 Thread Antonio Scuri
Hi, IupMatrixList inherits from IupMatrix. And in IupMatrix attributes are cached until a redraw is force using the REDRAW attribute. So, right after changing IMAGEVALUE, just call APP.mxlist.redraw = "Yes" Best, Scuri On Wed, Nov 11, 2015 at 3:19 PM, Karagy

Re: [Iup-users] Security Hole in IupGetParam?

2015-11-05 Thread Antonio Scuri
Just committed this change: *Changed:* *IupGetText* pre-defined dialog function API to include the maximum string size. Best, Scuri On Mon, May 16, 2011 at 4:55 PM, Antonio Scuri <sc...@tecgraf.puc-rio.br> wrote: > Yes, I know. I thought about those functions, but I always try

Re: [Iup-users] IupGetText with int maxlen

2015-10-07 Thread Antonio Scuri
Yes, I know. I've been avoiding that for sometime now for backward compatibility. But I guess I won't be able to run from it for many long... :) Best, Scuri On Wed, Oct 7, 2015 at 9:47 AM, Ranier VF wrote: > Hi, > IupGetText, can be have more one parameter: int

Re: [Iup-users] IupGetClassName

2015-07-10 Thread Antonio Scuri
Hi, Just iup.h. The declaration is right there, line 166. Best, Scuri On Fri, Jul 10, 2015 at 3:15 AM, Milind Gupta milind.gu...@gmail.com wrote: I am trying to use IupGetClassName in my C module but it cannot find the definition. I have included iup.h and iuplua.h. Which include file do

Re: [Iup-users] Can I get my labels and fields to vertically ACENTER in an hBox?

2015-07-10 Thread Antonio Scuri
. Best Regards, Antonio Scuri On Fri, Jul 10, 2015 at 5:39 AM, Jörg F. Wittenberger joerg.wittenber...@softeyes.net wrote: Hi all, I'm new here and to iup - which I think is great. Though I've been about to ask a couple of newbe questions. One related here: Am 09.07.2015 um 23:24 schrieb

Re: [Iup-users] Calling Icallback function

2015-07-11 Thread Antonio Scuri
BTW, all the callbacks are type-defined in iupcbs.h. So actually all you have to do is: #include iupcbs.h cb = (IFnii)IupGetCallBack(...); for the resize_cb Best, Scuri On Sat, Jul 11, 2015 at 11:33 AM, Milind Gupta milind.gu...@gmail.com wrote: I figured out. Thanks for leading

Re: [Iup-users] Get an attribute added by Lua

2015-07-11 Thread Antonio Scuri
, Milind Gupta milind.gu...@gmail.com wrote: The things added by Lua to the iupObject are not stored in a Lua table somewhere? On Sat, Jul 11, 2015 at 7:53 AM, Antonio Scuri sc...@tecgraf.puc-rio.br wrote: For the reverse, in C? I don't known. Best, Scuri On Sat, Jul 11, 2015 at 11

Re: [Iup-users] Get an attribute added by Lua

2015-07-11 Thread Antonio Scuri
Have you tried IupGetAttribute(ih, myAttr1)? Unfortunately for myAttr that is a Lua table should be more complicated than that. Best, Scuri On Sat, Jul 11, 2015 at 11:47 AM, Milind Gupta milind.gu...@gmail.com wrote: Hi, If I add an attribute in Lua to any iup object example

Re: [Iup-users] GridBox slowness and more - Was: Re: Can I get my labels and fields to vertically ACENTER in an hBox?

2015-07-11 Thread Antonio Scuri
Ok. So it is not exclusive to the gridbox. I will do some tests here to compute the time. But only on monday... Best, Scuri On Sat, Jul 11, 2015 at 3:22 PM, Jörg F. Wittenberger joerg.wittenber...@softeyes.net wrote: Am 10.07.2015 um 20:27 schrieb Antonio Scuri: Hi, We have here

Re: [Iup-users] How do I prevent my initial window from filling the full screen?

2015-07-11 Thread Antonio Scuri
The second run of the program, the dialog is displayed at the last size, right? So, it is just at the first ever launch, right? Then, do: IupConfigSetVariableInt(ih, name, Width, width); IupConfigSetVariableInt(ih, name, Height, height); before IupConfigLoad that it will prevents

Re: [Iup-users] How do I prevent my initial window from filling the full screen?

2015-07-11 Thread Antonio Scuri
No. I changed the IupConfig, so now if you set: IupConfigSetVariableInt(ih, name, Maximized, 0); It will not maximized on the IupConfigDialogShow. Just committed to SVN. Best, Scuri On Sat, Jul 11, 2015 at 7:58 PM, Eric Wing ewmail...@gmail.com wrote: On 7/11/15, Antonio Scuri

Re: [Iup-users] IUP 3.15 Released

2015-07-07 Thread Antonio Scuri
good. Thanks for creating it. Best Regards, Milind On Mon, Jul 6, 2015 at 7:08 PM, Antonio Scuri antonio.sc...@gmail.com wrote: Hi All, We just released IUP version 3.15. We would like to highlight some of the new features: - New: iup_class_cbs.hpp header with macros to help

Re: [Iup-users] iuplua_checkihandle

2015-07-10 Thread Antonio Scuri
Try this: int iuplua_isihandle(lua_State *L, int pos) { lua_getmetatable(L, pos); /* t2 = metatable(stack(pos)) */ lua_pushstring(L, iupHandle); lua_gettable(L, LUA_REGISTRYINDEX); /* t = registry[iupHandle] */ if (lua_rawequal(L, -2, -1)) /* check (t2==t)? */ { lua_pop(L, 2);

Re: [Iup-users] error on IupImageLibOpen

2015-11-18 Thread Antonio Scuri
#29 0x7591f668 in ?? () from /usr/lib64/libglib-2.0.so.0 > #30 0x7591fa6a in g_main_loop_run () from > /usr/lib64/libglib-2.0.so.0 > #31 0x76dfd6bd in gtk_main () from /usr/lib64/libgtk-3.so.0 > #32 0x00474439 in ?? () > #33 0x004

Re: [Iup-users] Which packages to download?

2015-11-17 Thread Antonio Scuri
ing system. But notice that these binaries were built in an Ubuntu system. Which means It may still have incompatibilities with your system if it is not Ubuntu. Then send me a copy of the erros and I may be able to help you a little further. Best Regards, Antonio Scuri On Tue, Nov 17, 2015

Re: [Iup-users] error on IupImageLibOpen

2015-11-18 Thread Antonio Scuri
S). I'm not sure is the correct place as > I'm not using (have not installed) tecmake, nor spent any time on it. > > By the way, is there a way to do a make clean or make dist-clean? > > Thanks, > > Grieb. > > On Wed, 18 Nov 2015 14:15:44 -0200 > Antonio Scuri <sc...@tecg

Re: [Iup-users] Normalizers

2015-08-27 Thread Antonio Scuri
The normalizer will force a resize only at the elements that do NOT have their user size set. SIZE and RASTERSIZE set the same user size using different units, so you just need to set one of them. Best, Scuri On Wed, Aug 26, 2015 at 4:47 PM, Jörg F. Wittenberger

Re: [Iup-users] UTF-8 GTK2/Linux: action callback in IupText broken.

2015-08-27 Thread Antonio Scuri
ok I'll check that. Thanks, Scuri On Wed, Aug 26, 2015 at 6:22 PM, Jörg F. Wittenberger joerg.wittenber...@softeyes.net wrote: I'm trying to use the ACTION callback on a IupText. The callback receives wierd values for the 3rd (char* new_value) argument. Here what I get when I enter

Re: [Iup-users] convert dialog to image

2015-09-08 Thread Antonio Scuri
You mean in offscreen? No. What do you have in mind? Best, Scuri On Tue, Sep 8, 2015 at 3:38 PM, Milind Gupta wrote: > Hi, > Is it possible to convert a control to an image before making it > visible, i.e. after mapping it? So it can be animated on the

Re: [Iup-users] Attribute request for IUP Matrix

2015-09-15 Thread Antonio Scuri
it? So in which situation you need to hide a scrollbar that is not being hidden? Best, Scuri On Wed, Jul 15, 2015 at 2:59 PM, Antonio Scuri <sc...@tecgraf.puc-rio.br> wrote: > I don't know. I have to investigate more. The IupMatrix is quite > complex. But it maybe possible. I'll

Re: [Iup-users] Attribute request for IUP Matrix

2015-09-16 Thread Antonio Scuri
work properly because I think IUP recalculates > them and the scroll bar shows up back. > > Thanks, > Milind > > > On Tue, Sep 15, 2015 at 12:50 PM, Antonio Scuri <sc...@tecgraf.puc-rio.br> > wrote: > >> Hi Milind, >> >> I'm about to release version

Re: [Iup-users] Iup control Printer

2015-09-16 Thread Antonio Scuri
Regards, Antonio Scuri On Wed, Sep 16, 2015 at 10:17 PM, 阳光 <su...@sunus.net> wrote: > Hi, > Can I use IupCanvas to control the printer? Or is there any other way? > Many thanks. > > > -- > Monitor

Re: [Iup-users] TAB key not call LEAVEWINDOW_CB

2015-09-16 Thread Antonio Scuri
LEAVEWINDOW_CB is mouse related callback, not focus callback. Best, Scuri On Wed, Sep 16, 2015 at 9:12 PM, Ranier VF wrote: > TAB key, does not call LEAVEWINDOW_CB > > This behavior is expected? > Because TAB key change the focus on controls. > > Best, > > Ranier

Re: [Iup-users] UTF-8 GTK2/Linux: action callback in IupText broken.

2015-09-16 Thread Antonio Scuri
How are you checking this? Using a printf like output? I couldn't reproduce the problem here. Best, Scuri On Thu, Aug 27, 2015 at 10:21 AM, Antonio Scuri <sc...@tecgraf.puc-rio.br> wrote: > ok I'll check that. > > Thanks, > Scuri > > > On Wed, Aug 2

Re: [Iup-users] IupText currency values

2015-09-15 Thread Antonio Scuri
Hi, No. But I think this one could be enough: IupSetAttribute(text, "MASK", "[+/-]?(/d+/./d/d)"); It will match + or - signs if any, any digit, a period followed by two digits. If you don't wnat the +/- signs just remove up to ? (inclusive). Best, Scuri On Tue, Sep 15, 2015 at 7:43 AM,

Re: [Iup-users] iup.singleinstance

2015-09-15 Thread Antonio Scuri
Hi, IUP global attributes are not set/get in that way. You must use the iup.SetGlobal and iup.GetGlobal functions. Best, Scuri On Tue, Sep 15, 2015 at 4:58 AM, Ulrich Schmidt wrote: > Hi. > I wrote a lua script using iuplua. it displays a dialog and can be > minimized to

Re: [Iup-users] UTF-8 GTK2/Linux: action callback in IupText broken.

2015-09-18 Thread Antonio Scuri
I think that won't work. It will print garbage... Specially in Windows. Best, Scuri On Fri, Sep 18, 2015 at 4:55 PM, "Jörg F. Wittenberger" < joerg.wittenber...@softeyes.net> wrote: > Am 17.09.2015 um 02:34 schrieb Antonio Scuri: > > How are you checking this? U

Re: [Iup-users] iupplot

2015-09-20 Thread Antonio Scuri
Hi, I tested the iuplua console for 5.1, 5.2 and 5.3, for 32 and 64 bits and they all successfully loaded require("iuplua_plot") p = iup.plot{} Which package did you downloaded? Is the DLL there? Best, Scuri On Sun, Sep 20, 2015 at 3:02 PM, Milind Gupta wrote:

Re: [Iup-users] UTF-8 GTK2/Linux: action callback in IupText broken.

2015-09-22 Thread Antonio Scuri
t; On Sat, Sep 19, 2015 at 7:13 AM, "Jörg F. Wittenberger" < > > joerg.wittenber...@softeyes.net> wrote: > > > >> Am 18.09.2015 um 22:03 schrieb Antonio Scuri: > >>> I think that won't work. It will print garbage... Specially in > W

[Iup-users] IUP 3.16 Released

2015-09-18 Thread Antonio Scuri
There is also new chapters in the tutorial, with a new full application called Simple Paint. And better error report for errors in Lua. 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,

Re: [Iup-users] UTF-8 GTK2/Linux: action callback in IupText broken.

2015-09-20 Thread Antonio Scuri
erg.wittenber...@softeyes.net> wrote: > Am 18.09.2015 um 22:03 schrieb Antonio Scuri: > > I think that won't work. It will print garbage... Specially in Windows. > > Out of curiosity: why will it print garbage? > > (BTW: In the case at hand it's not Windows. As I noted:

Re: [Iup-users] help

2015-12-07 Thread Antonio Scuri
Hi, Which compiler are you using? I mean, which MingW distribution? Best, Scuri Em 07/12/2015 07:15, "Vitalik Batsits" escreveu: > Hi! I have problem during compiling examples on Windows 10 with > pre-compiled libs Win64_dllw4 > $ gcc >

Re: [Iup-users] About LED

2015-12-08 Thread Antonio Scuri
t; escreveu: > Hi Antonio, > > I was under the impression that I could compile the LED files to > standalone shared objects. (.so / .dll) There was mention of a LED > compiler / viewer if not mistaken. > > John > > On Tue, 2015-12-08 at 13:54 -0200, Antonio Scuri wrote: >

[Iup-users] IUP 3.17 Released

2015-12-03 Thread Antonio Scuri
ad at: http://www.tecgraf.puc-rio.br/iup/ http://iup.sourceforge.net/ Best Regards, Antonio Scuri -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK

Re: [Iup-users] IUP 3.17 Released

2015-12-07 Thread Antonio Scuri
Thank you all. We are closer now to IUP 4.0, but there is still a lot to do. Best Regards, Antonio Scuri Em 06/12/2015 21:22, "Andy Xiyue" <xiyue...@gmail.com> escreveu: > Thanks Antonio. Great work! > > On 4 December 2015 at 03:11, Antonio Scuri <antonio.sc...

Re: [Iup-users] IUP 3.17 Released

2015-12-03 Thread Antonio Scuri
Thanks! Appreciated. Best, Scuri Em 03/12/2015 16:40, "John Spikowski" <supp...@scriptbasic.org> escreveu: > Thanks Antonio for all your hard work making IUP the best GUI toolkit on > all platforms I work on. > > > > On Thu, 2015-12-03 at 14:11 -020

Re: [Iup-users] 3.17 cd issue

2015-12-11 Thread Antonio Scuri
It needs the "iupcd" library. Are You including this one? Best, Scuri Em 11/12/2015 09:09, "James Fuller" escreveu: > Antonio, > Try the canvas1.c demo with the 64 bit dll MinGW distro's. > I think I linked all the libraries. > > ld is throwing: undefined reference to

Re: [Iup-users] Drawbacks with this approach

2015-12-14 Thread Antonio Scuri
There is no need for IupRefresh for every IupAppend. Actually this will slow down a lot the creation process. Despite that the C code you sent looks ok. Best, Scuri On Mon, Dec 14, 2015 at 9:12 AM, James Fuller wrote: > Antonio, >> >> Well it looks like my old

Re: [Iup-users] Drawbacks with this approach

2015-12-13 Thread Antonio Scuri
Hi, No drawbacks. For instance IupLabel() calls IupCreate(), so all controls are already created in this way. Best, Scuri On Sun, Dec 13, 2015 at 9:03 AM, James Fuller wrote: > Antonio, > I don't know where I got the original code (FreeBasic?) but are there > any

[Iup-users] Mingw4 and Mingw4_64

2015-12-10 Thread Antonio Scuri
e download packages. Best Regards, Antonio Scuri -- ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users

Re: [Iup-users] Where are instructions on how to build on linux from svn?

2015-12-10 Thread Antonio Scuri
See at IUP / Guide / Building in Linux. Best, Scuri On Thu, Dec 10, 2015 at 2:23 PM, Matt Welland wrote: > I see the message "Build instructions and usage are available in the IUP > documentation." but I haven't been able to find them on the pages at >

Re: [Iup-users] example regression testing

2016-01-04 Thread Antonio Scuri
Actually that's kinda expected since the dialog has no elements that will give it a minimum size. For instance, It will behave "better" if this line is added: IupSetAttribute(dlg, "SIZE", "QUARTERxQUARTER"); Best, Scuri On Fri, Jan 1, 2016 at 8:53 AM, James Fuller

Re: [Iup-users] Image Background Mask

2016-01-08 Thread Antonio Scuri
Hi, I'm in the middle of a debug section here that is taking forever... So I'm not very responsive since New Year's Eve. Sorry. If you convert the image to LED or C using IupView you will be able to identify the background color index in the palette. You can do that also in other Paint

Re: [Iup-users] Iup store C pointer

2015-12-23 Thread Antonio Scuri
Yes, it works. But it was broken in 3.16. It was fixed in 3.17. Best, Scuri On Wed, Dec 23, 2015 at 12:53 PM, Ranier VF wrote: > Hi Scuri, > Is possible store C pointer with IupSetHandle, like: > > struct my_str_t * my_str; > IupSetHandle("my_str", (Ihandle *)

Re: [Iup-users] 3.17 example issues

2015-12-28 Thread Antonio Scuri
Ok. Thanks for the feedback. Does it displays like the screenshot I sent you? Best, Scuri On Mon, Dec 28, 2015 at 4:14 PM, James Fuller wrote: > > Ok this is what I finally came up with so cbox would compile on My 64bit > Ubuntu MATE. > This is my bash script file

Re: [Iup-users] window auto sizing / elements positioning

2015-11-24 Thread Antonio Scuri
menu to this example the button is partly over > the menu (the top part of the button), with is completely unacceptable. > > Just as a reminder, I'm using gtk 3.8.2. > > Am I a bit more clear now?! I find it difficult to describe images. > > Thanks, > > Grieb. > > O

Re: [Iup-users] window auto sizing / elements positioning

2015-11-30 Thread Antonio Scuri
Sorry, I couldn't reproduce your problem here, running the code you sent me. I mean, here they all worked ok. But I don't have gtk 3.8.2. Best, Scuri On Tue, Nov 24, 2015 at 2:12 PM, Antonio Scuri <sc...@tecgraf.puc-rio.br> wrote: > Ok. Now I understand your problems. > &g

Re: [Iup-users] error on IupImageLibOpen

2015-11-18 Thread Antonio Scuri
Hi, IupImageLib is harmless. Probably the problem is somewhere else. Depending on how the IM library was built and which GTK is installed, there could be a problem in libPNG used internally in GTK. But this problem does not depends on IupImageLib. Could be the IUP-IM lib? Best, Scuri On

Re: [Iup-users] make/tekmake for iup

2015-11-18 Thread Antonio Scuri
o > > > tecmake.mak in the root of iup library source! The problem is not in > > > my application, it happens when I try to compile iup itself... > > > > > > Thanks, > > > > > > Grieb. > > > > > > On Wed, 18 Nov 2015 16:22:28 -0200 > > &g

<    1   2   3   4   5   6   7   8   9   10   >