Re: [Iup-users] Problem with IM library in some 64 bits machines

2016-06-02 Thread Antonio Scuri
  Hi,

  GTK uses the same libPNG IM uses, but IM includes the libPNG code.
Sometimes they conflict. So this is one of the reasons we changed IM for
the next version. In Linux we are going to always use what's installed on
the system instead of using the latest code. That's whats on SVN.

  IUP and CD that are on SVN also follows that rule for zlib and freetype.

  So regarding the compilation error, it is related to the libpng header
you have installed on your system. Usually at /usr/include/libpng. Can you
check which version is?

Best,
Scuri

On Thu, Jun 2, 2016 at 2:07 AM, Germán Arias  wrote:

> Hi,
>
> After an update of some packages on my 64 bits machine, I'm having
> problems with my IUP applications. So, I tried with another 64 bits
> system to check if something is wrong on my system. Then I install
> OpenSUSE Leap 42.1 and I get same problems. Well not exactly the same
> problems, but problems. On the initial system (an Ubuntu based distro)
> some widgets are not displayed correctly or don't work correctly. On
> OpenSUSE some apps simply crash at launch. The problems occurs when the
> app link the libraries iupim and im. If I remove those libraries (and
> the code that use those libraries), then the application works
> prefectly. Here the backtrace I get with one test application:
>
> (gdb) backtrace
> #0  0x773f62e0 in __longjmp_chk () at /lib64/libc.so.6
> #1  0x7fffeaf0bd6c in  ()
> at /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
> #2  0x74b5b376 in png_error () at /usr/lib64/libim.so
> #3  0x74b54651 in png_create_read_struct_2 () at
> /usr/lib64/libim.so
> #4  0x7fffeaf0bffa in  ()
> at /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
> #5  0x76031241 in  () at /usr/lib64/libgdk_pixbuf-2.0.so.0
> #6  0x76031af8 in gdk_pixbuf_loader_close ()
> at /usr/lib64/libgdk_pixbuf-2.0.so.0
> #7  0x7602d935 in  () at /usr/lib64/libgdk_pixbuf-2.0.so.0
> #8  0x7602f76c in gdk_pixbuf_new_from_stream ()
> at /usr/lib64/libgdk_pixbuf-2.0.so.0
> #9  0x76bf7fbd in  () at /usr/lib64/libgtk-3.so.0
> #10 0x76bfb758 in gtk_icon_info_load_icon ()
> at /usr/lib64/libgtk-3.so.0
> #11 0x76bfb9dc in gtk_icon_theme_load_icon_for_scale ()
> at /usr/lib64/libgtk-3.so.0
> #12 0x77b4bc15 in iupdrvImageLoad () at /usr/lib64/libiup.so
> #13 0x77b030c9 in iupImageGetImage () at /usr/lib64/libiup.so
> #14 0x77b358b6 in gtkButtonSetPixbuf () at /usr/lib64/libiup.so
> #15 0x77b3617d in gtkButtonSetImageAttrib () at
> /usr/lib64/libiup.so
> #16 0x77afd9b0 in iupClassObjectSetAttribute () at
> /usr/lib64/libiup.so
> ---Type  to continue, or q  to quit---
> #17 0x77aefd31 in iupAttribUpdate () at /usr/lib64/libiup.so
> #18 0x77af91f4 in IupMap () at /usr/lib64/libiup.so
> #19 0x77af9210 in IupMap () at /usr/lib64/libiup.so
> #20 0x77af9210 in IupMap () at /usr/lib64/libiup.so
> #21 0x77af9210 in IupMap () at /usr/lib64/libiup.so
> #22 0x77af9210 in IupMap () at /usr/lib64/libiup.so
> #23 0x77af9400 in IupShow () at /usr/lib64/libiup.so
> #24 0x00400c67 in main ()
> (gdb)
>
> I tried install the IM, CD and IUP libraries from SVN. But I get an
> error with IM:
>
> Tecmake: compiling im_format_png.cpp ...
> g++ -c  -Wall -O2 -m64 -fPIC -I. -I../include -Ilibtiff
> -I/usr/include/libpng -Ilibjpeg -Ilibexif -Iliblzf-DUSE_EXIF
> -DTEC_UNAME=Linux41_64 -DTEC_SYSNAME=Linux -DLinux=4.1
> -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o
> ../obj/Linux41_64/im_format_png.o im_format_png.cpp
> im_format_png.cpp: In member function ‘virtual int
> imFileFormatPNG::ReadImageInfo(int)’:
> im_format_png.cpp:624:27: error: ‘PNG_SKIP_sRGB_CHECK_PROFILE’ was not
> declared in this scope
>png_set_option(png_ptr, PNG_SKIP_sRGB_CHECK_PROFILE, 1);
>^
> ../tecmake.mak:1631: recipe for target
> '../obj/Linux41_64/im_format_png.o' failed
> make[1]: *** [../obj/Linux41_64/im_format_png.o] Error 1
> Makefile:12: recipe for target 'im' failed
> make: *** [im] Error 2
>
> Currently I only can work in a 32 bits machine, where all works
> perfectly. Attached the test application that crash on OpenSUSE, I
> compile it with:
>
> gcc c_example7.c -I/usr/include/iup -liup -liupim -lim -liupimglib
>
>
> Regards.
> Germán
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> Iup-users mailing list
> Iup-users@lists.sourcef

Re: [Iup-users] Problem with IM library in some 64 bits machines

2016-06-02 Thread Antonio Scuri
  Hi,

  Just fixed that compilation problem for libpng 1.6.8. It is now on SVN.

Best,
Scuri


On Thu, Jun 2, 2016 at 2:50 PM, Germán Arias  wrote:

> Hi,
>
> El jue, 02-06-2016 a las 10:03 -0300, Antonio Scuri escribió:
>
>   Hi,
>
>   GTK uses the same libPNG IM uses, but IM includes the libPNG code.
> Sometimes they conflict. So this is one of the reasons we changed IM for
> the next version. In Linux we are going to always use what's installed on
> the system instead of using the latest code. That's whats on SVN.
>
>   IUP and CD that are on SVN also follows that rule for zlib and freetype.
>
>   So regarding the compilation error, it is related to the libpng header
> you have installed on your system. Usually at /usr/include/libpng. Can you
> check which version is?
>
>
> This is the version 1.6.8.
>
> Germán
>
>
> Best,
> Scuri
>
> On Thu, Jun 2, 2016 at 2:07 AM, Germán Arias  wrote:
>
> Hi,
>
> After an update of some packages on my 64 bits machine, I'm having
> problems with my IUP applications. So, I tried with another 64 bits
> system to check if something is wrong on my system. Then I install
> OpenSUSE Leap 42.1 and I get same problems. Well not exactly the same
> problems, but problems. On the initial system (an Ubuntu based distro)
> some widgets are not displayed correctly or don't work correctly. On
> OpenSUSE some apps simply crash at launch. The problems occurs when the
> app link the libraries iupim and im. If I remove those libraries (and
> the code that use those libraries), then the application works
> prefectly. Here the backtrace I get with one test application:
>
> (gdb) backtrace
> #0  0x773f62e0 in __longjmp_chk () at /lib64/libc.so.6
> #1  0x7fffeaf0bd6c in  ()
> at /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
> #2  0x74b5b376 in png_error () at /usr/lib64/libim.so
> #3  0x74b54651 in png_create_read_struct_2 () at
> /usr/lib64/libim.so
> #4  0x7fffeaf0bffa in  ()
> at /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
> #5  0x76031241 in  () at /usr/lib64/libgdk_pixbuf-2.0.so.0
> #6  0x76031af8 in gdk_pixbuf_loader_close ()
> at /usr/lib64/libgdk_pixbuf-2.0.so.0
> #7  0x7602d935 in  () at /usr/lib64/libgdk_pixbuf-2.0.so.0
> #8  0x7602f76c in gdk_pixbuf_new_from_stream ()
> at /usr/lib64/libgdk_pixbuf-2.0.so.0
> #9  0x76bf7fbd in  () at /usr/lib64/libgtk-3.so.0
> #10 0x76bfb758 in gtk_icon_info_load_icon ()
> at /usr/lib64/libgtk-3.so.0
> #11 0x76bfb9dc in gtk_icon_theme_load_icon_for_scale ()
> at /usr/lib64/libgtk-3.so.0
> #12 0x77b4bc15 in iupdrvImageLoad () at /usr/lib64/libiup.so
> #13 0x77b030c9 in iupImageGetImage () at /usr/lib64/libiup.so
> #14 0x77b358b6 in gtkButtonSetPixbuf () at /usr/lib64/libiup.so
> #15 0x77b3617d in gtkButtonSetImageAttrib () at
> /usr/lib64/libiup.so
> #16 0x77afd9b0 in iupClassObjectSetAttribute () at
> /usr/lib64/libiup.so
> ---Type  to continue, or q  to quit---
> #17 0x77aefd31 in iupAttribUpdate () at /usr/lib64/libiup.so
> #18 0x77af91f4 in IupMap () at /usr/lib64/libiup.so
> #19 0x77af9210 in IupMap () at /usr/lib64/libiup.so
> #20 0x77af9210 in IupMap () at /usr/lib64/libiup.so
> #21 0x77af9210 in IupMap () at /usr/lib64/libiup.so
> #22 0x77af9210 in IupMap () at /usr/lib64/libiup.so
> #23 0x77af9400 in IupShow () at /usr/lib64/libiup.so
> #24 0x00400c67 in main ()
> (gdb)
>
> I tried install the IM, CD and IUP libraries from SVN. But I get an
> error with IM:
>
> Tecmake: compiling im_format_png.cpp ...
> g++ -c  -Wall -O2 -m64 -fPIC -I. -I../include -Ilibtiff
> -I/usr/include/libpng -Ilibjpeg -Ilibexif -Iliblzf-DUSE_EXIF
> -DTEC_UNAME=Linux41_64 -DTEC_SYSNAME=Linux -DLinux=4.1
> -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o
> ../obj/Linux41_64/im_format_png.o im_format_png.cpp
> im_format_png.cpp: In member function ‘virtual int
> imFileFormatPNG::ReadImageInfo(int)’:
> im_format_png.cpp:624:27: error: ‘PNG_SKIP_sRGB_CHECK_PROFILE’ was not
> declared in this scope
>png_set_option(png_ptr, PNG_SKIP_sRGB_CHECK_PROFILE, 1);
>^
> ../tecmake.mak:1631: recipe for target
> '../obj/Linux41_64/im_format_png.o' failed
> make[1]: *** [../obj/Linux41_64/im_format_png.o] Error 1
> Makefile:12: recipe for target 'im' failed
> make: *** [im] Error 2
>
> Currently I only can work in a 32 bits machine, where all works
> perfectly. Attached the test application that crash on OpenSUSE, I
> compile it with:
>
> gcc

Re: [Iup-users] iupscintilla with lua lexer not working

2016-06-15 Thread Antonio Scuri
  Notice that when you set attributes in a constructor the order Lua sets
the attributes is not defined. So the problem is at the line

styleclearall = "Yes",

  Comment it and you will see that it works.

Best,
Scuri


On Wed, Jun 15, 2016 at 2:27 PM, Milind Gupta 
wrote:

> Hi,
>   I tried the small example below but the coloring of the text is not
> working, only operators and working. Please can you help me figure out what
> am I missing. I am doing this on iup 3.18 and Lua 5.3.3
>
> require( "iuplua" )
> require("iuplua_scintilla")
>
> sb = iup.scintilla{
> lexerlanguage = "lua",
> keywords0 = "and break do else elseif end false for function goto if in
> local nil not or repeat return then true until while",
> stylefont32 = "Consolas",
> stylefontsize32 = "11",
> styleclearall = "Yes",
> stylefgcolor1 = "0 128 0", -- 1 Lua cooment
> stylefgcolor2 = "0 128 0", -- 2 Lua comment line
> stylefgcolor4 = "128 0 0", -- 4 Number
> stylefgcolor5 = "0 0 255", -- 5 Keyword
> stylefgcolor6 = "160 20 20", -- 6 String
> stylefgcolor7 = "128 0 0", -- 7 Character
> stylefgcolor9 = "0 0 255", -- 9 Preprocessor block
> stylefgcolor10 = "255 0 255", -- 10 Operator
> --stylefgcolor11 = "0 255 0", -- 11 Identifier
> stylebold10 = "YES",
> marginwidth0 = "50"
> }
> vbox = iup.vbox { iup.label {title="Label"}, sb, iup.button { title="Test"
> } }
> dlg = iup.dialog{vbox; title="Dialog"}
> dlg:show()
>
> if (iup.MainLoopLevel()==0) then
>   iup.MainLoop()
> end
>
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.
> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] iupscintilla with lua lexer not working

2016-06-15 Thread Antonio Scuri
  Check que TABSIZE attribute.

Best,
Scuri


On Wed, Jun 15, 2016 at 3:10 PM, Milind Gupta 
wrote:

> Thanks Antonio. It is working now. Another question is how can I set the
> tab spacing on the editor?
>
> Thanks,
> Milind
>
>
> On Wed, Jun 15, 2016 at 10:55 AM, Antonio Scuri 
> wrote:
>
>>   Notice that when you set attributes in a constructor the order Lua sets
>> the attributes is not defined. So the problem is at the line
>>
>> styleclearall = "Yes",
>>
>>   Comment it and you will see that it works.
>>
>> Best,
>> Scuri
>>
>>
>> On Wed, Jun 15, 2016 at 2:27 PM, Milind Gupta 
>> wrote:
>>
>>> Hi,
>>>   I tried the small example below but the coloring of the text is
>>> not working, only operators and working. Please can you help me figure out
>>> what am I missing. I am doing this on iup 3.18 and Lua 5.3.3
>>>
>>> require( "iuplua" )
>>> require("iuplua_scintilla")
>>>
>>> sb = iup.scintilla{
>>> lexerlanguage = "lua",
>>> keywords0 = "and break do else elseif end false for function goto if in
>>> local nil not or repeat return then true until while",
>>> stylefont32 = "Consolas",
>>> stylefontsize32 = "11",
>>> styleclearall = "Yes",
>>> stylefgcolor1 = "0 128 0", -- 1 Lua cooment
>>> stylefgcolor2 = "0 128 0", -- 2 Lua comment line
>>> stylefgcolor4 = "128 0 0", -- 4 Number
>>> stylefgcolor5 = "0 0 255", -- 5 Keyword
>>> stylefgcolor6 = "160 20 20", -- 6 String
>>> stylefgcolor7 = "128 0 0", -- 7 Character
>>> stylefgcolor9 = "0 0 255", -- 9 Preprocessor block
>>> stylefgcolor10 = "255 0 255", -- 10 Operator
>>> --stylefgcolor11 = "0 255 0", -- 11 Identifier
>>> stylebold10 = "YES",
>>> marginwidth0 = "50"
>>> }
>>> vbox = iup.vbox { iup.label {title="Label"}, sb, iup.button {
>>> title="Test" } }
>>> dlg = iup.dialog{vbox; title="Dialog"}
>>> dlg:show()
>>>
>>> if (iup.MainLoopLevel()==0) then
>>>   iup.MainLoop()
>>> end
>>>
>>>
>>>
>>> --
>>> What NetFlow Analyzer can do for you? Monitors network bandwidth and
>>> traffic
>>> patterns at an interface-level. Reveals which users, apps, and protocols
>>> are
>>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>>> J-Flow, sFlow and other flows. Make informed decisions using capacity
>>> planning
>>> reports.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
>>> ___
>>> Iup-users mailing list
>>> Iup-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>>>
>>
>>
>> --
>> What NetFlow Analyzer can do for you? Monitors network bandwidth and
>> traffic
>> patterns at an interface-level. Reveals which users, apps, and protocols
>> are
>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>> J-Flow, sFlow and other flows. Make informed decisions using capacity
>> planning
>> reports.
>> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.
> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] iupscintilla with lua lexer not working

2016-06-15 Thread Antonio Scuri
  Well, that I don't know. Most of the IupScintilla code is just a bypass
of the Scintilla features. I recommend you to take a look at the Scintilla
documentation.

Best,
Scuri




On Wed, Jun 15, 2016 at 3:32 PM, Milind Gupta 
wrote:

> Thanks, got that. 2 more issues:
>
> 1. The documentation table showing the C++ styles and Lua styles. The ID
> 13 in Lua it says Keyword set number 2 but it is changing the color of
> keyword set number 1
> 2. If I have table in the keywords set number 1 then if I write 'table' in
> the editor it colors it right. If I write 'table:hello' it colors table
> correctly. But if I write 'table.unpack' then it does not color table
> properly. How can I make the '.' also respect the color scheme?
>
> Thanks,
> Milind
>
> On Wed, Jun 15, 2016 at 11:16 AM, Antonio Scuri 
> wrote:
>
>>   Check que TABSIZE attribute.
>>
>> Best,
>> Scuri
>>
>>
>> On Wed, Jun 15, 2016 at 3:10 PM, Milind Gupta 
>> wrote:
>>
>>> Thanks Antonio. It is working now. Another question is how can I set the
>>> tab spacing on the editor?
>>>
>>> Thanks,
>>> Milind
>>>
>>>
>>> On Wed, Jun 15, 2016 at 10:55 AM, Antonio Scuri <
>>> sc...@tecgraf.puc-rio.br> wrote:
>>>
>>>>   Notice that when you set attributes in a constructor the order Lua
>>>> sets the attributes is not defined. So the problem is at the line
>>>>
>>>> styleclearall = "Yes",
>>>>
>>>>   Comment it and you will see that it works.
>>>>
>>>> Best,
>>>> Scuri
>>>>
>>>>
>>>> On Wed, Jun 15, 2016 at 2:27 PM, Milind Gupta 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>   I tried the small example below but the coloring of the text is
>>>>> not working, only operators and working. Please can you help me figure out
>>>>> what am I missing. I am doing this on iup 3.18 and Lua 5.3.3
>>>>>
>>>>> require( "iuplua" )
>>>>> require("iuplua_scintilla")
>>>>>
>>>>> sb = iup.scintilla{
>>>>> lexerlanguage = "lua",
>>>>> keywords0 = "and break do else elseif end false for function goto if
>>>>> in local nil not or repeat return then true until while",
>>>>> stylefont32 = "Consolas",
>>>>> stylefontsize32 = "11",
>>>>> styleclearall = "Yes",
>>>>> stylefgcolor1 = "0 128 0", -- 1 Lua cooment
>>>>> stylefgcolor2 = "0 128 0", -- 2 Lua comment line
>>>>> stylefgcolor4 = "128 0 0", -- 4 Number
>>>>> stylefgcolor5 = "0 0 255", -- 5 Keyword
>>>>> stylefgcolor6 = "160 20 20", -- 6 String
>>>>> stylefgcolor7 = "128 0 0", -- 7 Character
>>>>> stylefgcolor9 = "0 0 255", -- 9 Preprocessor block
>>>>> stylefgcolor10 = "255 0 255", -- 10 Operator
>>>>> --stylefgcolor11 = "0 255 0", -- 11 Identifier
>>>>> stylebold10 = "YES",
>>>>> marginwidth0 = "50"
>>>>> }
>>>>> vbox = iup.vbox { iup.label {title="Label"}, sb, iup.button {
>>>>> title="Test" } }
>>>>> dlg = iup.dialog{vbox; title="Dialog"}
>>>>> dlg:show()
>>>>>
>>>>> if (iup.MainLoopLevel()==0) then
>>>>>   iup.MainLoop()
>>>>> end
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> What NetFlow Analyzer can do for you? Monitors network bandwidth and
>>>>> traffic
>>>>> patterns at an interface-level. Reveals which users, apps, and
>>>>> protocols are
>>>>> consuming the most bandwidth. Provides multi-vendor support for
>>>>> NetFlow,
>>>>> J-Flow, sFlow and other flows. Make informed decisions using capacity
>>>>> planning
>>>>> reports.
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
>>>>> ___
>>>>> Iup-users mailing list
>>>>> Iup-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/list

Re: [Iup-users] Documentation on Colour Call back-Matrix

2016-06-20 Thread Antonio Scuri
  Try this:

function matrix:bgcolor_cb(l, c)
-- play here
local green =0
local blue =0
local red  =200
if c == 0 then
return iup.IGNORE -- title row, not used
end

if l == 0 then -- title column
return iup.IGNORE
end

return  red, green, blue, iup.DEFAULT
end

Best,
Scuri


On Mon, Jun 20, 2016 at 1:05 AM, John Huttley 
wrote:

> Hi Antonio,
>
> (Version 3.18 Win 64-Lua 5.3 Tested on Win7 and Win10)
>
> I've been colourising my Matrixes. I have found a discrepancy in the
> Documentation
>
> ===
>
> *BGCOLOR_CB* - Action generated to retrieve the background color of a
> cell when it needs to be redrawn.
>
> int function(Ihandle **ih*, int *lin*, int *col*, int **red*, int **green*, 
> int **blue*); [in C]*ih*:bgcolor_cb(*lin, col*: number) -> (*red, green, 
> blue, ret*: number) [in Lua]
>
> *ih*: identifier of the element that activated the event.
> *lin*, *col*: Coordinates of the cell.
> *red*, *green*, *blue*: the cell background color.
> ==
>
> It seem clear to me-- from this-- that the function return should be
> return red, green blue
>
> However the correct return for green and blue is
> return  green, blue
>
> I can't seem to get red to work at all.
> It shows red as black, which looks same as returning 0,0,0
>
> I have attached my test program in lua.
>
> Regards,
>
> John
>
>
>
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports. http://sdm.link/zohomanageengine
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Documentation on Colour Call back-Matrix

2016-06-20 Thread Antonio Scuri
 The 4th parameter is needed so I can distinguish from the situation where
iup.IGNORE is returned. Since they all are numbers there is no way to
distinguish from the rgb values.

 The documentation specifies a return value:

int function(Ihandle **ih*, int *lin*, int *col*, int **red*, int
**green*, int **blue*); [in C]*ih*:bgcolor_cb(*lin, col*: number) ->
(*red, green, blue, ret*: number) [in Lua]

  The automatic assignment for iup.DEFAULT on return values can be used
only no return value is used, which is equivalent to returning "nil".

Best,
Scuri

On Mon, Jun 20, 2016 at 9:38 PM, John Huttley 
wrote:

> Thank you Antonio,
>
>
> That works perfectly. However I'm at a loss to understand
>
> why iup.DEFAULT is needed, since I'm providing the three params. Why is
> any default needed in this case? from  the doc " the IupLua binding will
> automatically return IUP_DEFAULT if no value is returned."
>
>
> why its the 4th param. Reviewing the documentation I still only see the
> RGB.
>
>
> in the doc I see only this section, which explicitly applies to C
>
> 
>
> The callbacks implemented in C by the application must return one of the
> following values:
>
>- IUP_DEFAULT: Proceeds normally with user interaction. In case other
>return values do not apply, the callback should return this value.
>- IUP_CLOSE: Call *IupExitLoop* after return. Depending on the state
>of the application it will close all windows and exit the application.
>Applies only to some actions.
>- IUP_IGNORE: Makes the native system ignore that callback action.
>Applies only to some actions.
>- IUP_CONTINUE: Makes the element to ignore the callback and pass the
>treatment of the execution to the parent element. Applies only to some
>actions.
>
> ==
>
> Which explains the iup.IGNORE (thanks), but the significance of the others
> is clearly understated!
>
> I think you might want to revisit that section.
>
> Regards,
>
> John
>
>
>
>
> On 20/06/2016 10:04 AM, Antonio Scuri wrote:
>
>   Try this:
>
> function matrix:bgcolor_cb(l, c)
> -- play here
> local green =0
> local blue =0
> local red  =200
> if c == 0 then
> return iup.IGNORE -- title row, not used
> end
>
> if l == 0 then -- title column
> return iup.IGNORE
> end
>
> return  red, green, blue, iup.DEFAULT
> end
>
> Best,
> Scuri
>
>
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] Fwd: luajit: error loading module 'iuplua51' from file '.\iuplua51.dll': The specified procedure could not be found.

2016-06-22 Thread Antonio Scuri
-- Forwarded message --
From: Antonio Scuri 
Date: Sat, May 21, 2016 at 5:15 PM
Subject: Re: [Iup-users] luajit: error loading module 'iuplua51' from file
'.\iuplua51.dll': The specified procedure could not be found.
To: "IUP discussion list." 


  The LuaBinaryes distribution has a DLL called lua51.dll that is actually
a proxy to lua5.1.dll.

  Since the Lua DLL from Lua JIT is special you need the other way around.
You can produce a lua5.1.dll proxy that points to lua51.dll.

  I'm sending you two file so you can test this. You must rename them
because gmail does not allow DLLs in attachments.

Best,
Scuri


On Sat, May 21, 2016 at 3:58 PM, soeren sofke 
wrote:

> Hi Scuri
>
> meanwhile I managed to make it work. I analysed the
> IUPLUA51.DLL dependencies with "Dependency Walker" [1] and noticed the
> following mismatch:
>
> IUPLUA51.DLL required a file named LUA5.1.DLL but my luaJit build just
> provides a file named LUA51.DLL.
>
> My temporary workaround: I copied and renamed LUA51.DLL to LUA5.1.DLL.
>
> I am now able to draw nice GUIs with IUP and even plot data with CD.
>
> How should I proceed to overcome this workaround?
>
> Best,
>  Sören
>
> [1] http://www.dependencywalker.com/
>
>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data
> untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Fwd: luajit: error loading module 'iuplua51' from file '.\iuplua51.dll': The specified procedure could not be found.

2016-06-25 Thread Antonio Scuri
  No. The attachment got stuck in the server. I will upload it to a
download area and send the link. I will let you know.

Best,
Scuri
Em 25/06/2016 18:44, "Hernan Cano"  escreveu:

> I also do not receive attachments.
>
> 2016-06-25 13:41 GMT-05:00 soeren sofke:
>
>> Hi Scuri,
>>
>> thank you for your proposal. Until now, I did not received any file
>> attachments from you. Please, can you send the files again?
>>
>> Best,
>>  Sören
>>
>> 2016-06-22 19:18 GMT+02:00 Antonio Scuri :
>>
>>>
>>> -- Forwarded message --
>>> From: Antonio Scuri
>>> Date: Sat, May 21, 2016 at 5:15 PM
>>> Subject: Re: [Iup-users] luajit: error loading module 'iuplua51' from
>>> file '.\iuplua51.dll': The specified procedure could not be found.
>>> To: "IUP discussion list."
>>>
>>>
>>>   The LuaBinaryes distribution has a DLL called lua51.dll that is
>>> actually a proxy to lua5.1.dll.
>>>
>>>   Since the Lua DLL from Lua JIT is special you need the other way
>>> around. You can produce a lua5.1.dll proxy that points to lua51.dll.
>>>
>>>   I'm sending you two file so you can test this. You must rename them
>>> because gmail does not allow DLLs in attachments.
>>>
>>> Best,
>>> Scuri
>>>
>>>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Fwd: luajit: error loading module 'iuplua51' from file '.\iuplua51.dll': The specified procedure could not be found.

2016-06-27 Thread Antonio Scuri
  Hi,

  I uploaded the proxy DLL to:

http://webserver2.tecgraf.puc-rio.br/~scuri/tmp/lua5.1_proxy.zip

  Let me know if it works.

Best,
Scuri


On Sat, Jun 25, 2016 at 7:32 PM, Antonio Scuri 
wrote:

>   No. The attachment got stuck in the server. I will upload it to a
> download area and send the link. I will let you know.
>
> Best,
> Scuri
> Em 25/06/2016 18:44, "Hernan Cano"  escreveu:
>
>> I also do not receive attachments.
>>
>> 2016-06-25 13:41 GMT-05:00 soeren sofke:
>>
>>> Hi Scuri,
>>>
>>> thank you for your proposal. Until now, I did not received any file
>>> attachments from you. Please, can you send the files again?
>>>
>>> Best,
>>>  Sören
>>>
>>> 2016-06-22 19:18 GMT+02:00 Antonio Scuri :
>>>
>>>>
>>>> -- Forwarded message --
>>>> From: Antonio Scuri
>>>> Date: Sat, May 21, 2016 at 5:15 PM
>>>> Subject: Re: [Iup-users] luajit: error loading module 'iuplua51' from
>>>> file '.\iuplua51.dll': The specified procedure could not be found.
>>>> To: "IUP discussion list."
>>>>
>>>>
>>>>   The LuaBinaryes distribution has a DLL called lua51.dll that is
>>>> actually a proxy to lua5.1.dll.
>>>>
>>>>   Since the Lua DLL from Lua JIT is special you need the other way
>>>> around. You can produce a lua5.1.dll proxy that points to lua51.dll.
>>>>
>>>>   I'm sending you two file so you can test this. You must rename them
>>>> because gmail does not allow DLLs in attachments.
>>>>
>>>> Best,
>>>> Scuri
>>>>
>>>>
>>
>> --
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>> present their vision of the future. This family event has something for
>> everyone, including kids. Get more information and register today.
>> http://sdm.link/attshape
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP Closing the entire program

2016-06-27 Thread Antonio Scuri
  Hi,

  On IupClose, we call

 OleUninitialize();
 CoUninitialize();

  So specially  CoUninitialize may affect your code.

  Notice that IupOpen and IupClose were not designed for successive calls.
Usually the application calls IupOpen once at the beginning, and IupClose
once at the end.

Best,
Scuri


On Sat, Jun 25, 2016 at 6:48 PM, Ron  wrote:

> (I appear to be experiencing email issues with AOL mail and this list.
> So I moved to a non AOL mail account.  This is a resend.  My apologizes
> if this is a duplication)
>
>
> Hello,
>
> First let me say I completely new to implementing a GUI.  I do have a
> learning curve ahead of me.
>
> However, I am attempting to implement a GUI as part of a DLL that is
> accessed by another application.  The DLL provides access to a radio
> transceiver via an USB connection.
> This is on a Windows 10 system.
>
> Background:
> HDSDR (host application) ->  DLL ->  (radio transceiver (USB).
> There is a call within the DLL that requests a GUI be presented to the
> user.   That GUI will provide access to the transceiver so that certain
> control parameters may be modified.
> Please see the IUP code below.  It appears that when IupClose is
> called,  IUP is closing the entire program and shutting down the DLL.
> This in turn stops the host application. If I simply click on the "X" to
> close the GUI window, things are fine.  The GUI closes and the DLL
> remains running.  But if I click on the "close" button, the DLL stops.
>
> Regards,
> Ron
>
>
> #include 
> #include 
> #include 
> #include 
> #include 
> #include "extern.h"
>
> Ihandle *text, *dlg;
> static char oput[100];
>
> // Textbox key pressed callback
> static int k_any(Ihandle *self, int c)
> {
>  char *lpOput = &oput[0];
>  lpOput = IupGetAttribute(text, "VALUE");// retrieve the
> whole string
>  double MHz = 0;
>
>  // Treat a CR as the "do it"
>  if (c == K_CR)
>  {
>  double dval = strtod(lpOput, NULL);
>  int val = (int)dval;// cast double
> value to an int
>
>  if (val == 0)// if zero, send
> that as valid. (default reset)
>  {
>  MessageBoxA(NULL, "Value is blank or zero, assuming zero.
> (reset to default)", "Multus Calibration", MB_OK);
>
>  //TODO: Write zero out
>
>  return IUP_CLOSE;
>  }
>
>  if ((val < -255) || (val > 255))
>  {
>  MessageBoxA(NULL, "Value must be in the range of -255 to
> 255.", "Multus Calibration", MB_OK);
>  return IUP_DEFAULT;
>  }
>
>  // TODO: Write value out
>  MHz = (double)val;
>  Multus_Set_Calibration(MHz);
>  return IUP_CLOSE;// close window and get out
>  }
>
>  return IUP_DEFAULT;
> }
>
> // OK button callback
> int ok_cb(void)
> {
>  int ret = k_any(text, K_CR);// send the textbox callback a
> CR if the button is clicked
>  if (ret == IUP_CLOSE)
>  {
>  return IUP_CLOSE;
>  }
>
>  return IUP_DEFAULT;
> }
>
> // Textbox "ACTION" callback (unused)
> static int action(Ihandle *self, int c, char *after)
> {
>  return c;
> }
>
>
> int gui(void)
> {
>  Ihandle *ok_bt;
>  int argc;
>  char **argv;
>
>  IupOpen(&argc, &argv);
>
>  //memset(password, 0, 100);
>
>  text = IupText(NULL);
>  IupSetAttribute(text, "SIZE", "50x");
>  IupSetCallback(text, "ACTION", (Icallback)action);
>  IupSetCallback(text, "K_ANY", (Icallback)k_any);
>
>  // OK button
>  ok_bt = IupButton("  OK  ", 0);
>  IupSetCallback(ok_bt, "ACTION", (Icallback)ok_cb);
>  IupSetAttribute(ok_bt, "POSITION", "20,20");
>
>  // Dialog (window)
>  dlg = IupDialog(IupVbox(text, ok_bt, NULL));
>  IupSetAttributeHandle(dlg, "DEFAULTESC", ok_bt);
>  IupSetAttribute(dlg, "TITLE", "Calibration Offset (-255 to 255)");
>  IupSetAttribute(dlg, "BORDER", "NO");
>  IupSetAttribute(dlg, "RESIZE", "NO");
>  IupSetAttribute(dlg, "MAXBOX", "NO");
>  IupSetAttribute(dlg, "MINBOX", "NO");
>  IupSetAttribute(dlg, "MINBOX", "NO");
>  IupSetAttribute(dlg, "MARGIN", "100x50");
>  IupSetAttribute(dlg, "GAP", "10");
>
>  IupShowXY(dlg, IUP_CENTER, IUP_CENTER);
>  IupMainLoop();// this blocks the thread
> returning
>
>  //for (int j = 0; j < 1000; j++)
>  //{
>  //IupLoopStep();
>  //Sleep(20);
>  //}
>  //IupExitLoop();
>
>  IupClose();
>  return 500;
>
> }
>
>
> Code snippet from main DLL:
>
> void __stdcall ShowGUI(void)
> {
>  int count = 0;
>  char test[10] = { 0 };
>  int status = 0;
>
>  _cprintf("[%d] ShowGUI Called, calling gui() \n",line_number++);
>  status = gui();
>  _cprintf("[%d] ShowGUI Finished, gui return status %d \n",
> line_number++,status);
>  return;
>
> --
>
> 73,
> Ron / W4MMP
>
>
> --
> 73,
> Ron/W4MMP
>
>
>
> 

Re: [Iup-users] Place icon in system tray

2016-06-30 Thread Antonio Scuri
  Yes. See the IupDialog documentation, attributes TRAY*.

Best,
Scuri


On Wed, Jun 29, 2016 at 7:48 PM, Milind Gupta 
wrote:

> Hi,
>  Is there a way that IUP provides to put the program icon in the
> system tray and remove from the taskbar to setup a background running
> application?
>
> Thanks,
> Milind
>
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] opacity attribute

2016-06-30 Thread Antonio Scuri
  Hi,

  I just tested in GTK 2.20 and it worked ok with

IupSetAttribute(dialog,"OPACITY","128");

  Notice that a value of "1" is almost fully transparent.

  The new C++ api will be a complement, not a replacement.

Best,
Scuri


On Thu, Jun 30, 2016 at 1:00 AM, anon anon  wrote:

> using linux with gtk version greater than 2.12. compiles fine but opacity
> does not work. i didnt see anything about it on to do list etc. so im
> asking here. i didnt try to reproduce it on a different machine. anyone
> else have this problem? question not related: is iup 4.x going to support C?
>
> my C code:
> IupSetAttribute(dialog,"OPACITY","1");
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] IUP 3.19

2016-06-30 Thread Antonio Scuri
Hi All,

   We just released IUP version 3.19.

   We would like to highlight some of the new features:

New: *IupDraw *API for drawing custom controls in a *IupCanvas *or
*IupBackgroundBox*.
New: *IupGLText *control for *IupGLControls*.
Changed: *IupScrollBox *will now expand to child natural size the first
time the layout is computed.
Changed: *FreeType *and *FTGL* are now external to the project.
Changed: *IupParam *and *IupParamBox *are now controls.
IMPORTANT: removed controls, attributes, functions and headers that were
deprecated. See the History page for the full list.

   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
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] opacity attribute

2016-07-01 Thread Antonio Scuri
  Hi,

  This is from the GTK documentation (used in IUP for the opacity
attribute):

"*gtk_widget_set_opacity ()*

void gtk_widget_set_opacity (*GtkWidget*
* *widget*, *double
**opacity*);

Request the *widget* to be rendered partially transparent, with opacity 0
being fully transparent and 1 fully opaque. (Opacity values are clamped to
the [0,1] range.). This works on both toplevel widget, and child widgets,
although there are some limitations:

For toplevel widgets this depends on the capabilities of the windowing
system. On X11 this has any effect only on X screens with a compositing
manager running. See gtk_widget_is_composited()
.
On Windows it should work always, although setting a window’s opacity after
the window has been shown causes it to flicker once on Windows.

For child widgets it doesn’t work if any affected widget has a native
window, or disables double buffering."

Best,
Scuri
Em 01/07/2016 04:09, "anon anon"  escreveu:

> i never would have figured a compositing manager had anything to do with
> it because i didnt know what a compositing manager was! i installed and
> tried xcompmgr and it looks promising because it makes all the windows fade
> in and out. it didnt work but i think i will try a better compositing
> manager tomorrow.
>
> > OK, it works in Xfce if I enable the compositing manager. So, try it in
> > your LXDE desktop.
> >
> > Germán.
> >
> > El vie, 01-07-2016 a las 05:48 +0300, anon anon escribió:
> >
> >> thanks a lot. something in gnome must be needed for that attribute. i
> dont even have it installed on my computer. fyi im using LXDE and i tried
> openbox but neither one works with opacity by default.
> >>
> >>> Maybe a problem with your window manager or session. A simple test
> don't
> >>> works for me on Xfce, but works perfectly on Gnome3. But if I first
> >>> start session on Gnome3, and then in Xfce, it works!. Seems like if
> Xfce
> >>> don't starts some service needed to handle transparency.
> >>>
> >>> Germán
> >>>
> >>> El vie, 01-07-2016 a las 02:03 +0300, anon anon escribió:
> >>>
>  good it must be isolated on my computer. opacity is the only
> attribute on my computer i've noticed that has no effect. what do you all
> think could be wrong? i dont know but my guesses are:
>  -i didnt compile iup correctly (maybe missing a dependency?)
>  -libraries for opacity not getting loaded in linker. i compiled with:
> cc -o out in.c "$IUPLIBFOLDER/libiup.a" $(pkg-config --libs gtk+-2.0
> gdk-2.0)
>  -maybe a random bug in the version of gtk i have
>  thanks for clearing up the C question.
> 
> > Hi,
> >
> > I just tested in GTK 2.20 and it worked ok with
> >
> > IupSetAttribute(dialog,"OPACITY","128");
> >
> > Notice that a value of "1" is almost fully transparent.
> >
> > The new C++ api will be a complement, not a replacement.
> >
> > Best,
> > Scuri
> >
> > On Thu, Jun 30, 2016 at 1:00 AM, anon anon 
> wrote:
> >
> >> using linux with gtk version greater than 2.12. compiles fine but
> opacity does not work. i didnt see anything about it on to do list etc. so
> im asking here. i didnt try to reproduce it on a different machine. anyone
> else have this problem? question not related: is iup 4.x going to support C?
> >>
> >> my C code:
> >>
> >> IupSetAttribute(dialog,"OPACITY","1");
> >>
> >>
> --
> >>
> >> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in
> San
> >>
> >> Francisco, CA to explore cutting-edge tech and listen to tech
> luminaries
> >>
> >> present their vision of the future. This family event has something
> for
> >>
> >> everyone, including kids. Get more information and register today.
> >>
> >> http://sdm.link/attshape
> >>
> >> ___
> >>
> >> Iup-users mailing list
> >>
> >> Iup-users@lists.sourceforge.net
> >>
> >> https://lists.sourceforge.net/lists/listinfo/iup-users
> 
> 
> --
>  Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in
> San
>  Francisco, CA to explore cutting-edge tech and listen to tech
> luminaries
>  present their vision of the future. This family event has something
> for
>  everyone, including kids. Get more information and register today.
>  http://sdm.link/attshape
>  ___
>  Iup-users mailing list
>  Iup-users@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/iup-users
> >>>
> >>>
> --
> >>> Attend Shap

Re: [Iup-users] 回复: Iup binaries for windows (Lua 5.3)

2016-07-01 Thread Antonio Scuri
 

  

On 2016-03-21 23:48, 云履 wrote: 

> In Lua for windows, package path and binaries like: 
> G:Program Files (x86)Lua5.1clibsiuplua51.dll --necessary for 'require' in lua 
> G:Program Files (x86)Lua5.1clibsiup.dll --to be wrapped by 'iuplua' I think 
> 
> User your version, 5.1 - iuplua51, 5.3 - iuplua53. 
> 
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 [1]
> 
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users [2]

 

Links:
--
[1] http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
[2] https://lists.sourceforge.net/lists/listinfo/iup-users
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] 回复: About Spinmin and Spinmax of Text with Spin

2016-07-01 Thread Antonio Scuri
 

 I don't think so. 

Best,
Scuri 

On 2016-02-18 15:18, 云履 wrote: 

> Yes, it works. 
> I was obstinately finding a way to remove / breaking limit of attribute 
> SPINMIN and SPINMAX of iup control - Text with Spin attribute. 
> Current method is fine. But I feel uneasy to use an initial value to FIX 
> Spinmin and Spinmax. Is there any build-in var describe the upper and lower 
> BOUND of number that could use? 
> 
> Thank you @Karagy, @Scuri. 
> 
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 [1]
> 
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users [2]

 

Links:
--
[1] http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
[2] https://lists.sourceforge.net/lists/listinfo/iup-users
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] IUP 3.19.1

2016-07-04 Thread Antonio Scuri
  Hi All,

  We just updated the release to fix a problem in IupGetParam introduced in
3.19.

Best,
Scuri
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] static linking in linux

2016-07-05 Thread Antonio Scuri
  Yes, it is, sort of... Depends what includes in "completely static". :)

  I do this here for the iuptest application. It statically links with IUP,
CD and IM. But it uses GTK and their sub-libraries, also Cairo, from the
system, I mean dynamically linked. Never did a fully static linking, don't
know if it is possible.

Best,
Scuri


On Tue, Jul 5, 2016 at 4:55 PM, anon anon  wrote:

> i understand i can statically link the iup library but is it possible to
> make a completely static iup executable in linux? i tried using the -static
> option on gcc and it gives me this warning on various function names:
> warning: Using 'getaddrinfo' in statically linked applications requires at
> runtime the shared libraries from the glibc version used for linking
>
> and it ends with this error:
> collect2: error: ld returned 1 exit status
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] BGCOLOR don't work on GTK 3

2016-07-06 Thread Antonio Scuri
  Which control?

Best,
Scuri


On Wed, Jul 6, 2016 at 3:25 PM, Germán Arias  wrote:

> The BGCOLOR attribute don't work on Gtk 3.16.7. Or maybe I need do
> something special? It works perfectly on Gtk 2.
>
> Germán
>
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] BGCOLOR don't work on GTK 3

2016-07-06 Thread Antonio Scuri
  Yes, that may happen. I should add a comment in the documentation. Since
GTK 3 button background is actually a gradient rendered by the system. So
it will ignore the background color we set in IUP.

  In IupButton I recommend using BGCOLOR only for buttons that display a
color box.

Best,
Scuri


On Wed, Jul 6, 2016 at 3:42 PM, Germán Arias  wrote:

> I have the problem with IupButton.
>
> Germán
>
> El mié, 06-07-2016 a las 15:32 -0300, Antonio Scuri escribió:
>
>   Which control?
>
> Best,
> Scuri
>
>
> On Wed, Jul 6, 2016 at 3:25 PM, Germán Arias  wrote:
>
> The BGCOLOR attribute don't work on Gtk 3.16.7. Or maybe I need do
> something special? It works perfectly on Gtk 2.
>
> Germán
>
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] A problem or possible bug in IupFileDlg()

2016-07-08 Thread Antonio Scuri
  Interesting. I tried that in Windows and the system shows an error dialog
saying that multiple files can be selected only if in the same folder.
Probably that's why we introduced that limitation in the GTK driver.

  We have the MULTIVALUEid attribute that can be used. But its definition
implies that all files must be in the same folder.

  Maybe we can use an extra attribute to make MULTIVALUEid to include full
paths. I'll think about that.

Best,
Scuri


On Thu, Jul 7, 2016 at 10:28 PM, Andy Xiyue  wrote:

> Hi Scuri,
>
> I ran into a problem when I was using IupFileDlg() to collect file's path.
>
> Firstly I define the dialog
>
> gui->dlg_open = IupFileDlg();
> IupSetAttribute(gui->dlg_open, "PARENTDIALOG", gui->inst_id);
> IupSetAttribute(gui->dlg_open, "TITLE", "Open Files");
> IupSetAttribute(gui->dlg_open, "MULTIPLEFILES", "YES");
>
> then I popped up the dialog
>
> IupPopup(gui->dlg_open, IUP_CENTERPARENT, IUP_CENTERPARENT);
> if (IupGetInt(gui->dlg_open, "STATUS") >= 0) {
> printf("Open File VALUE: %s\n",
> IupGetAttribute(gui->dlg_open, "VALUE"));
> }
>
> In GTK it opened "Recently Used" folder by default. Randomly pick some
> files and I received a choatic results:
>
> Open File VALUE:
>
> /home/xum1/Downloads|TDA10023_datasheet.pdf|re/meld/recent-b4r7cC.meldcmp|93c0135djw1f5fjquxg10j20e60k0wez.jpg|624/logs_20160624.7z|p/mkmap-4.0.zip|p/mkmap-4.0-win32-bin.zip|p/MAP_16_39324_60293_2x2.png|
>
> The problem is the
> '/home/xum1/Downloads/re/meld/recent-b4r7cC.meldcmp' doesn't exist at
> all. It is actually
> '/home/xum1/.local/share/meld/recent-b4r7cC.meldcmp'.
>
> I roughly had an idea what had happened there. The IupFileDlg()
> returned a squeezed form of the path collection, which starts with one
> path and a group of files under this path. However the "Recently Used"
> folder is not under a single path, like the example above, the first
> two files are actually
>
> /home/xum1/Downloads/TDA10023_datasheet.pdf
> /home/xum1/.local/share/meld/recent-b4r7cC.meldcmp
>
> which confused the IupFileDlg(). It probably has already a solution
> which I don't know. If there isn't, do you think it will be fixed in
> the futurn, maybe just add another attribute like "VALUE2" to return
> the full pathes?
>
> Kind regards
> Andy
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] Mingw x TDM-gcc x Mingw64

2016-07-08 Thread Antonio Scuri
  Hi All,

  Regarding to building IUP, CD and IM with MingW.

  The problem with TDM and Mingw64 is that they do not include MSYS. I made
a few tests here and IUP compile with MingW very easy using MSYS (from
MingW standard distribution). But I have a hard time using TDM and Mingw64.

  What I did was to use TDM or Mingw64, but to also install MSYS to solve
the additional tools missing. It works by setting (for instance):

set PATH=d:\lng\tdm-gcc\bin;d:\lng\mingw4\msys\1.0\bin;%PATH%
set MINGW4=d:/lng/tdm-gcc
set TEC_UNAME=mingw4

  Finally our TEC_UNAME name for these new compilers are outdated. The
"mingw4_64" package in the distribution was built with gcc version 5.2, not
4.5 as described in the documentation. Actually it should be named
"mingw5_64". I will fix that for future versions.

Best,
Scuri
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] About IUP with Lua v5.1

2016-07-11 Thread Antonio Scuri
  IupLua works just fine with Lua 5.1. Probably there is something wrong
with your installation. Check this package:

https://sourceforge.net/projects/iup/files/3.19.1/Tools%20Executables/Lua51/iup-3.19.1-Lua51_Win32_bin.zip/download

  You will find a complete package with everything you need to run IUP, CD
and IM with a simple test interface.

  The LuaSQL source code is being changed to support Lua 5.3. You may check
it at GitHub:

https://github.com/keplerproject/luasql

  Don't know when they are going to release a binary.

Best,
Scuri


On Mon, Jul 11, 2016 at 10:05 AM, Ranier VF  wrote:

> Hi,
> Maybe you can try
> http://luaforge.net/projects/luasql/
>
> Best regards,
>
> Ranier Vilela
>
> --
> From: jhernanca...@gmail.com
> Date: Sun, 10 Jul 2016 23:10:15 -0500
> To: iup-users@lists.sourceforge.net
> Subject: [Iup-users] About IUP with Lua v5.1
>
>
>
> Hi, friends.
>
> I am interested in using Lua as my programming language.
>
> For getting that I need: (1) Lua --as my base programming language--, (2)
> IUP as the graphical IDE for Lua, and (3) SQLite as the database manager
> for storing data.
>
> About Lua and IUP:
> In your portal, http://webserver2.tecgraf.puc-rio.br/iup/, I can download
> both Lua (v5.1, v5.2 and v5.3) and IUP (for every one of the Lua versions
> --every DLL of IUP is compiled for only one version of Lua--).
>
> Fine.
>
> I have developed one form where I can locate labels, textboxes, buttons,
> status bars, etc.
> For this I use Lua v.5.3.2.
>
> About SQLite3:
> For storing data I choose SQLite3, and I found a DLL (downloaded from
> Internet) that I can use (try for now).
>
> I downloade3d from http://lua.sqlite.org/.
> It is lsqlite3 v0.9.3.
> But it only runs in Lua v5.1.
>
> --
>
> As unfortunately the lsqlite3.DLL does not run with another version of Lua
> differente to v5.1, I consider two scenarios:
>
> 1.
> Changing to Lua v5.1 and the binaries of IUP for Lua 5.1 (in order to use
> the same version of Lua in the other two: LuaSQLITE and IUP).
>
> Result for 1:
> Lua says thay something lacks in IUPLUA.DLL
> Error loading module 'iuplua' from file '<<>>\iuplua51.dll'
>
> It is fool to say it... but I'll say it: The IUPLUA51.DLL is where it must
> be and where it says (and Lua(v5.1).exe and the two DLLs for Lua v5.1 and
> all the DLLs for IUP and CD).
>
> 2.
> Compile LSQLITE3 for Lua v5.3.
>
> Result for 2:
> ((using MAKE or CL))
> I got a lot errors in the LSQLITE3.C source.
> ((using LuaRocks))
> Something lacks.
>
> 
>
> *As it is very possible that you cannot help me with LuaSQLite, then what
> do I need for IUP for Lua 5.1 runs Ok in my machine?*
>
> Lua v5.1 runs well and also v5.2 and v5.3
> lSQLite3 v0.9.3 runs well only for Lua v5.1
> IUP runs well... I only have tried my new form it with Lua v5.3.2 (I ran
> examples well for Lua v5.1, v5.2 and v5.3)
> IUP runs bad with Lua v5.1.
>
> 
>
>
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___ Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
> 
>  Livre
> de vírus. www.avast.com
> .
> <#m_-7661965176284341033_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users 

Re: [Iup-users] A problem or possible bug in IupFileDlg()

2016-07-11 Thread Antonio Scuri
  Just committed to SVN:

New: MULTIVALUEPATH attribute in IupFileDlg.

 MULTIVALUE starting at 1 will now contain the full path if MULTIVALUEPATH
=Yes.

[]s
Scuri


On Fri, Jul 8, 2016 at 11:43 AM, Antonio Scuri 
wrote:

>   Interesting. I tried that in Windows and the system shows an error
> dialog saying that multiple files can be selected only if in the same
> folder. Probably that's why we introduced that limitation in the GTK
> driver.
>
>   We have the MULTIVALUEid attribute that can be used. But its definition
> implies that all files must be in the same folder.
>
>   Maybe we can use an extra attribute to make MULTIVALUEid to include full
> paths. I'll think about that.
>
> Best,
> Scuri
>
>
> On Thu, Jul 7, 2016 at 10:28 PM, Andy Xiyue  wrote:
>
>> Hi Scuri,
>>
>> I ran into a problem when I was using IupFileDlg() to collect file's path.
>>
>> Firstly I define the dialog
>>
>> gui->dlg_open = IupFileDlg();
>> IupSetAttribute(gui->dlg_open, "PARENTDIALOG", gui->inst_id);
>> IupSetAttribute(gui->dlg_open, "TITLE", "Open Files");
>> IupSetAttribute(gui->dlg_open, "MULTIPLEFILES", "YES");
>>
>> then I popped up the dialog
>>
>> IupPopup(gui->dlg_open, IUP_CENTERPARENT, IUP_CENTERPARENT);
>> if (IupGetInt(gui->dlg_open, "STATUS") >= 0) {
>> printf("Open File VALUE: %s\n",
>> IupGetAttribute(gui->dlg_open, "VALUE"));
>> }
>>
>> In GTK it opened "Recently Used" folder by default. Randomly pick some
>> files and I received a choatic results:
>>
>> Open File VALUE:
>>
>> /home/xum1/Downloads|TDA10023_datasheet.pdf|re/meld/recent-b4r7cC.meldcmp|93c0135djw1f5fjquxg10j20e60k0wez.jpg|624/logs_20160624.7z|p/mkmap-4.0.zip|p/mkmap-4.0-win32-bin.zip|p/MAP_16_39324_60293_2x2.png|
>>
>> The problem is the
>> '/home/xum1/Downloads/re/meld/recent-b4r7cC.meldcmp' doesn't exist at
>> all. It is actually
>> '/home/xum1/.local/share/meld/recent-b4r7cC.meldcmp'.
>>
>> I roughly had an idea what had happened there. The IupFileDlg()
>> returned a squeezed form of the path collection, which starts with one
>> path and a group of files under this path. However the "Recently Used"
>> folder is not under a single path, like the example above, the first
>> two files are actually
>>
>> /home/xum1/Downloads/TDA10023_datasheet.pdf
>> /home/xum1/.local/share/meld/recent-b4r7cC.meldcmp
>>
>> which confused the IupFileDlg(). It probably has already a solution
>> which I don't know. If there isn't, do you think it will be fixed in
>> the futurn, maybe just add another attribute like "VALUE2" to return
>> the full pathes?
>>
>> Kind regards
>> Andy
>>
>>
>> --
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>> present their vision of the future. This family event has something for
>> everyone, including kids. Get more information and register today.
>> http://sdm.link/attshape
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>
>
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] A problem or possible bug in IupFileDlg()

2016-07-19 Thread Antonio Scuri
Are you using the svn version or the current binaries? Because without the
new attribute it will crash eventually. I can not make it the new default
because it will affect existing applications that expect the value without
the path and are not using the Recent Files feature.

Best,
Scuri

Em 18/07/2016 22:55, "Andy Xiyue"  escreveu:

> Hi Scuri,
>
> The thing is getting nasty. I believe the fix should become a must,
> not an option. I created a scenario this morning which caused
> Segmentation fault by just picking two files:
>
> /home/xum1/study/rename/testing scene/link_to_koondrook
> /home/xum1/.FBReader/state.xml
>
> The first file has a longer path than the whole length of the second
> one. The IUP crashed right away and there's nothing I can do to
> workaround it. I reckon this scenario also affect lua and others in
> gtk.
>
> By the way I think you can still use the same feature but adding a
> small extension to cope this situation, for example
>
>
> /home/xum1/.FBReader|books.xml|state.db|state.xml|books.db|/home/xum1/Downloads|1468486705_dialog-warning.png|state.xml|books.xml|/home/xum1/study/rename|mmgui.c|testing
> scene
>
> Kind regards
> Andy
>
> On 16 July 2016 at 01:22, Ariset  wrote:
> > i think that could be a default, just return full paths of everything
> > selected, unless it is the way standard multiple selection file dialog
> > works.
> >
> >
> --
> > What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> > patterns at an interface-level. Reveals which users, apps, and protocols
> are
> > consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> > J-Flow, sFlow and other flows. Make informed decisions using capacity
> > planning
> > reports.http://sdm.link/zohodev2dev
> > ___
> > Iup-users mailing list
> > Iup-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/iup-users
> >
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Not to do selection in IupText()?

2016-07-19 Thread Antonio Scuri
  That's system dependent. When you start a dialog in GTK, that the focus
is at a text edit control it automatically selects the text. If the focus
is not at the text, it will not select, if then you change the focus to the
text by pressing tab it will select the text. Even if you unselect the
text, change the focus and back again, it will select again the text.

  I could't find any GtkEntry property to control this behavior.

Best,
Scuri




On Tue, Jul 19, 2016 at 3:39 AM, Andy Xiyue  wrote:

> Just tried. It doesn't work. Maybe only for MULTILINE=YES. Cheers.
>
> On 19 July 2016 at 15:11, Germán Arias  wrote:
> > Try with attribute SELECTION and value NONE.
> >
> > Germán
> >
> > El mar, 19-07-2016 a las 14:54 +1000, Andy Xiyue escribió:
> >> Thanks Ariset, though it doesn't work. I reckon the selection was
> >> came
> >> along with the mapping. I can change its content after mapping by
> >> event callbacks, but it would be a bit ugly so not worth doing it.
> >>
> >> On 19 July 2016 at 13:03, Ariset  wrote:
> >> > I think you can play around with the *CARET* attributes.
> >> >
> >> > ---
> >> > ---
> >> > What NetFlow Analyzer can do for you? Monitors network bandwidth
> >> > and traffic
> >> > patterns at an interface-level. Reveals which users, apps, and
> >> > protocols are
> >> > consuming the most bandwidth. Provides multi-vendor support for
> >> > NetFlow,
> >> > J-Flow, sFlow and other flows. Make informed decisions using
> >> > capacity
> >> > planning
> >> > reports.http://sdm.link/zohodev2dev
> >> > ___
> >> > Iup-users mailing list
> >> > Iup-users@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/iup-users
> >> >
> >>
> >> -
> >> -
> >> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> >> traffic
> >> patterns at an interface-level. Reveals which users, apps, and
> >> protocols are
> >> consuming the most bandwidth. Provides multi-vendor support for
> >> NetFlow,
> >> J-Flow, sFlow and other flows. Make informed decisions using capacity
> >> planning
> >> reports.http://sdm.link/zohodev2dev
> >> ___
> >> Iup-users mailing list
> >> Iup-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/iup-users
> >
> >
> --
> > What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> > patterns at an interface-level. Reveals which users, apps, and protocols
> are
> > consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> > J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> > reports.http://sdm.link/zohodev2dev
> > ___
> > Iup-users mailing list
> > Iup-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] A problem or possible bug in IupFileDlg()

2016-07-20 Thread Antonio Scuri
  That was missing. Fixed and committed to SVN.

Best,
Scuri


On Tue, Jul 19, 2016 at 8:50 PM, Andy Xiyue  wrote:

> I use the released source package because I need it work on both
> Windows and Linux. Yes you are right about the api change so adding a
> new attribute is just better. But the out of boundary pointer in the
> VALUE attribute should be fixed, otherwise it crashes program. I
> reckon it would be a safe option that discards the filenames are not
> in the same path to the first one.
>
> On 19 July 2016 at 22:38, Antonio Scuri  wrote:
> > Are you using the svn version or the current binaries? Because without
> the
> > new attribute it will crash eventually. I can not make it the new default
> > because it will affect existing applications that expect the value
> without
> > the path and are not using the Recent Files feature.
> >
> > Best,
> > Scuri
> >
> >
> > Em 18/07/2016 22:55, "Andy Xiyue"  escreveu:
> >>
> >> Hi Scuri,
> >>
> >> The thing is getting nasty. I believe the fix should become a must,
> >> not an option. I created a scenario this morning which caused
> >> Segmentation fault by just picking two files:
> >>
> >> /home/xum1/study/rename/testing scene/link_to_koondrook
> >> /home/xum1/.FBReader/state.xml
> >>
> >> The first file has a longer path than the whole length of the second
> >> one. The IUP crashed right away and there's nothing I can do to
> >> workaround it. I reckon this scenario also affect lua and others in
> >> gtk.
> >>
> >> By the way I think you can still use the same feature but adding a
> >> small extension to cope this situation, for example
> >>
> >>
> >>
> /home/xum1/.FBReader|books.xml|state.db|state.xml|books.db|/home/xum1/Downloads|1468486705_dialog-warning.png|state.xml|books.xml|/home/xum1/study/rename|mmgui.c|testing
> >> scene
> >>
> >> Kind regards
> >> Andy
> >>
> >> On 16 July 2016 at 01:22, Ariset  wrote:
> >> > i think that could be a default, just return full paths of everything
> >> > selected, unless it is the way standard multiple selection file dialog
> >> > works.
> >> >
> >> >
> >> >
> --
> >> > What NetFlow Analyzer can do for you? Monitors network bandwidth and
> >> > traffic
> >> > patterns at an interface-level. Reveals which users, apps, and
> protocols
> >> > are
> >> > consuming the most bandwidth. Provides multi-vendor support for
> NetFlow,
> >> > J-Flow, sFlow and other flows. Make informed decisions using capacity
> >> > planning
> >> > reports.http://sdm.link/zohodev2dev
> >> > ___
> >> > Iup-users mailing list
> >> > Iup-users@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/iup-users
> >> >
> >>
> >>
> >>
> --
> >> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> >> traffic
> >> patterns at an interface-level. Reveals which users, apps, and protocols
> >> are
> >> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> >> J-Flow, sFlow and other flows. Make informed decisions using capacity
> >> planning
> >> reports.http://sdm.link/zohodev2dev
> >> ___
> >> Iup-users mailing list
> >> Iup-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/iup-users
> >
> >
> >
> --
> > What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> > patterns at an interface-level. Reveals which users, apps, and protocols
> are
> > consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> > J-Flow, sFlow and other flows. Make informed decisions using capacity
> > planning
> > reports.http://sdm.link/zohodev2dev
> > ___
> > Iup-users mailing list
> > Iup-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/iup-users
> >
>
>
> --
> What NetFlow Analyzer can d

Re: [Iup-users] Problem with shift combination

2016-08-10 Thread Antonio Scuri
  Hi,

  I still didn't have time to check this. Hopefully on the next couple of
days.

Best,
Scuri


On Fri, Aug 5, 2016 at 6:47 PM, Germán Arias  wrote:

> Hi,
>
> I'm using IUP from svn (Revisión: 3718) on OpenSUSE leap with Gtk 3. I
> have a small example to test modifier keys. This is the K_ANY callback
> in this test:
>
> int key_cb(Ihandle *ih, int c)
> {
>   printf("Code: %d Shift: %d \n", c, iup_isShiftXkey(c));
>   return IUP_CONTINUE;
> }
>
> The iup_isShiftXkey allways return 0, no matter if I press Shift key.
> I'm doing something wrong?
>
> Thanks
> Germán
>
>
> 
> --
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Problem with shift combination

2016-08-15 Thread Antonio Scuri
  Hi,

  That depends on the key. For instance, 'h' and 'H', 'H' does not have the
extended key shift code set. So a key will have iup_XkeyShift(key) only if
it also has iup_isXkey(key).

  Take a look at the iupkey.h for more details.

  If you just want to detect the Shift key press, I suggest using the
global attribute "MODKEYSTATE".

Best,
Scuri


On Fri, Aug 5, 2016 at 6:47 PM, Germán Arias  wrote:

> Hi,
>
> I'm using IUP from svn (Revisión: 3718) on OpenSUSE leap with Gtk 3. I
> have a small example to test modifier keys. This is the K_ANY callback
> in this test:
>
> int key_cb(Ihandle *ih, int c)
> {
>   printf("Code: %d Shift: %d \n", c, iup_isShiftXkey(c));
>   return IUP_CONTINUE;
> }
>
> The iup_isShiftXkey allways return 0, no matter if I press Shift key.
> I'm doing something wrong?
>
> Thanks
> Germán
>
>
> 
> --
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] How display numeric values with comma and 2 decimals?

2016-08-18 Thread Antonio Scuri
  Take a look at IupMatrixEx. There are several interesting options there.

Best,
Scuri


On Thu, Aug 18, 2016 at 10:38 AM, Ranier VF  wrote:

> Hi,
>
> How can display values numeric with IupMatrix:
>
>
> Example:
>
> Value = 18.98
>
>
> Storing in matrix:
>
> IupSetDoubleId2(mat, "", i + 1, 2, 18.98);
>
>
> How display: 18,98
>
> With comma and 2 decimals?
>
>
> Best regards,
>
>
> Ranier
>
> 
> --
>
> ___
> 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] IupGetParam segfault when close

2016-08-19 Thread Antonio Scuri
  Which IUP version you are using?

Best,
Scuri


On Fri, Aug 19, 2016 at 3:43 PM, Germán Arias  wrote:

> Hi,
>
> I get a segfault when close the IupGetParam window with the close
> button of the window. This with the example getparam.c. I get the crash
> even if I add a case for IUP_GETPARAM_CLOSE.
>
> Germán
>
>
> 
> --
> ___
> 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] IupGetParam segfault when close

2016-08-19 Thread Antonio Scuri
OK Thanks for the feedback.

Best,
Scuri

Em 19/08/2016 19:58, "Germán Arias"  escreveu:

> OK, I update to svn head and it works. Thanks.
>
> Germán
>
> El vie, 19-08-2016 a las 17:11 -0300, Antonio Scuri escribió:
>
>   Which IUP version you are using?
>
> Best,
> Scuri
>
>
> On Fri, Aug 19, 2016 at 3:43 PM, Germán Arias  wrote:
>
> Hi,
>
> I get a segfault when close the IupGetParam window with the close
> button of the window. This with the example getparam.c. I get the crash
> even if I add a case for IUP_GETPARAM_CLOSE.
>
> Germán
>
>
> 
> --
> ___
> 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] How display numeric values with comma and 2 decimals?

2016-08-22 Thread Antonio Scuri
  In IupMatrixEx you can use NUMERICDECIMALSYMBOL and NUMERICFORMAT to
define the locale and the display of thousand separator.

  In IupMatrix you can use the callback mode, to store the values your self
and return the formatted string in VALUE_CB callback.

Best,
Scuri


On Sat, Aug 20, 2016 at 10:12 AM, Ranier VF  wrote:

> Hi,
> IupSetAttributeId(mat, "NUMERICQUANTITY", 2, "None");
> IupSetAttributeId(mat, "NUMERICDECIMALSYMBOL", 2, ",");
> IupSetIntId(mat, "NUMERICFORMATPRECISION", 2, 2);
>
>
> With IupMatrixEx, works to precision format, but not to
>
> comma separator.
>
>
> Thanks.
>
>
> Ranier Vilela
>
>
> --
> *De:* Antonio Scuri 
> *Enviado:* quinta-feira, 18 de agosto de 2016 20:40
> *Para:* IUP discussion list.
> *Assunto:* Re: [Iup-users] How display numeric values with comma and 2
> decimals?
>
>   Take a look at IupMatrixEx. There are several interesting options there.
>
> Best,
> Scuri
>
>
> On Thu, Aug 18, 2016 at 10:38 AM, Ranier VF 
> wrote:
>
>> Hi,
>>
>> How can display values numeric with IupMatrix:
>>
>>
>> Example:
>>
>> Value = 18.98
>>
>>
>> Storing in matrix:
>>
>> IupSetDoubleId2(mat, "", i + 1, 2, 18.98);
>>
>>
>> How display: 18,98
>>
>> With comma and 2 decimals?
>>
>>
>> Best regards,
>>
>>
>> Ranier
>>
>> 
>> --
>>
>> ___
>> 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] How display numeric values with comma and 2 decimals?

2016-08-22 Thread Antonio Scuri
  Change this:

IupSetAttributeId(mat, "NUMERICDECIMALSYMBOL", 2, ",");

 To this:

IupSetAttribute(mat, "NUMERICDECIMALSYMBOL", ",");

  It does have the "Id" option. The symbol is for the whole matrix.

Best,
Scuri



On Mon, Aug 22, 2016 at 3:14 PM, Ranier VF  wrote:

> Hi,
>
> Thanks for the anwser, but unfortunately the result is the same.
>
> Comma separator continue ignored.
>
>
> Best,
>
>
> Ranier Vilela
>
> --
> *De:* Germán Arias 
> *Enviado:* sábado, 20 de agosto de 2016 18:22
>
> *Para:* IUP discussion list.
> *Assunto:* Re: [Iup-users] How display numeric values with comma and 2
> decimals?
>
> Not sure, but seems like NUMERICDECIMALSYMBOL can't be set with 
> IupSetAttributeId.
> Try with:
>
> IupSetAttribute(mat, "NUMERICDECIMALSYMBOL", ",")
>
> Germán
>
> El sáb, 20-08-2016 a las 13:12 +, Ranier VF escribió:
>
> Hi,
> IupSetAttributeId(mat, "NUMERICQUANTITY", 2, "None");
> IupSetAttributeId(mat, "NUMERICDECIMALSYMBOL", 2, ",");
>
> IupSetIntId(mat, "NUMERICFORMATPRECISION", 2, 2);
>
>
> With IupMatrixEx, works to precision format, but not to
>
> comma separator.
>
>
> Thanks.
>
>
> Ranier Vilela
>
>
> --
> *De:* Antonio Scuri 
> *Enviado:* quinta-feira, 18 de agosto de 2016 20:40
> *Para:* IUP discussion list.
> *Assunto:* Re: [Iup-users] How display numeric values with comma and 2
> decimals?
>
>   Take a look at IupMatrixEx. There are several interesting options there.
>
> Best,
> Scuri
>
>
> On Thu, Aug 18, 2016 at 10:38 AM, Ranier VF 
> wrote:
>
> Hi,
>
> How can display values numeric with IupMatrix:
>
>
> Example:
>
> Value = 18.98
>
>
> Storing in matrix:
>
> IupSetDoubleId2(mat, "", i + 1, 2, 18.98);
>
>
> How display: 18,98
>
> With comma and 2 decimals?
>
>
> Best regards,
>
>
> Ranier
>
> 
> --
>
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
>
> --
>
> ___
> Iup-users mailing 
> listIup-users@lists.sourceforge.nethttps://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] How display numeric values with comma and 2 decimals?

2016-08-23 Thread Antonio Scuri
  Hi,

  Try the attached sample. Here is a screenshot.

[image: Inline image 1]

Best,
Scuri


On Tue, Aug 23, 2016 at 10:22 AM, Ranier VF  wrote:

> Hi Scuri,
>
>
> Unfortunately the result is the same
> I have tryed this too.
>
> IupSetAttribute(mat, "NUMERICDECIMALSYMBOL", ",");
>
> The comma separator, continue ignored.
> Result is:
> 18.98
>
> Best regards
>
>
> Ranier Vilela
> --
> *De:* Antonio Scuri 
> *Enviado:* segunda-feira, 22 de agosto de 2016 18:39
>
> *Para:* IUP discussion list.
> *Assunto:* Re: [Iup-users] How display numeric values with comma and 2
> decimals?
>
>   Change this:
>
> IupSetAttributeId(mat, "NUMERICDECIMALSYMBOL", 2, ",");
>
>  To this:
>
> IupSetAttribute(mat, "NUMERICDECIMALSYMBOL", ",");
>
>   It does have the "Id" option. The symbol is for the whole matrix.
>
> Best,
> Scuri
>
>
>
> On Mon, Aug 22, 2016 at 3:14 PM, Ranier VF  wrote:
>
>> Hi,
>>
>> Thanks for the anwser, but unfortunately the result is the same.
>>
>> Comma separator continue ignored.
>>
>>
>> Best,
>>
>>
>> Ranier Vilela
>>
>> --
>> *De:* Germán Arias 
>> *Enviado:* sábado, 20 de agosto de 2016 18:22
>>
>> *Para:* IUP discussion list.
>> *Assunto:* Re: [Iup-users] How display numeric values with comma and 2
>> decimals?
>>
>> Not sure, but seems like NUMERICDECIMALSYMBOL can't be set with 
>> IupSetAttributeId.
>> Try with:
>>
>> IupSetAttribute(mat, "NUMERICDECIMALSYMBOL", ",")
>>
>> Germán
>>
>> El sáb, 20-08-2016 a las 13:12 +, Ranier VF escribió:
>>
>> Hi,
>> IupSetAttributeId(mat, "NUMERICQUANTITY", 2, "None");
>> IupSetAttributeId(mat, "NUMERICDECIMALSYMBOL", 2, ",");
>>
>> IupSetIntId(mat, "NUMERICFORMATPRECISION", 2, 2);
>>
>>
>> With IupMatrixEx, works to precision format, but not to
>>
>> comma separator.
>>
>>
>> Thanks.
>>
>>
>> Ranier Vilela
>>
>>
>> --
>> *De:* Antonio Scuri 
>> *Enviado:* quinta-feira, 18 de agosto de 2016 20:40
>> *Para:* IUP discussion list.
>> *Assunto:* Re: [Iup-users] How display numeric values with comma and 2
>> decimals?
>>
>>   Take a look at IupMatrixEx. There are several interesting options
>> there.
>>
>> Best,
>> Scuri
>>
>>
>> On Thu, Aug 18, 2016 at 10:38 AM, Ranier VF 
>> wrote:
>>
>> Hi,
>>
>> How can display values numeric with IupMatrix:
>>
>>
>> Example:
>>
>> Value = 18.98
>>
>>
>> Storing in matrix:
>>
>> IupSetDoubleId2(mat, "", i + 1, 2, 18.98);
>>
>>
>> How display: 18,98
>>
>> With comma and 2 decimals?
>>
>>
>> Best regards,
>>
>>
>> Ranier
>>
>> 
>> --
>>
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>>
>> --
>>
>> ___
>> Iup-users mailing 
>> listIup-users@lists.sourceforge.nethttps://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
>
>
#include 
#include 
#include 

#include "iup.h"
#include "iupcontrols.h"
#include "iupmatrixex.h"
#include 


static int leave(Ihandle *self, int lin, int col)
{
  printf("leaveitem_cb(%d, %d)\n", lin, col);
  //if(lin == 3 && col ==2)
  //  return IUP_IGNORE;   /* notice that this will lock the matrix in this cell */
  return IUP_DEFAUL

Re: [Iup-users] How to set date to DatePicker?

2016-08-25 Thread Antonio Scuri
 Just tested here and it works in Windows 10, but it does not works in
Windows XP. It was a simple correction. Just committed to SVN.

Best,
Scuri


On Wed, Aug 24, 2016 at 7:28 PM, Ranier VF  wrote:

> Hi Scuri,
>
> How to set date to DatePicker?
>
>
> ih = IupDatePick();
>
>  IupSetStrAttribute(ih, "VALUE", "2016/09/01");
> or
>
>  IupSetAttribute(ih, "VALUE", "2016/09/01");
>
> does not work.
>
> Thanks.
>
> Ranier Vilela
>
>
> 
> --
>
> ___
> 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] Save iup.imagergba to png

2016-08-29 Thread Antonio Scuri
  Which imagergba structure?

Scuri


On Mon, Aug 29, 2016 at 3:48 PM, Milind Gupta 
wrote:

> Hi,
> I want to save the imagergba structure as PNG. What is the best and
> easiest way to do that?
>
> Thanks,
> Milind
>
> 
> --
>
> ___
> 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] Save iup.imagergba to png

2016-08-30 Thread Antonio Scuri
  Try this:

iup.SaveImage(*ih*: ihandle*, file_name, format*: string)

  On the documentation in IUP / Resources / Images / Iup-IM

Best,
Scuri


On Tue, Aug 30, 2016 at 3:19 AM, Milind Gupta 
wrote:

> This one:
>
> iup.imagergba{width = *width*: number, height = *height*: number, pixels = 
> *pixels*: table} -> (*ih*: ihandle) [in Lua]
>
>
> On Mon, Aug 29, 2016 at 12:39 PM, Antonio Scuri 
> wrote:
>
>>   Which imagergba structure?
>>
>> Scuri
>>
>>
>> On Mon, Aug 29, 2016 at 3:48 PM, Milind Gupta 
>> wrote:
>>
>>> Hi,
>>> I want to save the imagergba structure as PNG. What is the best and
>>> easiest way to do that?
>>>
>>> Thanks,
>>> Milind
>>>
>>> 
>>> --
>>>
>>> ___
>>> 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
>
>
--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Compiling on Raspberry Pi

2016-09-10 Thread Antonio Scuri
  You can try what the error suggested, to compile with -fPIC.

  You can edit tecmake.mak on the root folder of each library and add:

ifeq ($(TEC_SYSARCH), arm)
  STDFLAGS += -fPIC
endif

  Just check if TEC_SYSARCH is really "arm".

Best,
Scuri


On Sat, Sep 10, 2016 at 4:16 AM, Milind Gupta 
wrote:

> Hi,
>   I am trying to compile IM, CD and IUP on Raspberry Pi. When I do
> make for IM I get the following error:
>
> /usr/bin/ld: ../obj/Linux41_arm/im_oldcolor.o: relocation
> R_ARM_THM_MOVW_ABS_NCagainst
> `__stack_chk_guard' can not be used when making a shared object; recompi
> le with -fPIC
> ../obj/Linux41_arm/im_oldcolor.o: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> ../tecmake.mak:1533: recipe for target '../lib/Linux41_arm/libim.so' failed
> make[1]: *** [../lib/Linux41_arm/libim.so] Error 1
> Makefile:12: recipe for target 'im' failed
> make: *** [im] Error 2
>
>
> Please let me know what can I do make it work? Has someone compiled and
> used IUP on Raspberry Pi. I am using Raspberry Pi 3 (64 bit) running Ubuntu.
>
> Thanks,
> Milind
>
> 
> --
>
> ___
> 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] Compiling on Raspberry Pi

2016-09-11 Thread Antonio Scuri
  Please, download the FTGL sources that is available along the CD Download
files. The package there have the Tecmake files.

Best,
Scuri


On Sun, Sep 11, 2016 at 1:59 PM, Milind Gupta 
wrote:

> Thanks,
>   When I built CD it gave me the error:
>  Tecmake: linking libcdgl.so ...
> gcc -shared -o ../lib/Linux41_arm/libcdgl.so
> ../obj/cdgl/Linux41_arm/cdgl.o  -L../lib/Linux41_arm
> -L../../ftgl/lib/Linux41_arm -lcd -lfontconfig -lftgl -lfreetype -lz -lGLU
> -lGL -lm
> /usr/bin/ld: cannot find -lftgl
> collect2: error: ld returned 1 exit status
> ../tecmake.mak:1533: recipe for target '../lib/Linux41_arm/libcdgl.so'
> failed
> make[2]: *** [../lib/Linux41_arm/libcdgl.so] Error 1
> Makefile:19: recipe for target 'cdgl' failed
> make[1]: *** [cdgl] Error 2
> Makefile:4: recipe for target 'do_all' failed
> make: *** [do_all] Error 2
>
> I thought ftgl would be built by building CD automatically since the
> documentation mentioned it is included in CD. When it didn't I downloaded
> ftgl sources and extracted them. FTGL does not have a tecmake file so I
> could not run make on it.
>
> make[1]: ../tecmake.mak: No such file or directory
> make[1]: *** No rule to make target '../tecmake.mak'.  Stop.
> Makefile:11: recipe for target 'ftgl' failed
> make: *** [ftgl] Error 2
>
> Please help me proceed from here.
>
> Thanks,
> Milind
>
>
> On Sat, Sep 10, 2016 at 7:57 AM, Antonio Scuri 
> wrote:
>
>>   You can try what the error suggested, to compile with -fPIC.
>>
>>   You can edit tecmake.mak on the root folder of each library and add:
>>
>> ifeq ($(TEC_SYSARCH), arm)
>>   STDFLAGS += -fPIC
>> endif
>>
>>   Just check if TEC_SYSARCH is really "arm".
>>
>> Best,
>> Scuri
>>
>>
>> On Sat, Sep 10, 2016 at 4:16 AM, Milind Gupta 
>> wrote:
>>
>>> Hi,
>>>   I am trying to compile IM, CD and IUP on Raspberry Pi. When I do
>>> make for IM I get the following error:
>>>
>>> /usr/bin/ld: ../obj/Linux41_arm/im_oldcolor.o: relocation
>>> R_ARM_THM_MOVW_ABS_NCagainst
>>> `__stack_chk_guard' can not be used when making a shared object; recompi
>>> le with -fPIC
>>> ../obj/Linux41_arm/im_oldcolor.o: error adding symbols: Bad value
>>> collect2: error: ld returned 1 exit status
>>> ../tecmake.mak:1533: recipe for target '../lib/Linux41_arm/libim.so'
>>> failed
>>> make[1]: *** [../lib/Linux41_arm/libim.so] Error 1
>>> Makefile:12: recipe for target 'im' failed
>>> make: *** [im] Error 2
>>>
>>>
>>> Please let me know what can I do make it work? Has someone compiled and
>>> used IUP on Raspberry Pi. I am using Raspberry Pi 3 (64 bit) running Ubuntu.
>>>
>>> Thanks,
>>> Milind
>>>
>>> 
>>> --
>>>
>>> ___
>>> 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
>
>
--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Compiling on Raspberry Pi

2016-09-12 Thread Antonio Scuri
  No, that's the right place. But I just notice that I included the
config.mak file, but forgot to include the tecmake.mak files itself.

  You can copy from IUP, CD or IM root folder. They are all the same.

  I will include them on the next release.

Best,
Scuri


On Mon, Sep 12, 2016 at 3:02 AM, Milind Gupta 
wrote:

> Hi Antonio,
>  I downloaded this file: https://sourceforge.net/
> projects/canvasdraw/files/5.10/Docs%20and%20Sources/ftgl-2.
> 1.4_Sources.tar.gz
>
> This one does not have the tecmake file. The zip file also does not have
> one. Am I looking at the wrong place?
>
>
> Thanks,
> Milind
>
> On Sun, Sep 11, 2016 at 10:13 AM, Antonio Scuri 
> wrote:
>
>>   Please, download the FTGL sources that is available along the CD
>> Download files. The package there have the Tecmake files.
>>
>> Best,
>> Scuri
>>
>>
>> On Sun, Sep 11, 2016 at 1:59 PM, Milind Gupta 
>> wrote:
>>
>>> Thanks,
>>>   When I built CD it gave me the error:
>>>  Tecmake: linking libcdgl.so ...
>>> gcc -shared -o ../lib/Linux41_arm/libcdgl.so
>>> ../obj/cdgl/Linux41_arm/cdgl.o  -L../lib/Linux41_arm
>>> -L../../ftgl/lib/Linux41_arm -lcd -lfontconfig -lftgl -lfreetype -lz -lGLU
>>> -lGL -lm
>>> /usr/bin/ld: cannot find -lftgl
>>> collect2: error: ld returned 1 exit status
>>> ../tecmake.mak:1533: recipe for target '../lib/Linux41_arm/libcdgl.so'
>>> failed
>>> make[2]: *** [../lib/Linux41_arm/libcdgl.so] Error 1
>>> Makefile:19: recipe for target 'cdgl' failed
>>> make[1]: *** [cdgl] Error 2
>>> Makefile:4: recipe for target 'do_all' failed
>>> make: *** [do_all] Error 2
>>>
>>> I thought ftgl would be built by building CD automatically since the
>>> documentation mentioned it is included in CD. When it didn't I downloaded
>>> ftgl sources and extracted them. FTGL does not have a tecmake file so I
>>> could not run make on it.
>>>
>>> make[1]: ../tecmake.mak: No such file or directory
>>> make[1]: *** No rule to make target '../tecmake.mak'.  Stop.
>>> Makefile:11: recipe for target 'ftgl' failed
>>> make: *** [ftgl] Error 2
>>>
>>> Please help me proceed from here.
>>>
>>> Thanks,
>>> Milind
>>>
>>>
>>> On Sat, Sep 10, 2016 at 7:57 AM, Antonio Scuri 
>>> wrote:
>>>
>>>>   You can try what the error suggested, to compile with -fPIC.
>>>>
>>>>   You can edit tecmake.mak on the root folder of each library and add:
>>>>
>>>> ifeq ($(TEC_SYSARCH), arm)
>>>>   STDFLAGS += -fPIC
>>>> endif
>>>>
>>>>   Just check if TEC_SYSARCH is really "arm".
>>>>
>>>> Best,
>>>> Scuri
>>>>
>>>>
>>>> On Sat, Sep 10, 2016 at 4:16 AM, Milind Gupta 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>   I am trying to compile IM, CD and IUP on Raspberry Pi. When I do
>>>>> make for IM I get the following error:
>>>>>
>>>>> /usr/bin/ld: ../obj/Linux41_arm/im_oldcolor.o: relocation
>>>>> R_ARM_THM_MOVW_ABS_NCagainst
>>>>> `__stack_chk_guard' can not be used when making a shared object; recompi
>>>>> le with -fPIC
>>>>> ../obj/Linux41_arm/im_oldcolor.o: error adding symbols: Bad value
>>>>> collect2: error: ld returned 1 exit status
>>>>> ../tecmake.mak:1533: recipe for target '../lib/Linux41_arm/libim.so'
>>>>> failed
>>>>> make[1]: *** [../lib/Linux41_arm/libim.so] Error 1
>>>>> Makefile:12: recipe for target 'im' failed
>>>>> make: *** [im] Error 2
>>>>>
>>>>>
>>>>> Please let me know what can I do make it work? Has someone compiled
>>>>> and used IUP on Raspberry Pi. I am using Raspberry Pi 3 (64 bit) running
>>>>> Ubuntu.
>>>>>
>>>>> Thanks,
>>>>> Milind
>>>>>
>>>>> 
>>>>> --
>>>>>
>>>>> ___
>>>>> Iup-users mailing list
>>>>> Iup-users@list

Re: [Iup-users] MULTIVALUECOUNT return 0 when select only one file in IupFileDlg

2016-09-14 Thread Antonio Scuri
  Which driver? Windows or GTK?

  About the colored transparent box, using CD or any other drawing toolkit.
But when using CD must use the ContextPlus drivers, because the regular
drivers GDI and GTK2 does not have transparency. Only GDI+ and GTK3 using
Cairo.

Best,
Scuri


On Tue, Sep 13, 2016 at 11:51 PM, max chen  wrote:

> Hi,
>
> I use IupFileDlg to select files, when set MULTIPLEFILES = Yes and only
> select only one file, MULTIVALUECOUNT return 0 and MULTIVALUE0 and
> MULTIVALUE1 return NULL.
> Is this a bug ?
>
> And, I have another question, how to draw a colored transparent box in a
> canvas ?
>
> Regards
> Max
>
> 
> --
>
> ___
> 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] MULTIVALUECOUNT return 0 when select only one file in IupFileDlg

2016-09-17 Thread Antonio Scuri
  OK. Which IUP version?

Em 17/09/2016 22:18, "max chen"  escreveu:

> ​Hi,
>
> I'm using GTK driver in ubuntu 16.04 x64​
>
>
>> Which driver? Windows or GTK?
>>
>>   About the colored transparent box, using CD or any other drawing toolkit.
>> But when using CD must use the ContextPlus drivers, because the regular
>> drivers GDI and GTK2 does not have transparency. Only GDI+ and GTK3 using
>> Cairo.
>>
>> Best,
>> Scuri
>>
>>
>> On Tue, Sep 13, 2016 at 11:51 PM, max chen  wrote:
>>
>> > Hi,
>> >
>> > I use IupFileDlg to select files, when set MULTIPLEFILES = Yes and only
>> > select only one file, MULTIVALUECOUNT return 0 and MULTIVALUE0 and
>> > MULTIVALUE1 return NULL.
>> > Is this a bug ?
>> >
>> > And, I have another question, how to draw a colored transparent box in a
>> > canvas ?
>> >
>> > Regards
>> > Max
>> >
>> > 
>> > --
>> >
>> > ___
>> > Iup-users mailing list
>> > Iup-users@...
>> > 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] MULTIVALUECOUNT return 0 when select only one file in IupFileDlg

2016-09-18 Thread Antonio Scuri
  Ok. I'll try to reproduce the problem here and let you know what's going
on.

Best,
Scuri


On Sun, Sep 18, 2016 at 9:58 PM, max chen  wrote:

> sorry
> IUP version is iup-3.19.1_Linux44_64_lib
>
> 2016-09-18 9:31 GMT+08:00 Antonio Scuri :
>
>>   OK. Which IUP version?
>>
>> Em 17/09/2016 22:18, "max chen"  escreveu:
>>
>>> ​Hi,
>>>
>>> I'm using GTK driver in ubuntu 16.04 x64​
>>>
>>>
>>>> Which driver? Windows or GTK?
>>>>
>>>>   About the colored transparent box, using CD or any other drawing toolkit.
>>>> But when using CD must use the ContextPlus drivers, because the regular
>>>> drivers GDI and GTK2 does not have transparency. Only GDI+ and GTK3 using
>>>> Cairo.
>>>>
>>>> Best,
>>>> Scuri
>>>>
>>>>
>>>> On Tue, Sep 13, 2016 at 11:51 PM, max chen  wrote:
>>>>
>>>> > Hi,
>>>> >
>>>> > I use IupFileDlg to select files, when set MULTIPLEFILES = Yes and only
>>>> > select only one file, MULTIVALUECOUNT return 0 and MULTIVALUE0 and
>>>> > MULTIVALUE1 return NULL.
>>>> > Is this a bug ?
>>>> >
>>>> > And, I have another question, how to draw a colored transparent box in a
>>>> > canvas ?
>>>> >
>>>> > Regards
>>>> > Max
>>>> >
>>>> > 
>>>> > --
>>>> >
>>>> > ___
>>>> > Iup-users mailing list
>>>> > Iup-users@...
>>>> > 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
>>
>>
>
> 
> --
>
> ___
> 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] MULTIVALUECOUNT return 0 when select only one file in IupFileDlg

2016-09-19 Thread Antonio Scuri
  By the way, this was fixed in 3.18:

Fixed: MULTIVALUE and MULTIVALUECOUNT in *IupFileDlg* when only one file is
selected.

  Maybe you are running an older IUP version?

Best,
Scuri

On Mon, Sep 19, 2016 at 5:06 PM, Antonio Scuri 
wrote:

>   Sorry but it works here. I tested under Ubuntu 16 (Linux44_64).
>
>   This test: iup/html/examples/tests/predialogs.c
>
>   When pressing "o" shows a dialog that if I select only one file results:
>
> OK
>   File exists - VALUE(/tecgraf/iup/html/examples/tests/button.c)
>   DIRECTORY(/tecgraf/iup/html/examples/tests/)
>   MULTIVALUECOUNT(2)
>   MULTIVALUE0 = /tecgraf/iup/html/examples/tests/
>   MULTIVALUE1 = button.c
>
>   Can you test the same code?
>
> Best,
> Scuri
>
>
>
> On Sun, Sep 18, 2016 at 10:25 PM, Antonio Scuri 
> wrote:
>
>>   Ok. I'll try to reproduce the problem here and let you know what's
>> going on.
>>
>> Best,
>> Scuri
>>
>>
>> On Sun, Sep 18, 2016 at 9:58 PM, max chen  wrote:
>>
>>> sorry
>>> IUP version is iup-3.19.1_Linux44_64_lib
>>>
>>> 2016-09-18 9:31 GMT+08:00 Antonio Scuri :
>>>
>>>>   OK. Which IUP version?
>>>>
>>>> Em 17/09/2016 22:18, "max chen"  escreveu:
>>>>
>>>>> ​Hi,
>>>>>
>>>>> I'm using GTK driver in ubuntu 16.04 x64​
>>>>>
>>>>>
>>>>>> Which driver? Windows or GTK?
>>>>>>
>>>>>>   About the colored transparent box, using CD or any other drawing 
>>>>>> toolkit.
>>>>>> But when using CD must use the ContextPlus drivers, because the regular
>>>>>> drivers GDI and GTK2 does not have transparency. Only GDI+ and GTK3 using
>>>>>> Cairo.
>>>>>>
>>>>>> Best,
>>>>>> Scuri
>>>>>>
>>>>>>
>>>>>> On Tue, Sep 13, 2016 at 11:51 PM, max chen  wrote:
>>>>>>
>>>>>> > Hi,
>>>>>> >
>>>>>> > I use IupFileDlg to select files, when set MULTIPLEFILES = Yes and only
>>>>>> > select only one file, MULTIVALUECOUNT return 0 and MULTIVALUE0 and
>>>>>> > MULTIVALUE1 return NULL.
>>>>>> > Is this a bug ?
>>>>>> >
>>>>>> > And, I have another question, how to draw a colored transparent box in 
>>>>>> > a
>>>>>> > canvas ?
>>>>>> >
>>>>>> > Regards
>>>>>> > Max
>>>>>> >
>>>>>> > 
>>>>>> > --
>>>>>> >
>>>>>> > ___
>>>>>> > Iup-users mailing list
>>>>>> > Iup-users@...
>>>>>> > 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
>>>>
>>>>
>>>
>>> 
>>> --
>>>
>>> ___
>>> 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] MULTIVALUECOUNT return 0 when select only one file in IupFileDlg

2016-09-19 Thread Antonio Scuri
  Sorry but it works here. I tested under Ubuntu 16 (Linux44_64).

  This test: iup/html/examples/tests/predialogs.c

  When pressing "o" shows a dialog that if I select only one file results:

OK
  File exists - VALUE(/tecgraf/iup/html/examples/tests/button.c)
  DIRECTORY(/tecgraf/iup/html/examples/tests/)
  MULTIVALUECOUNT(2)
  MULTIVALUE0 = /tecgraf/iup/html/examples/tests/
  MULTIVALUE1 = button.c

  Can you test the same code?

Best,
Scuri



On Sun, Sep 18, 2016 at 10:25 PM, Antonio Scuri 
wrote:

>   Ok. I'll try to reproduce the problem here and let you know what's going
> on.
>
> Best,
> Scuri
>
>
> On Sun, Sep 18, 2016 at 9:58 PM, max chen  wrote:
>
>> sorry
>> IUP version is iup-3.19.1_Linux44_64_lib
>>
>> 2016-09-18 9:31 GMT+08:00 Antonio Scuri :
>>
>>>   OK. Which IUP version?
>>>
>>> Em 17/09/2016 22:18, "max chen"  escreveu:
>>>
>>>> ​Hi,
>>>>
>>>> I'm using GTK driver in ubuntu 16.04 x64​
>>>>
>>>>
>>>>> Which driver? Windows or GTK?
>>>>>
>>>>>   About the colored transparent box, using CD or any other drawing 
>>>>> toolkit.
>>>>> But when using CD must use the ContextPlus drivers, because the regular
>>>>> drivers GDI and GTK2 does not have transparency. Only GDI+ and GTK3 using
>>>>> Cairo.
>>>>>
>>>>> Best,
>>>>> Scuri
>>>>>
>>>>>
>>>>> On Tue, Sep 13, 2016 at 11:51 PM, max chen  wrote:
>>>>>
>>>>> > Hi,
>>>>> >
>>>>> > I use IupFileDlg to select files, when set MULTIPLEFILES = Yes and only
>>>>> > select only one file, MULTIVALUECOUNT return 0 and MULTIVALUE0 and
>>>>> > MULTIVALUE1 return NULL.
>>>>> > Is this a bug ?
>>>>> >
>>>>> > And, I have another question, how to draw a colored transparent box in a
>>>>> > canvas ?
>>>>> >
>>>>> > Regards
>>>>> > Max
>>>>> >
>>>>> > 
>>>>> > --
>>>>> >
>>>>> > ___
>>>>> > Iup-users mailing list
>>>>> > Iup-users@...
>>>>> > 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
>>>
>>>
>>
>> 
>> --
>>
>> ___
>> 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] MULTIVALUECOUNT return 0 when select only one file in IupFileDlg

2016-09-19 Thread Antonio Scuri
  No problem. Glad to know it is solved.

Best,
Scuri

Em 19/09/2016 22:03, "max chen"  escreveu:

> Hi,
>
> Just confirm that my system use the old lib. I install the new lib and
> libiup.so just copied to /usr/lib64, but the app use /usr/lib/libiup.so.
> Maybe this is a config problem of my system.
>
> I'm sorry for wasting your time.
>
> Regards
> Max
>
> 2016-09-20 4:08 GMT+08:00 Antonio Scuri :
>
>>   By the way, this was fixed in 3.18:
>>
>> Fixed: MULTIVALUE and MULTIVALUECOUNT in *IupFileDlg* when only one file
>> is selected.
>>
>>   Maybe you are running an older IUP version?
>>
>> Best,
>> Scuri
>>
>> On Mon, Sep 19, 2016 at 5:06 PM, Antonio Scuri 
>> wrote:
>>
>>>   Sorry but it works here. I tested under Ubuntu 16 (Linux44_64).
>>>
>>>   This test: iup/html/examples/tests/predialogs.c
>>>
>>>   When pressing "o" shows a dialog that if I select only one file
>>> results:
>>>
>>> OK
>>>   File exists - VALUE(/tecgraf/iup/html/examples/tests/button.c)
>>>   DIRECTORY(/tecgraf/iup/html/examples/tests/)
>>>   MULTIVALUECOUNT(2)
>>>   MULTIVALUE0 = /tecgraf/iup/html/examples/tests/
>>>   MULTIVALUE1 = button.c
>>>
>>>   Can you test the same code?
>>>
>>> Best,
>>> Scuri
>>>
>>>
>>>
>>> On Sun, Sep 18, 2016 at 10:25 PM, Antonio Scuri >> > wrote:
>>>
>>>>   Ok. I'll try to reproduce the problem here and let you know what's
>>>> going on.
>>>>
>>>> Best,
>>>> Scuri
>>>>
>>>>
>>>> On Sun, Sep 18, 2016 at 9:58 PM, max chen  wrote:
>>>>
>>>>> sorry
>>>>> IUP version is iup-3.19.1_Linux44_64_lib
>>>>>
>>>>> 2016-09-18 9:31 GMT+08:00 Antonio Scuri :
>>>>>
>>>>>>   OK. Which IUP version?
>>>>>>
>>>>>> Em 17/09/2016 22:18, "max chen"  escreveu:
>>>>>>
>>>>>>> ​Hi,
>>>>>>>
>>>>>>> I'm using GTK driver in ubuntu 16.04 x64​
>>>>>>>
>>>>>>>
>>>>>>>> Which driver? Windows or GTK?
>>>>>>>>
>>>>>>>>   About the colored transparent box, using CD or any other drawing 
>>>>>>>> toolkit.
>>>>>>>> But when using CD must use the ContextPlus drivers, because the regular
>>>>>>>> drivers GDI and GTK2 does not have transparency. Only GDI+ and GTK3 
>>>>>>>> using
>>>>>>>> Cairo.
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> Scuri
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Sep 13, 2016 at 11:51 PM, max chen  wrote:
>>>>>>>>
>>>>>>>> > Hi,
>>>>>>>> >
>>>>>>>> > I use IupFileDlg to select files, when set MULTIPLEFILES = Yes and 
>>>>>>>> > only
>>>>>>>> > select only one file, MULTIVALUECOUNT return 0 and MULTIVALUE0 and
>>>>>>>> > MULTIVALUE1 return NULL.
>>>>>>>> > Is this a bug ?
>>>>>>>> >
>>>>>>>> > And, I have another question, how to draw a colored transparent box 
>>>>>>>> > in a
>>>>>>>> > canvas ?
>>>>>>>> >
>>>>>>>> > Regards
>>>>>>>> > Max
>>>>>>>> >
>>>>>>>> > 
>>>>>>>> > --
>>>>>>>> >
>>>>>>>> > ___
>>>>>>>> > Iup-users mailing list
>>>>>>>> > Iup-users@...
>>>>>>>> > 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
>>>>>>
>>>>>>
>>>>>
>>>>> 
>>>>> --
>>>>>
>>>>> ___
>>>>> 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
>
>
--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] building zlib for im

2016-09-29 Thread Antonio Scuri
  Yes, sorry. I already fixed that problem in SVN. It will be included in
the next release. But you can copy the files from IM to the same place in
zlib folder that it will work. Thanks for reporting.

Best,
Scuri


On Thu, Sep 29, 2016 at 11:52 AM, Victor Bombi 
wrote:

> Hello,
>
> Trying to build im with mingw-w64 (32bits)
> First building zlib gives me this problem
>
> file aa.bat has:
>
> export TEC_UNAME=dllw4
> export DEFINES="LUA_BUILD_AS_DLL LUA_LIB"
> export MINGW4=C:/mingw32-4.8.2-posix-dwarf
> make
>
> then:
> victor@victorPortatil /c/iup/zlib/src
> $ ./aa.bat
> make[1]: ../tecmakewin.mak: No such file or directory
> make[1]: *** No rule to make target `../tecmakewin.mak'.  Stop.
> make: *** [zlib] Error 2
>
> Best
> victor bombi
>
> 
> --
> ___
> 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] building zlib for im

2016-09-29 Thread Antonio Scuri
  Yes, you may. Or simply copy the missing file from IM. They are identical.

Best,
Scuri

Em 29/09/2016 12:47, "Victor Bombi"  escreveu:

> I cant see zlib folder inside im folder (soundforge)
> Do you mean I should take it from SVN?
>
> - Original Message -----
> *From:* Antonio Scuri 
> *To:* IUP discussion list. 
> *Sent:* Thursday, September 29, 2016 5:21 PM
> *Subject:* Re: [Iup-users] building zlib for im
>
>   Yes, sorry. I already fixed that problem in SVN. It will be included in
> the next release. But you can copy the files from IM to the same place in
> zlib folder that it will work. Thanks for reporting.
>
> Best,
> Scuri
>
>
> On Thu, Sep 29, 2016 at 11:52 AM, Victor Bombi 
> wrote:
>
>> Hello,
>>
>> Trying to build im with mingw-w64 (32bits)
>> First building zlib gives me this problem
>>
>> file aa.bat has:
>>
>> export TEC_UNAME=dllw4
>> export DEFINES="LUA_BUILD_AS_DLL LUA_LIB"
>> export MINGW4=C:/mingw32-4.8.2-posix-dwarf
>> make
>>
>> then:
>> victor@victorPortatil /c/iup/zlib/src
>> $ ./aa.bat
>> make[1]: ../tecmakewin.mak: No such file or directory
>> make[1]: *** No rule to make target `../tecmakewin.mak'.  Stop.
>> make: *** [zlib] Error 2
>>
>> Best
>> victor bombi
>>
>> 
>> --
>> ___
>> 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
>
>
--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] building zlib for im

2016-09-29 Thread Antonio Scuri
  Yes, same thing.

  About Lua 5.1 setargv.obj, it is an error in the "lua_conf.inc" file.
Because it was designed to be built only by Visual C++. You can manually
remove it.

Best,
Scuri


On Thu, Sep 29, 2016 at 1:31 PM, Victor Bombi  wrote:

> well, it does not seem to be a problem because lua5.1.dll is built
>
> Now with ftgl I get
>
> victor@victorPortatil /c/iup/ftgl/src
> $ ./aa.bat
> make[1]: ../tecmakewin.mak: No such file or directory
> make[1]: *** No rule to make target `../tecmakewin.mak'.  Stop.
> make: *** [ftgl] Error 2
>
> Shall I copy tecmakewin.mak from im as I did with zlib?
>
> - Original Message -
> *From:* Victor Bombi 
> *To:* IUP discussion list. 
> *Sent:* Thursday, September 29, 2016 6:08 PM
> *Subject:* Re: [Iup-users] building zlib for im
>
> I see, you meant to copy tecmakewin.mak
> It is done and zlib compiled
>
> Now building lua5.1 (from  http://sourceforge.net/
> projects/luabinaries/files/) gives me
>
> Tecmake: linking lua5.1.exe ...
> C:/mingw32-4.8.2-posix-dwarf/bin/gcc -o ../bin/Win32/lua5.1.exe
> ../obj/Win32/lua.o ../obj/Win32/lua.
> res setargv.obj  -Wl,-subsystem,console -L../lib/dll8
> -LC:/mingw32-4.8.2-posix-dwarf/lib -llua5.1 -l
> kernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32
> -luuid -loleaut32 -lole32 -lcom
> ctl32
> gcc.exe: error: setargv.obj: No such file or directory
> make[1]: *** [../bin/Win32/lua5.1.exe] Error 1
> make: *** [lua] Error 2
>
> - Original Message -
> *From:* Antonio Scuri 
> *To:* IUP discussion list. 
> *Sent:* Thursday, September 29, 2016 5:49 PM
> *Subject:* Re: [Iup-users] building zlib for im
>
>   Yes, you may. Or simply copy the missing file from IM. They are
> identical.
>
> Best,
> Scuri
>
> Em 29/09/2016 12:47, "Victor Bombi"  escreveu:
>
>> I cant see zlib folder inside im folder (soundforge)
>> Do you mean I should take it from SVN?
>>
>> - Original Message -
>> *From:* Antonio Scuri 
>> *To:* IUP discussion list. 
>> *Sent:* Thursday, September 29, 2016 5:21 PM
>> *Subject:* Re: [Iup-users] building zlib for im
>>
>>   Yes, sorry. I already fixed that problem in SVN. It will be included in
>> the next release. But you can copy the files from IM to the same place in
>> zlib folder that it will work. Thanks for reporting.
>>
>> Best,
>> Scuri
>>
>>
>> On Thu, Sep 29, 2016 at 11:52 AM, Victor Bombi 
>> wrote:
>>
>>> Hello,
>>>
>>> Trying to build im with mingw-w64 (32bits)
>>> First building zlib gives me this problem
>>>
>>> file aa.bat has:
>>>
>>> export TEC_UNAME=dllw4
>>> export DEFINES="LUA_BUILD_AS_DLL LUA_LIB"
>>> export MINGW4=C:/mingw32-4.8.2-posix-dwarf
>>> make
>>>
>>> then:
>>> victor@victorPortatil /c/iup/zlib/src
>>> $ ./aa.bat
>>> make[1]: ../tecmakewin.mak: No such file or directory
>>> make[1]: *** No rule to make target `../tecmakewin.mak'.  Stop.
>>> make: *** [zlib] Error 2
>>>
>>> Best
>>> victor bombi
>>>
>>> 
>>> --
>>> ___
>>> 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
>>
>> --
>
> 
> --
>
> --
>
> ___
> 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
>
>
--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] building zlib for im

2016-09-29 Thread Antonio Scuri
  It should have recognized the pragma. Just ignore the warnings.

Best,
Scuri


On Thu, Sep 29, 2016 at 2:22 PM, Victor Bombi  wrote:

> solved getting freetype from SVN
>
> Finally I am with iup, I get warnings: ignoring #pragma omp
> Should I had used any flag to use omp?
> Also getting warnings about c++11 needed, Any flag?
>
> - Original Message -
> *From:* Victor Bombi 
> *To:* IUP discussion list. 
> *Sent:* Thursday, September 29, 2016 6:42 PM
> *Subject:* Re: [Iup-users] building zlib for im
>
> It seems that ftgl needs freetype to be build but in this case I get
>
> victor@victorPortatil /c/iup/freetype/src
> $ ./aa.bat
> make: *** No targets specified and no makefile found.  Stop.
>
> - Original Message -
> *From:* Antonio Scuri 
> *To:* IUP discussion list. 
> *Sent:* Thursday, September 29, 2016 6:34 PM
> *Subject:* Re: [Iup-users] building zlib for im
>
>   Yes, same thing.
>
>   About Lua 5.1 setargv.obj, it is an error in the "lua_conf.inc" file.
> Because it was designed to be built only by Visual C++. You can manually
> remove it.
>
> Best,
> Scuri
>
>
> On Thu, Sep 29, 2016 at 1:31 PM, Victor Bombi 
> wrote:
>
>> well, it does not seem to be a problem because lua5.1.dll is built
>>
>> Now with ftgl I get
>>
>> victor@victorPortatil /c/iup/ftgl/src
>> $ ./aa.bat
>> make[1]: ../tecmakewin.mak: No such file or directory
>> make[1]: *** No rule to make target `../tecmakewin.mak'.  Stop.
>> make: *** [ftgl] Error 2
>>
>> Shall I copy tecmakewin.mak from im as I did with zlib?
>>
>> - Original Message -
>> *From:* Victor Bombi 
>> *To:* IUP discussion list. 
>> *Sent:* Thursday, September 29, 2016 6:08 PM
>> *Subject:* Re: [Iup-users] building zlib for im
>>
>> I see, you meant to copy tecmakewin.mak
>> It is done and zlib compiled
>>
>> Now building lua5.1 (from  http://sourceforge.net/project
>> s/luabinaries/files/) gives me
>>
>> Tecmake: linking lua5.1.exe ...
>> C:/mingw32-4.8.2-posix-dwarf/bin/gcc -o ../bin/Win32/lua5.1.exe
>> ../obj/Win32/lua.o ../obj/Win32/lua.
>> res setargv.obj  -Wl,-subsystem,console -L../lib/dll8
>> -LC:/mingw32-4.8.2-posix-dwarf/lib -llua5.1 -l
>> kernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32
>> -luuid -loleaut32 -lole32 -lcom
>> ctl32
>> gcc.exe: error: setargv.obj: No such file or directory
>> make[1]: *** [../bin/Win32/lua5.1.exe] Error 1
>> make: *** [lua] Error 2
>>
>> - Original Message -
>> *From:* Antonio Scuri 
>> *To:* IUP discussion list. 
>> *Sent:* Thursday, September 29, 2016 5:49 PM
>> *Subject:* Re: [Iup-users] building zlib for im
>>
>>   Yes, you may. Or simply copy the missing file from IM. They are
>> identical.
>>
>> Best,
>> Scuri
>>
>> Em 29/09/2016 12:47, "Victor Bombi"  escreveu:
>>
>>> I cant see zlib folder inside im folder (soundforge)
>>> Do you mean I should take it from SVN?
>>>
>>> - Original Message -
>>> *From:* Antonio Scuri 
>>> *To:* IUP discussion list. 
>>> *Sent:* Thursday, September 29, 2016 5:21 PM
>>> *Subject:* Re: [Iup-users] building zlib for im
>>>
>>>   Yes, sorry. I already fixed that problem in SVN. It will be included
>>> in the next release. But you can copy the files from IM to the same place
>>> in zlib folder that it will work. Thanks for reporting.
>>>
>>> Best,
>>> Scuri
>>>
>>>
>>> On Thu, Sep 29, 2016 at 11:52 AM, Victor Bombi 
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> Trying to build im with mingw-w64 (32bits)
>>>> First building zlib gives me this problem
>>>>
>>>> file aa.bat has:
>>>>
>>>> export TEC_UNAME=dllw4
>>>> export DEFINES="LUA_BUILD_AS_DLL LUA_LIB"
>>>> export MINGW4=C:/mingw32-4.8.2-posix-dwarf
>>>> make
>>>>
>>>> then:
>>>> victor@victorPortatil /c/iup/zlib/src
>>>> $ ./aa.bat
>>>> make[1]: ../tecmakewin.mak: No such file or directory
>>>> make[1]: *** No rule to make target `../tecmakewin.mak'.  Stop.
>>>> make: *** [zlib] Error 2
>>>>
>>>> Best
>>>> victor bombi
>>>>

Re: [Iup-users] building zlib for im

2016-09-29 Thread Antonio Scuri
  To use openMP yes, but that's done only in im_process_openmp, for regular
im_process the pragma should be ignored by the compiler.

  I don't know about the c++11 flags. I don't remember if I compiled that
library for Mingw64.

Best,
Scuri


On Thu, Sep 29, 2016 at 2:34 PM, Victor Bombi  wrote:

> For openmp I needed to activate a flag in other projects (-fopenmp or
> similar)
>
> But main problem is about c++11 because it gives a building error related
> to std::rege... while compiling Document.cxx
>
> How can I use c++11. Perhaps any flag as: export something = c++11
>
> - Original Message -
> *From:* Antonio Scuri 
> *To:* IUP discussion list. 
> *Sent:* Thursday, September 29, 2016 7:27 PM
> *Subject:* Re: [Iup-users] building zlib for im
>
>   It should have recognized the pragma. Just ignore the warnings.
>
> Best,
> Scuri
>
>
> On Thu, Sep 29, 2016 at 2:22 PM, Victor Bombi 
> wrote:
>
>> solved getting freetype from SVN
>>
>> Finally I am with iup, I get warnings: ignoring #pragma omp
>> Should I had used any flag to use omp?
>> Also getting warnings about c++11 needed, Any flag?
>>
>> - Original Message -
>> *From:* Victor Bombi 
>> *To:* IUP discussion list. 
>> *Sent:* Thursday, September 29, 2016 6:42 PM
>> *Subject:* Re: [Iup-users] building zlib for im
>>
>> It seems that ftgl needs freetype to be build but in this case I get
>>
>> victor@victorPortatil /c/iup/freetype/src
>> $ ./aa.bat
>> make: *** No targets specified and no makefile found.  Stop.
>>
>> - Original Message -
>> *From:* Antonio Scuri 
>> *To:* IUP discussion list. 
>> *Sent:* Thursday, September 29, 2016 6:34 PM
>> *Subject:* Re: [Iup-users] building zlib for im
>>
>>   Yes, same thing.
>>
>>   About Lua 5.1 setargv.obj, it is an error in the "lua_conf.inc" file.
>> Because it was designed to be built only by Visual C++. You can manually
>> remove it.
>>
>> Best,
>> Scuri
>>
>>
>> On Thu, Sep 29, 2016 at 1:31 PM, Victor Bombi 
>> wrote:
>>
>>> well, it does not seem to be a problem because lua5.1.dll is built
>>>
>>> Now with ftgl I get
>>>
>>> victor@victorPortatil /c/iup/ftgl/src
>>> $ ./aa.bat
>>> make[1]: ../tecmakewin.mak: No such file or directory
>>> make[1]: *** No rule to make target `../tecmakewin.mak'.  Stop.
>>> make: *** [ftgl] Error 2
>>>
>>> Shall I copy tecmakewin.mak from im as I did with zlib?
>>>
>>> - Original Message -
>>> *From:* Victor Bombi 
>>> *To:* IUP discussion list. 
>>> *Sent:* Thursday, September 29, 2016 6:08 PM
>>> *Subject:* Re: [Iup-users] building zlib for im
>>>
>>> I see, you meant to copy tecmakewin.mak
>>> It is done and zlib compiled
>>>
>>> Now building lua5.1 (from  http://sourceforge.net/project
>>> s/luabinaries/files/) gives me
>>>
>>> Tecmake: linking lua5.1.exe ...
>>> C:/mingw32-4.8.2-posix-dwarf/bin/gcc -o ../bin/Win32/lua5.1.exe
>>> ../obj/Win32/lua.o ../obj/Win32/lua.
>>> res setargv.obj  -Wl,-subsystem,console -L../lib/dll8
>>> -LC:/mingw32-4.8.2-posix-dwarf/lib -llua5.1 -l
>>> kernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32
>>> -luuid -loleaut32 -lole32 -lcom
>>> ctl32
>>> gcc.exe: error: setargv.obj: No such file or directory
>>> make[1]: *** [../bin/Win32/lua5.1.exe] Error 1
>>> make: *** [lua] Error 2
>>>
>>> - Original Message -
>>> *From:* Antonio Scuri 
>>> *To:* IUP discussion list. 
>>> *Sent:* Thursday, September 29, 2016 5:49 PM
>>> *Subject:* Re: [Iup-users] building zlib for im
>>>
>>>   Yes, you may. Or simply copy the missing file from IM. They are
>>> identical.
>>>
>>> Best,
>>> Scuri
>>>
>>> Em 29/09/2016 12:47, "Victor Bombi"  escreveu:
>>>
>>>> I cant see zlib folder inside im folder (soundforge)
>>>> Do you mean I should take it from SVN?
>>>>
>>>> - Original Message -
>>>> *From:* Antonio Scuri 
>>>> *To:* IUP discussion list. 
>>>> *Sent:* Thursday, September 29, 2016 5:21 PM
>>>> *Subject:* Re: [Iup-users] building zlib for im
>>>>
>>>>   Yes, sorry. I already fixed that problem in SVN. It will be included
>>>> in the next release. But you can copy the files from IM to the same place

Re: [Iup-users] building zlib for im

2016-09-29 Thread Antonio Scuri
:2602:16: error: 'regex_search' is not a member of 'std'
>   matched = std::regex_search(itNext, itEnd, matchNext, regexp,
> flagsMatch);
> ^
> src/Document.cxx: In function 'long int 
> {anonymous}::Cxx11RegexFindText(Document*,
> int, int, const c
> har*, bool, int*, RESearch&)':
> src/Document.cxx:2635:8: error: 'std::regex' has not been declared
>std::regex::flag_type flagsRe = std::regex::ECMAScript;
> ^
> src/Document.cxx:2635:25: error: expected ';' before 'flagsRe'
>std::regex::flag_type flagsRe = std::regex::ECMAScript;
>  ^
> src/Document.cxx:2639:4: error: 'flagsRe' was not declared in this scope
> flagsRe = flagsRe | std::regex::icase;
> ^
> src/Document.cxx:2639:29: error: 'std::regex' has not been declared
> flagsRe = flagsRe | std::regex::icase;
>  ^
> src/Document.cxx:2654:4: error: 'wregex' is not a member of 'std'
> std::wregex regexp;
> ^
> src/Document.cxx:2654:16: error: expected ';' before 'regexp'
> std::wregex regexp;
> ^
> src/Document.cxx:2662:4: error: 'regexp' was not declared in this scope
> regexp.assign(&ws[0], flagsRe);
> ^
> src/Document.cxx:2662:26: error: 'flagsRe' was not declared in this scope
> regexp.assign(&ws[0], flagsRe);
>   ^
> src/Document.cxx:2666:4: error: 'regex' is not a member of 'std'
> std::regex regexp;
> ^
> src/Document.cxx:2666:15: error: expected ';' before 'regexp'
> std::regex regexp;
>^
> src/Document.cxx:2667:4: error: 'regexp' was not declared in this scope
> regexp.assign(s, flagsRe);
> ^
> src/Document.cxx:2667:21: error: 'flagsRe' was not declared in this scope
> regexp.assign(s, flagsRe);
>  ^
> src/Document.cxx:2682:11: error: expected type-specifier
>   } catch (std::regex_error &) {
>^
> src/Document.cxx:2682:28: error: expected unqualified-id before '&' token
>   } catch (std::regex_error &) {
> ^
> src/Document.cxx:2682:28: error: expected ')' before '&' token
> src/Document.cxx:2682:28: error: expected '{' before '&' token
> src/Document.cxx:2682:29: error: expected primary-expression before ')'
> token
>   } catch (std::regex_error &) {
>  ^
> src/Document.cxx:2682:29: error: expected ';' before ')' token
> src/Document.cxx:2685:4: error: expected primary-expression before 'catch'
>   } catch (...) {
> ^
> src/Document.cxx:2685:4: error: expected ';' before 'catch'
> make[2]: *** [../obj/iup_scintilla/dllw4/Document.o] Error 1
> make[1]: *** [iup_scintilla] Error 2
> make: *** [iup_scintilla] Error 2
> Best
> victor bombi
>
> - Original Message -
> *From:* Antonio Scuri 
> *To:* IUP discussion list. 
> *Sent:* Thursday, September 29, 2016 7:56 PM
> *Subject:* Re: [Iup-users] building zlib for im
>
>   To use openMP yes, but that's done only in im_process_openmp, for
> regular im_process the pragma should be ignored by the compiler.
>
>   I don't know about the c++11 flags. I don't remember if I compiled that
> library for Mingw64.
>
> Best,
> Scuri
>
>
> On Thu, Sep 29, 2016 at 2:34 PM, Victor Bombi 
> wrote:
>
>> For openmp I needed to activate a flag in other projects (-fopenmp or
>> similar)
>>
>> But main problem is about c++11 because it gives a building error related
>> to std::rege... while compiling Document.cxx
>>
>> How can I use c++11. Perhaps any flag as: export something = c++11
>>
>> - Original Message -
>> *From:* Antonio Scuri 
>> *To:* IUP discussion list. 
>> *Sent:* Thursday, September 29, 2016 7:27 PM
>> *Subject:* Re: [Iup-users] building zlib for im
>>
>>   It should have recognized the pragma. Just ignore the warnings.
>>
>> Best,
>> Scuri
>>
>>
>> On Thu, Sep 29, 2016 at 2:22 PM, Victor Bombi 
>> wrote:
>>
>>> solved getting freetype from SVN
>>>
>>> Finally I am with iup, I get warnings: ignoring #pragma omp
>>> Should I had used any flag to use omp?
>>> Also getting warnings about c++11 needed, Any flag?
>>>
>>> - Original Message -
>>> *From:* Victor Bombi 
>>> *To:* IUP discus

Re: [Iup-users] building zlib for im

2016-09-29 Thread Antonio Scuri
  The essencial flags are:

export TEC_UNAME=dllw4
export MINGW4=C:/mingw32-4.8.2-posix-dwarf

  These flags should be set only when necessary, not all the time.

export DEFINES="LUA_BUILD_AS_DLL LUA_LIB"
export FLAGS="-fopenmp"
export CPPFLAGS="-std=c++11 -fopenmp"

Best,
Scuri


On Thu, Sep 29, 2016 at 3:54 PM, Victor Bombi  wrote:

> My commands are now
>
> export TEC_UNAME=dllw4
> export DEFINES="LUA_BUILD_AS_DLL LUA_LIB"
> export MINGW4=C:/mingw32-4.8.2-posix-dwarf
> export FLAGS="-fopenmp"
> export CPPFLAGS="-std=c++11 -fopenmp"
> make
>
> CPPFLAGS was missing but a new error appears
>
> Tecmake: compiling axis.cpp ...
> C:/mingw32-4.8.2-posix-dwarf/bin/g++ -c -std=c++11 -fopenmp -Wall -O2
> -I../include -I../src -I. -IC:
> /mingw32-4.8.2-posix-dwarf/include  -DLUA_BUILD_AS_DLL -DLUA_LIB
> -DMGL_STATIC_DEFINE -DMGL_SRC -DTEC
> _UNAME=dllw4 -DTEC_SYSNAME=Win32 -DTEC_LITTLEENDIAN -DTEC_32 -DWIN32
> -DNDEBUG -o ../obj/iup_mglplot/
> dllw4/axis.o src/axis.cpp
> src/axis.cpp: In member function 'void mglCanvas::LabelTicks(mglAxis&)':
> src/axis.cpp:411:12: error: 'M_LN10' was not declared in this scope
>v0 = exp(M_LN10*floor(0.1+log10(aa.v1)));
> ^
> src/axis.cpp:426:13: error: 'M_LN10' was not declared in this scope
>v0 = -exp(M_LN10*floor(0.1+log10(-aa.v2)));
>  ^
> src/axis.cpp: In member function 'void mglCanvas::DrawAxis(mglAxis&, bool,
> char, const char*, mreal)
> ':
> src/axis.cpp:555:44: error: 'M_LN10' was not declared in this scope
>if(aa.dv==0 && aa.v2>aa.v1 && fabs(u-exp(M_LN10*floor(0.1+
> log10(u<0.01*u)
> ^
> src/axis.cpp:557:44: error: 'M_LN10' was not declared in this scope
>if(aa.dv==0 && aa.v2 log10(u<0.01*u)
> ^
> src/axis.cpp: In member function 'void mglCanvas::DrawGrid(mglAxis&,
> bool)':
> src/axis.cpp:781:33: error: 'M_LN10' was not declared in this scope
> if(aa.v2>aa.v1 && fabs(u-exp(M_LN10*floor(0.1+log10(u<0.01*u)
>  ^
> src/axis.cpp:784:33: error: 'M_LN10' was not declared in this scope
>     if(aa.v2  ^
> make[2]: *** [../obj/iup_mglplot/dllw4/axis.o] Error 1
> make[1]: *** [iup_mglplot] Error 2
> make: *** [iup_mglplot] Error 2
>
>
> So it seems that the flag is not good for this other project
> I dont know what else can be done :-(
>
> - Original Message -
> *From:* Antonio Scuri 
> *To:* IUP discussion list. 
> *Sent:* Thursday, September 29, 2016 8:42 PM
> *Subject:* Re: [Iup-users] building zlib for im
>
>   No. This is something exclusive for Scintilla. I must set it only inside
> its config.mak and only when it is required. Thanks for the feedback.
>
> Best,
> Scuri
>
>
> On Thu, Sep 29, 2016 at 3:37 PM, Victor Bombi 
> wrote:
>
>> I managed to set the flags with:
>>
>> export TEC_UNAME=dllw4
>> export DEFINES="LUA_BUILD_AS_DLL LUA_LIB"
>> export MINGW4=C:/mingw32-4.8.2-posix-dwarf
>> export FLAGS="-std=c++11 -fopenmp"
>> make
>>
>> the flag -std=c++11 was present in all lines as:
>>
>> Tecmake: compiling iupwin_list.c ...
>> C:/mingw32-4.8.2-posix-dwarf/bin/gcc -c -std=c++11 -fopenmp -Wall -O2
>> -I../include -I. -Iwin -I../et
>> c -IC:/mingw32-4.8.2-posix-dwarf/include  -DLUA_BUILD_AS_DLL -DLUA_LIB
>> -D_WIN32_WINNT=0x0501 -D_WIN3
>> 2_IE=0x600 -DWINVER=0x0501 -DNOTREEVIEW -DUNICODE -DIUP_DLL
>> -DTEC_UNAME=dllw4 -DTEC_SYSNAME=Win32 -D
>> TEC_LITTLEENDIAN -DTEC_32 -DWIN32 -DNDEBUG -o ../obj/dllw4/iupwin_list.o
>> win/iupwin_list.c
>> cc1.exe: warning: command line option '-std=c++11' is valid for
>> C++/ObjC++ but not for C [enabled by
>>  default]
>>
>> but as you can see below this flags are not active while compiling
>> scintilla
>> May be the flags are not propagated to all subprojects and this causes
>> the problem?
>>
>> - Original Message -
>> *From:* Victor Bombi 
>> *To:* IUP discussion list. 
>> *Sent:* Thursday, September 29, 2016 8:29 PM
>> *Subject:* Re: [Iup-users] building zlib for im
>>
>> this is my last error:
>>
>> Tecmake: Starting [ iup_scintilla:dllw4 ]
>>
>> Tecmake: compiling Document.cxx ...
>> C:/mingw32-4.8.2-posix-dwarf/bin/g++ -c  -Wall -O2 -I../include -I../src
>> -I. -I../src/win -Ilexlib -
>> Isrc -Iinclude -Iwin32 -Iwin -IC:/mingw32-

Re: [Iup-users] iup_scintilla compilation with c++11

2016-09-30 Thread Antonio Scuri
  Ok. Thanks for the feedback.

  I will release 3.20 next week, so I will try this.

Best,
Scuri


On Fri, Sep 30, 2016 at 11:21 AM, Victor Bombi 
wrote:

> Hi, Antonio
>
> The addition of -std=c++11 to config.mak in scintilla subproject solves
> compilation error (at least for mingw-w64)
> would be good to add in SVN
>
> Best
> victor
>
>
> 
> --
> ___
> 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] iupview building

2016-09-30 Thread Antonio Scuri
  It must be manually built. In "iup/src", type "make iupstub".

Best,
Scuri


On Fri, Sep 30, 2016 at 12:08 PM, Victor Bombi 
wrote:

> Hi, Antonio
>
> while building iupview I get this error
>
> Tecmake: linking iupview.exe ...
> C:/mingw32-4.8.2-posix-dwarf/bin/g++ -o ../bin/Win32/iupview.exe
> ../obj/iupview/Win32/iup_view.o ../
> obj/iupview/Win32/iup.res   -Wl,-subsystem,windows -L../lib/dllw4
> -L../../cd/lib/dllw4
>  -L../../im/li
> b/dllw4 -L../../freetype/lib/dllw4 -L../../zlib/lib/dllw4
> -LC:/mingw32-4.8.2-posix-dwarf/lib
>  -liupim
>  -liupimglib -liupcontrols -liupcd -liup -liupgl -liupstub -lcd -lim
> -lfreetype6
>  -lzlib1 -lglaux -lg
> lu32 -lopengl32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
> -ladvapi32
>  -lshell32 -luuid -lolea
> ut32 -lole32 -lcomctl32
> c:/mingw32-4.8.2-posix-dwarf/bin/../lib/gcc/i686-w64-
> mingw32/4.8.2/../../../../i686-w64-mingw32/bin/
> ld.exe: cannot find -liupstub
>
> I gues that iupstub should be built before but I dont know when...
>
> Best
> victor bombi
>
>
> 
> --
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] exes with mingw

2016-09-30 Thread Antonio Scuri
  Done and committed.Thanks for the feedback.

Best,
Scuri


On Fri, Sep 30, 2016 at 1:09 PM, Victor Bombi  wrote:

>
> Hi, Antonio
>
> Finally (I hope) ;-)
>
> In the same way that happened with lua5.1.exe setargv should be avoided in
> mingw builds of iuplua51.exe
>
> Tecmake: linking iuplua51.exe ...
> C:/mingw32-4.8.2-posix-dwarf/bin/g++ -o ../bin/Win32/Lua51/iuplua51.exe
> ../obj/iuplua51/Win32/Lua51/
> iup_lua.o ../obj/iuplua51/Win32/Lua51/iuplua5.res
> etargv.obj  -Wl,-subsystem,windows -L../lib/dllw4
> /Lua51 -L../../lua5.1/lib/dllw4 -L../lib/dllw4 -LC:/mingw32-4.8.2-posix-
> dwarf/lib
>  -liuplua51 -llua5.
> 1 -liup -liupstub -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
> -ladvapi32
>  -lshell32 -luuid -lol
> eaut32 -lole32 -lcomctl32
> g++.exe: error: setargv.obj: No such file or directory
> make[2]: *** [../bin/Win32/Lua51/iuplua51.exe] Error 1
> make[1]: *** [iuplua5] Error 2
> make: *** [iupconsole] Error 2
>
> Thanks for your attention
> victor bombi
>
>
> 
> --
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] iupweb

2016-09-30 Thread Antonio Scuri
  Fixed and committed to SVN.

Best,
Scuri


On Fri, Sep 30, 2016 at 12:38 PM, Victor Bombi 
wrote:

> Just a remainder that iupluaweb should be also disabled.
>
> - Original Message -
> From: "Victor Bombi" 
> To: "IUP discussion list." 
> Sent: Friday, September 30, 2016 4:45 PM
> Subject: [Iup-users] iupweb
>
>
> > Hi, Antonio
> >
> > iupweb cant be built with mingw because atlbase.h is not present
> > I have manually deleted in Makefile but perhaps would be better to have
> it
> > done in SVN
> >
> >
> >
> > Thanks
> > victor
> >
> >
> > 
> --
> > ___
> > 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
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] IUP 3.20

2016-10-01 Thread Antonio Scuri
Hi All,

   We just released IUP version 3.20.

   We would like to highlight some of the new features:

   - New: *IupExecuteWait *function.
   - New: *IupGLDrawText*, *IupGLDrawImage*, *IupGLDrawGetTextSize
*and *IupGLDrawGetImageInfo
   *functions for *IupGLSubCanvas*.
   - New: guide to create Shell Extension Handlers for thumbnails and
   previews in Windows.
   - New: BUTTON_CB, MOTION_CB and WHEEL_CB callback in *IupFileDlg *when
   the preview canvas is enabled.
   - New: DECORATION, DECORSIZE and DECOROFFSET attributes for
*IupBackgroundBox
   *and *IupGLBackgroundBox*.
   - New: *IupFlatFrame *custom container.
   - New: FRAMEBORDER attribute for *IupMatrix *to draw a border around the
   matrix visible area.

   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
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IupGetActionName ghost.

2016-10-24 Thread Antonio Scuri
  Maybe it is used in some macro in a .h?

  Or some modules need to be rebuilded?

Best,
Scuri


On Mon, Oct 24, 2016 at 2:24 AM, John Spikowski 
wrote:

> Antonio,
>
> I'm using the latest Mingw32 IUP library and I have no reference to
> `IupGetActionName' anywhere in my program. I can't seem to get by this
> error.
>
> John
>
> C:\sbgcc\source\extensions\pui>mingw32-make -B
> gcc -w -D_WIN32 -m32 -c -LC:\TDM-GCC-32\lib\IUP -IC:\TDM-GCC-
> 32\include\IUP -o ..\..\bin\mod\obj\pui\s_interface.o interface.c
> ar -r ..\..\bin\mod\lib\pui.a
> ..\..\bin\mod\obj\pui\s_interface.o  C:\TDM-GCC-32\lib\IUP\libiup.a
> C:\TDM-GCC-32\lib\IUP\libiupcontrols.a C:\TDM-GCC-32\lib\
> IUP\libiupcd.a C:\TDM-GCC-32\lib\IUP\libcd.a C:\TDM-GCC-
> 32\lib\IUP\libfreetype6.a
> gcc -Wno-write-strings -D_WIN32 -static-libgcc -pipe -shared -w -s -O2
> -m32 -LC:\TDM-GCC-32\lib\IUP -IC:\TDM-GCC-32\include\IUP -Wl,--add-
> stdcall-alias,--o
> utput-def,"..\..\bin\mod\dll\pui_imp.def",--out-
> implib,"..\..\bin\mod\dll\pui_imp.a" -o ..\..\bin\mod\dll\pui.dll
> ..\..\bin\mod\obj\pui\interface.o -liup -
> liupcontrols -liupcd -lcd -lfreetype6
> ..\..\bin\mod\obj\pui\interface.o:interface.c:(.text+0x2463): undefined
> reference to `IupGetActionName'
> ..\..\bin\mod\obj\pui\interface.o:interface.c:(.text+0x248d): undefined
> reference to `IupGetActionName'
> ..\..\bin\mod\obj\pui\interface.o:interface.c:(.text+0x24d3): undefined
> reference to `IupGetActionName'
> C:/TDM-GCC-
> 32/bin/../lib/gcc/mingw32/5.1.0/../../../../mingw32/bin/ld.exe:
> ..\..\bin\mod\obj\pui\interface.o: bad reloc address 0x20 in section
> `.data'
> collect2.exe: error: ld returned 1 exit status
> Makefile:11: recipe for target 'bin\mod\dll\pui.dll' failed
> mingw32-make: *** [bin\mod\dll\pui.dll] Error 1
>
> C:\sbgcc\source\extensions\pui>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Deprecated Functions

2016-10-24 Thread Antonio Scuri
  No, sorry.

  Each different callback listed in "iup_cbs.h" must be implemented in
Basic also. So how to associate that implementation with the IupSetCallback
in Basic, then you don't need a custom MainLoop. I think you already did
that using the if (strcmp).

  That can be improved with other strategies, but that's another story.

Best,
Scuri


On Sun, Oct 23, 2016 at 5:15 PM, John Spikowski 
wrote:

> Hi Antonio,
>
> It looks like the time has come and the old callback functions I was
> counting on have be deprecated. Is there a way I can still make this
> work?
>
> John
>
> << C interface >>
>
> besFUNCTION(PuiSetCallback)
>   Ihandle *ih;
>   const char *name;
>   char *class_name;
>
>   besARGUMENTS("pz")
> &ih, &name
>   besARGEND
>
>   class_name = IupGetClassName(ih);
>
>   if (strcmp(class_name, "dialog") == 0) {
> /*  IupSetCallback(ih, name, (Icallback)&WinEvent); */
> IupSetFunction(name, (Icallback)&WinEvent);
> IupSetAttribute(ih, name, name);
> }
>   else if (strcmp(class_name, "button") == 0) {
> /*  IupSetCallback(ih, name, (Icallback)&BtnEvent); */
> IupSetFunction(name, (Icallback)&BtnEvent);
> IupSetAttribute(ih, name, name);
> }
>   else if (strcmp(class_name, "list") == 0) {
> /*  IupSetCallback(ih, name, (Icallback)&ListEvent); */
> IupSetFunction(name, (Icallback)&ListEvent);
> IupSetAttribute(ih, name, name);
> }
>   else {
> /*  IupSetCallback(ih, name, (Icallback)&Event); */
> IupSetFunction(name, (Icallback)&Event);
> IupSetAttribute(ih, name, name);
> }
>
>   besRETURN_STRING(class_name);
> besEND
>
> << Script BASIC >>
>
> SUB MainLoop
> LOCAL this_event, aname
> ExitLoop = 0
> REPEAT
>   __LoopStepWait()
>   this_event = __GetEvent()
>   IF this_event <> undef THEN
> aname = ::GetActionName()
> IF this_event = event{this_event}{aname}[0] THEN
>   ICALL(event{this_event}{aname}[1])
> END IF
>   END IF
> UNTIL ExitLoop
> END SUB
>
> FUNCTION SetCallback(ih, aname, faddr)
>   event{ih}{aname}[0] = ih
>   event{ih}{aname}[1] = faddr
>   SetCallback = __SetCallback(ih, aname)
> END FUNCTION
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] About IUP and Plot

2016-10-26 Thread Antonio Scuri
  Hi,

  Actually we have 2 plot controls. The IupMglPlot and IupPlot.

  IupMglPlot is much richer in terms of 2D and 3D plots, because all the
work is done by MathGL. It is a great library, but have some constrains.
And it is quite complex internally. Plot sometimes is slow and lower
quality.

  In IupPlot we implemented our own plot system based in the code of PPlot
that was completely rewritten. It does not have fancy 3D graphics, just the
basic 2D plots. Slowly we are adding new plot modes each version. In
contrast text rendering quality is much better, and it is pretty fast even
when not using OpenGL, but an OpenGL mode is also available.

  For both the application uses the IUP interface of attributes and
callbacks. There is no need to know how to use MathGL, for instance.

  In 2010, we tried using PLPlot. But it was very complicated to do it in
these terms and we give up. Mainly because PLPlot was designed to be used
as the main library and the interface is a driver in a secondary context.
If you check the wxWidgets and Qt interfaces provided for PLPlot you will
see this structure.

  So It will be difficult for you to use it in IUP. If you do, please let
me know.

  If you are not going to use 3D plots, then I recommend using IupPlot.
Because it is something that we are always improving, and have much more
control. Right now PieChart is on the way...

Best Regards,
Antonio Scuri


On Tue, Oct 25, 2016 at 11:05 PM, .  wrote:

> Hi,
>I notice that there are IupMglPlot(MathGL) and IupPlot(PPlot) for
> plotting in IUP.
>The IupMglPlot demos in iuptest.exe are running slowly. How?
>
>How about getting PLplot(http://plplot.sourceforge.net/) into IUP?
>I'm trying to integrate them, but have no idea of this.
>Can you give me some hints? Thanks!
>
>Here are codes for demo:
>
> #include 
> #include 
> #include "iup.h"
>
> #include 
> #include 
> #include 
>
> #include "plConfig.h"
> #include "plplot.h"
>
> #define NSIZE101
>
> #pragma comment(lib, "iup.lib")
> #pragma comment(lib, "plplot.lib")
>
>
> void FrameTest(void)
> {
> Ihandle *dlg, *frame1, *frame2;
>
> frame1 = IupFrame
> (
> IupVbox
> (
> IupLabel("Label1"),
> IupSetAttributes(IupLabel("Label2"), "SIZE=70x"),
> IupLabel("Label3"),
> NULL
> )
> );
>
> frame2 = IupFrame
> (
> IupVbox
> (
> IupSetAttributes(IupLabel("Label4"), "EXPAND=HORIZONTAL"),
> IupLabel("Label5"),
> IupLabel("Label6"),
> NULL
> )
> );
>
> IupSetAttribute(frame1, "TITLE", "Title Text");
> IupSetAttribute(frame1, "MARGIN", "0x0");
>
> IupSetAttribute(frame2, "MARGIN", "0x0");
> dlg = IupDialog(IupHbox(frame1, frame2, NULL));
>
> IupSetAttribute(dlg, "TITLE", "IupFrame Test");
> IupSetAttribute(dlg, "MARGIN", "10x10");
> IupSetAttribute(dlg, "GAP", "5");
> IupSetAttribute(dlg, "FONTSIZE", "14");
>
> IupShow(dlg);
> }
>
> int main(int argc, char* argv[])
> {
> PLFLT x[NSIZE], y[NSIZE];
> PLFLT xmin = 0., xmax = 1., ymin = 0., ymax = 100.;
> int   i;
>
> // Prepare data to be plotted.
> for (i = 0; i < NSIZE; i++)
> {
> x[i] = (PLFLT)(i) / (PLFLT)(NSIZE - 1);
> y[i] = ymax * x[i] * x[i];
> }
>
> plsdev("");  // ???
>
> // Initialize plplot
> plinit();
> // Create a labelled box to hold the plot.
> plenv(xmin, xmax, ymin, ymax, 0, 0);
> pllab("x", "y=100 x#u2#d", "Simple PLplot demo of a 2D line plot");
> // Plot the data that was prepared above.
> plline(NSIZE, x, y);
> // Close PLplot library
> plend();
>
> IupOpen(&argc, &argv);
> FrameTest();
> IupMainLoop();
> IupClose();
> return EXIT_SUCCESS;
> }
>
>
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP plot axis labes

2016-11-04 Thread Antonio Scuri
  Yes, the default value was incorrect. Thanks for reporting.

Best,
Scuri


On Fri, Nov 4, 2016 at 4:43 PM, Milind Gupta  wrote:

> Found the MARGIN* Attributes. Only thing now is that the labels are not
> centered by default but the documentation it should be centered by default
> in the AXS_XLABELCENTERED attribute.
>
> On Fri, Nov 4, 2016 at 11:26 AM, Milind Gupta 
> wrote:
>
>> Hi,
>>   I am having a problem with the axis labels showing properly. I am
>> using IUP 3.20.
>>
>> - The label is not centered by default
>> - The x label is partially outside the dialog boundary in which I put the
>> plot control
>> - The y label is totally outside the dialog boundary
>>
>> Putting the plot in a hbox also did not help. The plot is the only object
>> in the dialog. How can I make the labels better visible?
>>
>> Thanks,
>> Milind
>>
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Problem with binding on Windows

2016-11-08 Thread Antonio Scuri
  Hi,

  Assuming that inside those scripts you are including -liup on the command
line, it can be a compatibility problem between the mingw I build IUP with
the mingw you are using.

  Mine is MinGW-W64-builds-4.2.0

Best,
Scuri


On Tue, Nov 8, 2016 at 8:59 PM, Germán Arias  wrote:

> Hi,
>
> My project eiffel-iup [1] is a binding to use IUP from LibertyEiffel
> (The GNU implementation of Eiffel language). I'm testing it on Windows
> 10, but I have a problem (It works perfectly on GNU/Linux systems). IUP
> works without problem, I can compile and run simple examples written in
> C. But with my binding I get this error when compile:
>
> bad reloc address 0x0 in section `.data'
>
> See attached screen shot. Not sure if this is the correct place to ask
> this. But any advice to solve this problem?
>
> Thanks
> Germán
>
> [1] https://notabug.org/GermanGT/eiffel-iup
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Questions about IupCells

2016-11-14 Thread Antonio Scuri
  Yes, that was a copy&paste error. Just fixed and committed to SVN. The
callback is equivalent to BUTTON_CB with two extra parameters.

  In this case the LIMITSL:C attribute can be set using IupSetAttributeId2.

Best,
Scuri


On Mon, Nov 14, 2016 at 4:42 AM, Germán Arias  wrote:

> Hi,
>
> The documentation of MOUSECLICK_CB at IupCells say (at website):
>
> "called when a color is selected. The primary color is
>   selected with the left mouse button, and if existent the secondary is
>   selected with the right mouse button."
>
> I suppose this is wrong, right?
>
> Other question. The section "utility functions" (also IupCells) show
> functions to change the alignment and BCCOLOR of a cell. Is this
> correct? As far as I understand this is a canvas where you can draw,
> not controls where you can set directly colors, alignment, values, etc
> (as for example IupMatrix). Also, there isn't an example about this.
>
> Regards
> Germán
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> 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] Questions about IupCells

2016-11-14 Thread Antonio Scuri
  There are 3 examples in the /iup/html/examples/C folder (also reachable
using the website).

Best,
Scuri


On Mon, Nov 14, 2016 at 5:22 PM, Antonio Scuri 
wrote:

>   Yes, that was a copy&paste error. Just fixed and committed to SVN. The
> callback is equivalent to BUTTON_CB with two extra parameters.
>
>   In this case the LIMITSL:C attribute can be set using IupSetAttributeId2.
>
> Best,
> Scuri
>
>
> On Mon, Nov 14, 2016 at 4:42 AM, Germán Arias  wrote:
>
>> Hi,
>>
>> The documentation of MOUSECLICK_CB at IupCells say (at website):
>>
>> "called when a color is selected. The primary color is
>>   selected with the left mouse button, and if existent the secondary is
>>   selected with the right mouse button."
>>
>> I suppose this is wrong, right?
>>
>> Other question. The section "utility functions" (also IupCells) show
>> functions to change the alignment and BCCOLOR of a cell. Is this
>> correct? As far as I understand this is a canvas where you can draw,
>> not controls where you can set directly colors, alignment, values, etc
>> (as for example IupMatrix). Also, there isn't an example about this.
>>
>> Regards
>> Germán
>>
>>
>> 
>> --
>> Developer Access Program for Intel Xeon Phi Processors
>> Access to Intel Xeon Phi processor-based developer platforms.
>> With one year of Intel Parallel Studio XE.
>> Training and support from Colfax.
>> Order your platform today. http://sdm.link/xeonphi
>> ___
>> 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] minimize dialog when loosing focus

2016-11-28 Thread Antonio Scuri
  Hi,

 The KILLFOCUS_CB is problematic, because it will also be called when a
button inside that dialog gets the focus. Recently I committed to the SNV a
new callback called FOCUS_CB for the dialog that will be called when
another dialog (or its children) gets the focus. But it will work only if
another dialog on the same application gets the focus.

  In Windows I think that WM_ACTIVE can handle a situation like this. But
there is no equivalente in GTK.

Best,
Scuri

On Sun, Nov 27, 2016 at 10:05 PM, Ulrich Schmidt  wrote:

>
>
> Am 28.11.2016 um 00:36 schrieb Germán Arias:
> > Hi,
> >
> > El dom, 27-11-2016 a las 17:30 +0100, Ulrich Schmidt escribió:
> >> Hi.
> >> I use a iup.dialog as main window on Windows. All working well so
> >> far.
> >> It is a kind of window popping up when some event occurs. I want to
> >> minimize
> >> this window when the user activates a different window/program and my
> >> dialog
> >> is no longer the topmost window.
> >> Any suggestions?
> >>
> >> TIA.
> >> Ulrich.
> >
> >
> > Try with the common callback KILLFOCUS_CB:
> >
> > http://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_killfocus_cb.html
> >
> > Germán
> >
> Hi Germán.
>
> I have read this before. Its about keyboard focus. I don't change keyboard
> focus, lets say, from bytton1 in my dialog to button2 in my dialog. I want
> to
> activate a different window (eg. my email app or my text editor) and this
> window becomes topmost and hides my dialog from being seen.
> The background for my question is, i placed a icon in the tray. Clicking
> this
> icon opens or hides my dialog. In case my dialog is state normal and
> covered
> by a different app window, the 1st click on my tray icon minimizes/hides my
> dialog but bring it topmost visible and i need a second click.
> I found a different solution: I set 'topmost = "yes"' for my dialog and so
> my
> dialog can't be covered by a different window and clicking my tray icon
> works
> like expected.
>
> Thanks.
> Ulrich.
>
> 
> --
> ___
> 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] Event action name

2016-11-29 Thread Antonio Scuri
  No, there isn't.

Best,
Scuri


On Tue, Nov 29, 2016 at 7:08 PM, John Spikowski 
wrote:

> Antonio,
>
> Now that IupGetActionName() has been deprecated, is there anyway to get
> the action name of the current event from the callback?
>
> John
>
> 
> --
> ___
> 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] Event action name

2016-11-29 Thread Antonio Scuri
  Because it was fake. It only worked in some conditions.

Best,
Scuri


On Tue, Nov 29, 2016 at 8:15 PM, John Spikowski 
wrote:

> Why would such an important function for callback event processing be
> omitted and leave nothing in its wake?
>
> [image: :-!]
>
>
> On Tue, 2016-11-29 at 20:00 -0200, Antonio Scuri wrote:
>
>   No, there isn't.
>
> Best,
> Scuri
>
>
> On Tue, Nov 29, 2016 at 7:08 PM, John Spikowski 
> wrote:
>
> Antonio,
>
> Now that IupGetActionName() has been deprecated, is there anyway to get
> the action name of the current event from the callback?
>
> John
>
> 
> --
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
> --
>
> ___
> Iup-users mailing 
> listIup-users@lists.sourceforge.nethttps://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] Event action name

2016-11-30 Thread Antonio Scuri
  To an event, no. To an element you can set any custom attributes.

  John,  I think you should rethink the callbacks in Script Basic. Let's
talk again about the possibilities.

  I think that in basic the user could call a custom function
IupSetCallback (not the original) that receives a function in basic. Can we
retrieve a reference to that function in C? So we can store it and call it
later.

Best,
Scuri

Em 30/11/2016 01:59, "John Spikowski"  escreveu:

> Is there a way to add a 'user data tag' to an event?
>
> At this point without knowing what action fired the event, I'm only able
> to assign one 'action' callback per control.
>
> On Tue, 2016-11-29 at 20:21 -0200, Antonio Scuri wrote:
>
>   Because it was fake. It only worked in some conditions.
>
> Best,
> Scuri
>
>
> On Tue, Nov 29, 2016 at 8:15 PM, John Spikowski 
> wrote:
>
> Why would such an important function for callback event processing be
> omitted and leave nothing in its wake?
>
> [image: :-!]
>
>
> On Tue, 2016-11-29 at 20:00 -0200, Antonio Scuri wrote:
>
>   No, there isn't.
>
> Best,
> Scuri
>
>
> On Tue, Nov 29, 2016 at 7:08 PM, John Spikowski 
> wrote:
>
> Antonio,
>
> Now that IupGetActionName() has been deprecated, is there anyway to get
> the action name of the current event from the callback?
>
> John
>
> 
> --
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
> --
>
> ___
> Iup-users mailing 
> listIup-users@lists.sourceforge.nethttps://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 
> listIup-users@lists.sourceforge.nethttps://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] how to disable iup's own error reporting dialog

2016-12-01 Thread Antonio Scuri
On Thu, Dec 1, 2016 at 3:43 PM, Ulrich Schmidt  wrote:

> Hi.
>
> I compiled a minimal compact iuplua module on windows. It works well but it
> has its own error dialog popping up on runtime errors. I want to disable
> this
> dialog, so errors fall thru down to native lua.
>
> Question: How can i disable this iup dialog? Is it possible from my lua
> code
> or do i need to recompile iuplua?
>
> TIA
> Ulrich.
>
> 
> --
> ___
> 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] how to disable iup's own error reporting dialog

2016-12-01 Thread Antonio Scuri
  Hi,

  Simply overwrite the "iup._ERRORMESSAGE(msg)" function. Can be:

iup._ERRORMESSAGE = print

Best,
Scuri


On Thu, Dec 1, 2016 at 5:11 PM, Antonio Scuri 
wrote:

>
>
> On Thu, Dec 1, 2016 at 3:43 PM, Ulrich Schmidt  wrote:
>
>> Hi.
>>
>> I compiled a minimal compact iuplua module on windows. It works well but
>> it
>> has its own error dialog popping up on runtime errors. I want to disable
>> this
>> dialog, so errors fall thru down to native lua.
>>
>> Question: How can i disable this iup dialog? Is it possible from my lua
>> code
>> or do i need to recompile iuplua?
>>
>> TIA
>> Ulrich.
>>
>> 
>> --
>> ___
>> 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] a few thoughts about iup documentation

2016-12-02 Thread Antonio Scuri
  Hi,

  Thanks.

  I use the documentation offline here, and it works fine. There is nothing
in the documentation that depends on the web, except the SourceForge Logo.
The navigation tree is not dependent on the internet.

  The Lua solution works because they actually maintain the documentation
to a minimum. We have a lot more to display, I don't think that we can use
theirs solution.

  On the other hand we provide other offline solutions. The same
documentation is available in CHM and PDF formats. In both cases the
documentation is indexed by the same navigation tree.

Best Regards,
Antonio Scuri




On Fri, Dec 2, 2016 at 5:05 AM, Ulrich Schmidt  wrote:

> Hi all.
>
> I allmost finished my 1st private program using iup in lua.
> Compared to wxwidgets the compiled program is much smaller, The learning
> curve seems to be much steeper caused also from the fact, the documentation
> is well organized and the content is a great help.
>
> But some wishes related to the documentation but the code itself, remain:
>
> - I want to read the html documentation offline. Each time i open
>   iuplua/html/index.html, my web-browser do not display sub items in the
> tree
>   on the left side, caused by the fact i disabled active content for
> file://
>   adresses. After temporary activating scripts, the iup doc try to fetch
>   something from the internet and delays display. This may be a security
>   risk, not by iup documentation itself but caused by the fact that all
>   browser tabs are now free to execute local scripts.
>   I would like to see:
>   - No try to fetch something from the web.
>   - no active content needed.
>   I like the solution, the lua team found - using a index page with all the
>   keywords. I would like to see a "no-frames" solution.
>
> Keep up the great work.
>
> Ulrich.
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Event action name

2016-12-02 Thread Antonio Scuri
  I see. The idea is the same but more object oriented. Instead of globally
handle all the events, store the event in the IUP object itselft. Then
in WinEvent for instance directly call the function address like
"ICALL(event{this_event}[1])". Then there will no need for a custom event
loop. Isn't there a way to call a basic function from C code?

Best,
Scuri
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] a few thoughts about iup documentation

2016-12-02 Thread Antonio Scuri
  Ok. I'll check the links on the PDF. The tree links are working but the
internal document links are not.

Best,
Scuri


On Fri, Dec 2, 2016 at 11:20 AM, Ulrich Schmidt  wrote:

> Hi Antonio.
>
> Am 02.12.2016 um 14:07 schrieb Antonio Scuri:
> >   I use the documentation offline here, and it works fine. There is
> nothing in
> > the documentation that depends on the web, except the SourceForge Logo.
> Then the loading of the Logo needs a few seconds on my computer
>
> > The navigation tree is not dependent on the internet.
> True. But needs scripting activated for local sources.
>
> >   The Lua solution works because they actually maintain the
> documentation to a
> > minimum. We have a lot more to display, I don't think that we can use
> theirs
> > solution.
> >
> >   On the other hand we provide other offline solutions. The same
> documentation
> > is available in CHM and PDF formats. In both cases the documentation is
> > indexed by the same navigation tree.
> I tested the PDF because i would prefer it. But allmost all links are
> broken.
> e.g: Dialogs/IupDialog: CURSOR, EXPAND and so on, all blue undelined links
> fail. Result: I cant navigate.
>
> > Best Regards,
> > Antonio Scuri
>
> Ulrich.
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] minimize dialog when loosing focus

2016-12-02 Thread Antonio Scuri
  Milind,

  The new dialog FOCUS_CB (available in SVN only) will simplify that a lot.
It is specially useful for creating non modal dialogs with IupShow that
when loses its focus can be automatically closed.

Best,
Scuri


On Fri, Dec 2, 2016 at 4:49 PM, Milind Gupta  wrote:

> Hi Ulrich,
>   I wrote a module to adapt any dialog to close if it lost focus.
> You can probably change the closing action to minimize action. The way I am
> doing it is by creating a timer and checking whether any of the controls in
> the dialog has focus. If none of them have it then the dialog is not in
> focus anymore and I close it. I have pasted it below for your reference if
> that helps.
>
> Regards,
> Milind
>
> -
>
> --h* iupcFocusDialog
> -- ! Module
> -- Module that provides functionality to present any dialog as a temporary
> item which disappears when it looses focus
> -- ! Creation Date
> -- 9/6/2015
> --@@END@@
>
> local iup = iup or require("iuplua")
> local tostring = tostring
> local type = type
> local tonumber = tonumber
>
> local print = print
>
> -- Create the module table here
> local M = {}
> package.loaded[...] = M
> _ENV = M -- Lua 5.2+
>
> _VERSION = "1.15.9.7"
>
> -- dialog is the handle for the dialog
> -- xmy are the screen coordinates relative to shich the dialog has to be
> displayed
> function popup(dlg,x,y)
> if not x or type(x) ~= "number" then
> x = iup.CENTER
> end
> if not y or type(y) ~= "number" then
> y = iup.CENTER
> end
> -- Create list of controls in the dialog
> local controls = {tostring(dlg)}
> local done
> local currControl = dlg
> while not done do
> if not iup.GetChild(currControl,0) then
> -- Check the sibling
> if not iup.GetBrother(currControl) then
> -- Go back up the hierarchy
> done = true
> while iup.GetParent(currControl) do
> currControl = iup.GetParent(currControl)
> if iup.GetBrother(currControl) then
> currControl = iup.GetBrother(currControl)
> controls[#controls + 1] = tostring(currControl)
> done = nil
> break
> end
> end
> else
> -- There is a brother
> currControl = iup.GetBrother(currControl)
> controls[#controls + 1] = tostring(currControl)
> end
> else
> -- This has a child
> currControl = iup.GetChild(currControl,0)
> controls[#controls + 1] = tostring(currControl)
> end
> end
> for i = 1,#controls do
> print(controls[i])
> end
> -- Timer to check if any of the elements have focus
> local tim = iup.timer{time=10,run="NO"}
> function tim:action_cb()
> tim.run = "NO"
> --print("timer")
> --[[
> if dlg.visible == "NO" then
> tim:destroy()
> return
> end
> ]]
> local fc = tostring(iup.GetFocus())
> --print(fc)
> -- Check if it matches any of the controls
> local match
> for i = 1,#controls do
> if controls[i] == fc then
> match = true
> break
> end
> end
> if not match then
> --print("lost focus")
> dlg:hide()
> tim:destroy()
> else
> tim.run = "YES"
> end
> --tim.run = "YES"
> end
> -- Show the dialog appropriately
> local w,h = iup.GetGlobal("FULLSIZE"):match("(.-)x(.+)")
> w,h = tonumber(w),tonumber(h)
> dlg:map()
> local dw,dh = dlg.rastersize:match("(.-)x(.+)")
> dw,dh = tonumber(dw),tonumber(dh)
> if y+dh >= h then
> y = y-dh
> end
> if x+dw >= w then
> x = x-dw
> end
> dlg:showxy(x,y)
> tim.run = "YES"
> end
>
>
>
> On Mon, Nov 28, 2016 at 7:06 AM, Antonio Scuri 
> wrote:
>
>>   Hi,
>>
>>  The KILLFOCUS_CB is problematic, because it will also be called when a
>> button inside that dialog gets the focus. Recently I committed to the SNV a
>> new callback called FOCUS_CB for the dialog that will be called when
>> another dialog (or its children) gets the focus. But it will work only if
>> another dialog on the same application gets the focus.
>>
>>   In Windows I think that WM_ACTIVE can handle a situation like this. But
>> there is no equivalente in GTK.
>>
>> Best,
>> Scuri
>>
>> On Sun, Nov 27, 2016 at 10:05 PM, Ulrich Schmidt  wrote:
>>
>>>
>>>
>>> Am 28.11.2016 um 00:36 schrieb Germán Arias:
>>> > Hi,
>>> >
>>> > El dom, 27-11-2016 a las 17:30 +0100, Ulrich Schmidt escribió:
>>> >> Hi.
>>> >> I use a iup.dialog as main window on Windows. All working well so
>>> >> far.
>>> >> It is a kind of window popping up when some event occurs.

Re: [Iup-users] Event action name

2016-12-02 Thread Antonio Scuri
  Ok. I think near future is promising... :)

Best,
Scuri


On Fri, Dec 2, 2016 at 5:08 PM, John Spikowski 
wrote:

> "Isn't there a way to call a basic function from C code?"
>
> Yes. This Script BASIC SBT extension module should show you how it is done
> and how I plan to do callbacks in the near future. Charles (OxygenBasic
> author) wrote a FFI extension module  for Script BASIC that allows IUP to
> run in a thread. (Windows only) What it does is give me a map of how I can
> get there in C.
>
> http://www.scriptbasic.org/forum/index.php/topic,335.0.html
>
> I'm trying to do a PoC for a client getting by on what I already have
> until the deprecation happen and I'm scrambling for a quick fix.
>
>
> On Fri, 2016-12-02 at 11:32 -0200, Antonio Scuri wrote:
>
>   I see. The idea is the same but more object oriented. Instead of
> globally handle all the events, store the event in the IUP object itselft.
> Then in WinEvent for instance directly call the function address like
> "ICALL(event{this_event}[1])". Then there will no need for a custom event
> loop. Isn't there a way to call a basic function from C code?
>
> Best,
> Scuri
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
> ___
> Iup-users mailing 
> listIup-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/iup-users
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] two windows build related questions

2016-12-07 Thread Antonio Scuri
Hi,

1) no, there is no better solution. When using DLLs the application simply
does not need to link with "iupstub.lib".

2) what do you mean by "attached resources"? Resources in the .RC file
linked into the executable? Or a resource file as an external file like a
.png or .jpg in a separate file?

  In the first case, simply use the same when associating the atribute, for
instance if your resource declaration in the RC file is "MYIMAGE1" then
simply do iup.label{image = "MYIMAGE1"}

  In the second case you can use the IM library to load a file, for
instance iup.label{image = iup.LoadImage(app_folder.."MYIMAGE1.PNG")}

Best,
Scuri


On Wed, Dec 7, 2016 at 5:12 AM, Ulrich Schmidt  wrote:

> Hi all.
>
> Finally i got a minimal iuplua sucessfully compiles as dll and/or static
> lib.
> Caused by the fact, i am using my own WinMain() function, i had to disable
> iup's one. I found no DEFINE to disable iup's WinMain() and so I copied
> "win/iupwindows_main.c" to "win/iupwindows_nomain.c" and removed the
> WinMain()
> stuff. But I don't like to hack original iup files and so the questions
> remains: Is there a better solution to deal with?
>
> Second question: I found no examples how to load (eg: images/icons) from
> attached ressourses. Are there any lua example codes available?
>
> TIA.
>
> Ulrich Schmidt.
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/xeonphi
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] two windows build related questions

2016-12-08 Thread Antonio Scuri
  You can write the string directly on the RC, just like the numbers. For
instance:

24_ABORT BITMAP "24_abort.png"

  There is no need for defines.

  If you don't want to change that, then maybe using iup.label{image =
"1"} could
work.

Best,
Scuri



On Thu, Dec 8, 2016 at 1:13 PM, Ulrich Schmidt  wrote:

> Hi Antonio.
>
> Am 07.12.2016 um 19:31 schrieb Antonio Scuri:
> > 2) what do you mean by "attached resources"? Resources in the .RC file
> linked
> > into the executable?
>
> Yes
>
> >   In the first case, simply use the same when associating the atribute,
> for
> > instance if your resource declaration in the RC file is "MYIMAGE1" then
> simply
> > do iup.label{image = "MYIMAGE1"}
>
> Probably my situation is a little more difficult (see: [1] for a older
> version):
> To create a statically linked executable, i have precompiled lua runtime
> and
> precompiled lua modules ready. I compile a WinMain.c, that preloads all lua
> modules to link statically. Finally i link the custom WinMain() + lua-libs
> +
> resources.
> This way, iup has no way to access descriptive resource labels. The
> question
> is: Can I load the resources addressed by resource-id too?
>
> this is my .rc file:
> --8<
>
> 0 ICON   "bubble.ico"
> 1 BITMAP "24_abort.png"
> 2 BITMAP "24_check.png"
> 3 BITMAP "24_clock.png"
> 4 BITMAP "24_new.png"
> 5 BITMAP "24_save.png"
> 6 BITMAP "24_send.png"
>
> --8<
>
> [19: https://github.com/Fuzzlix/omm/tree/master/luaRUN
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/xeonphi
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Android IUP implementation question/problem for IupDialog

2016-12-13 Thread Antonio Scuri
  Hi,

  First I need to understand a little bit more about how Android does
things. We can then adapt the IUP structure so it will be able to suit your
needs.

  So after you create the native element, you tell me that you have to wait
for an event when the element is actually created. In between can you set
any properties on that element?

  I mean, what's the point in creating the element but it is not actually
created at that time? What you can do after that and before the event?

  Can you send me a simple example in C for an Android application? So I
can see how this creation process takes place.

Best,
Scuri


On Tue, Dec 13, 2016 at 8:00 AM, Eric Wing  wrote:

> Hi, I'm trying to prototype an Iup implementation for Android. I have
> implemented a basic Dialog and Button to try to get things going. But
> I realized there is a design problem that is blocking me...
>
> I am making IupDialog correspond to an Android Activity. By itself,
> this seems to work. However, the moment I try to add a widget to it
> (e.g. button), I realized there is a problem.
>
> When I create a new Android Activity, I do not get back an object
> immediately. I have to wait for the system to create the Activity some
> time later after this procedure returns. So in the Iup Dialog map
> function callback, I can create a new activity, but I cannot yet set
> the Ihandle->handle to anything yet.
>
> Meanwhile, I expect the Button map function callback to be invoked,
> but it appears that IUP's internals are skipping this because my
> ih->handle for the parent is still NULL.
>
> It appears that I need a way for IUP to defer its processing for
> IupShowDialog/IupMap until after I notify it that I got the OS event
> for the Activity creation, or I need a way to force re-run all the
> processing once I do get the OS event for the Activity creation.
>
> Can you give me some suggestions on how to deal with this?
>
>
> Thanks,
> Eric
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Android IUP implementation question/problem for IupDialog

2016-12-14 Thread Antonio Scuri
  Why build a simple interface if we can make it complicated for everyone...

  Ok. Keep us posted. Nice to know that it is working.

Best,
Scuri


On Tue, Dec 13, 2016 at 10:37 PM, Ranier VF  wrote:

> Hi Eric,
> I am happy to know, you have better way.
> I had no idea of the problems with "native activity"
>
> Best regards,
>
> Ranier Vilela
> 
> De: Eric Wing 
> Enviado: terça-feira, 13 de dezembro de 2016 20:58
> Para: IUP discussion list.
> Assunto: Re: [Iup-users] Android IUP implementation question/problem for
>   IupDialog
>
> On 12/13/16, Ranier VF  wrote:
> > Eric, I believe that is you need (lifecycles events).
> >
> > http://www.ikerhurtado.com/android-ndk-native-activity-
> app-glue-lib-lifecycle-threads
> > "Commands (lifecycle events) from Main (UI) thread"
> >
> > Best regards,
> > Ranier Vilela
> >
>
> Thanks Ranier for the thought, but no, I am deliberately not doing
> this. I've been down this path before multiple times and it always
> ends in tears. The so called "Native Activity" is a misnomer (false
> advertising) and it is half-baked. I have swapped notes with other
> experienced Android developers in this realm trying to push hard on
> actual native GUI applications and we all came to the same conclusion
> that "Native Activity" should be disregarded.
>
> There are tons of problems with it, but ultimately, the biggest
> problem is that Native Activity runs on a background thread. This
> basically makes your code a second class citizen on the platform and
> makes it extremely hard to do anything because you are constantly
> worrying about threading issues and locking issues because every
> native API provided by the system is not accessible on your thread.
> You can't just do a simple direct call to anything which makes it many
> times harder to implement anything. There are also performance
> problems and this became an issue for me on a prior project. I was
> involved with another big cross-platform project that did stuff on a
> background thread. Their designers thought this was a good thing, but
> they never talked to a game engine person such as my self and didn't
> understand things like latency and determinism (and other things like
> the costs of context switching). Basically their APIs worked in one of
> two ways...either async so I got the result back some time later,
> usually way too late for my 16 ms window for a game or there was a
> massive thread sync point that brought everything to halt for a simple
> little function (which add up).
>
> The design I'm pursuing for IUP is truly native Android UI on the
> main/UI thread. This will keep IUP programs as a first class citizen
> and make it easier to both develop for and integrate more advanced
> widgets in the future.
>
> Thanks,
> Eric
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] iOS IUP initial implementation

2016-12-23 Thread Antonio Scuri
 Thanks for sharing.

Best,
Scuri


On Fri, Dec 23, 2016 at 11:26 AM, Eric Wing  wrote:

> Hi all,
> Here is the iOS counterpart to the Android prototype I just did.
>
> https://github.com/ewmailing/IupCocoaTouch
> Switch to CocoaTouch branch
>
> I will say more about both of these when I get the chance.
>
> Thanks,
> Eric
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IupGridBox

2016-12-23 Thread Antonio Scuri
  Hi,

  There is a small error at the label creation:

Ihandle *lbl1 = IupLabel("Label_1", NULL);
Ihandle *lbl2 = IupLabel("Label_2", NULL);

  Should be:

Ihandle *lbl1 = IupLabel("Label_1");
Ihandle *lbl2 = IupLabel("Label_2");

  The result is something like:

[image: Inline image 1]

  It needs a little bit more alignment and gap to improve the visual
result, but it is correct.

Best,
Scuri


On Thu, Dec 22, 2016 at 10:34 PM, Andrew Robinson 
wrote:

> The following code snippet doesn't work:
>
> lbl1 = IupLabel("Label_1",NULL);
> btn1 = IupButton("Btn1",NULL);
> lbl2 = IupLabel("Label_2",NULL);
> btn2 = IupButton("Btn2",NULL);
> gbox = IupGridBox(lbl1,btn1,lbl2,btn2,NULL);
> IupSetAttribute(gbox,"ORIENTATION","HORIZONTAL");
> IupSetAttribute(gbox,"NUMDIV","2");
>
> If I use IupGridBox with IupVbox or IupHbox, everything works as expected.
> What is missing from the instructions that I am not doing with IupGridBox?
>
> I am using Win7 64-bit with 64-bit version of IUP, version 3.20.
>
> Thanks,
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IupGridBox

2016-12-23 Thread Antonio Scuri
  Notice that "IupSetAttribute*s"* actually returns the same Ihandle* that
receives. It is different from "IupSetAttribute". So you can get control if
needed.

  I changed the gridbox.c sample to include your code. It is attached.

  This is the resul:

[image: Inline image 1]

Best,
Scuri


On Fri, Dec 23, 2016 at 7:00 PM, Andrew Robinson 
wrote:

> Thanks for a very quick response.
>
> I find that I whether I have NULL or not for the second parameter of
> IupLabel, makes no difference to the output. For 64-bit programs passing
> two parameters, all that NULL would do is set RDX to zero, which generally
> has no effect on programs. But is that all you found wrong with my
> "snippet"? I mean when I compile my program, nothing gets drawn on the
> client window -- it is completely blank. I get no errors and nothing
> crashes, yet if I replace "IupGridBox" with IupVbox or IupHbox (and comment
> out the IupSetAttributes), it works as expected. Something has to be
> missing.
>
> I wish I had a working example of a program and its code that uses
> IupGridBox. The example code given in the IUP documentation is a
> little...unorthodox. The example IUP gives uses IupSetAttribute to create
> all the controls, which is cumbersome and doesn't provide much control over
> the manipulation of the controls (such as adding callbacks) since
> IupSetAttribute doesn't return any handles. Do you have anything like that?
>
> Best regards,
>
> On 12/23/2016 at 12:12 PM, Antonio Scuri  wrote:
>
>   Hi,
>
>   There is a small error at the label creation:
>
> Ihandle *lbl1 = IupLabel("Label_1", NULL);
> Ihandle *lbl2 = IupLabel("Label_2", NULL);
>
>   Should be:
>
> Ihandle *lbl1 = IupLabel("Label_1");
> Ihandle *lbl2 = IupLabel("Label_2");
>
>   The result is something like:
>
> [image: Inline image 1]
>
>   It needs a little bit more alignment and gap to improve the visual
> result, but it is correct.
>
> Best,
> Scuri
>
>
> On Thu, Dec 22, 2016 at 10:34 PM, Andrew Robinson 
> wrote:
>
>> The following code snippet doesn't work:
>>
>> lbl1 = IupLabel("Label_1",NULL);
>> btn1 = IupButton("Btn1",NULL);
>> lbl2 = IupLabel("Label_2",NULL);
>> btn2 = IupButton("Btn2",NULL);
>> gbox = IupGridBox(lbl1,btn1,lbl2,btn2,NULL);
>> IupSetAttribute(gbox,"ORIENTATION","HORIZONTAL");
>> IupSetAttribute(gbox,"NUMDIV","2");
>>
>> If I use IupGridBox with IupVbox or IupHbox, everything works as
>> expected. What is missing from the instructions that I am not doing with
>> IupGridBox?
>>
>> I am using Win7 64-bit with 64-bit version of IUP, version 3.20.
>>
>> Thanks,
>>
>> 
>> --
>> Developer Access Program for Intel Xeon Phi Processors
>> Access to Intel Xeon Phi processor-based developer platforms.
>> With one year of Intel Parallel Studio XE.
>> Training and support from Colfax.
>> Order your platform today.http://sdm.link/intel
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
#include 
#include 
#include 

void GridBoxTest(void)
{
  Ihandle *dlg;
  Ihandle *gbox;

  Ihandle* lbl1 = IupSetAttributes(IupLabel("Label_1"), "FONTSTYLE=Bold");
  Ihandle* btn1 = IupButton("Btn1", NULL);
  Ihandle* lbl2 = IupLabel("Label_2");
  Ihandle* btn2 = IupButton("Btn2", NULL);
  gbox = IupGridBox(lbl1, btn1, lbl2, btn2, NULL);
  IupSetAttribute(gbox, "ORIENTATION", "HORIZONTAL");
  IupSetAttribute(gbox, "NUMDIV", "2");

  dlg = IupDialog
  (
IupHbox
(
  gbox,
  NULL
)
  );

  IupSetAttribute(dlg, "TITLE", "IupGridBox Test");
  IupSetAttribute(dlg, "MARGIN", "10x10");
//  IupSetAttribute(gbox, "MARGIN", "0x0");   /* avoid attribute propagation */

 

Re: [Iup-users] IupGridBox

2016-12-24 Thread Antonio Scuri
1) None, It was just a reuse of the code. Sometimes I like to control
MARGIN in a box and not in another.

2) It is the same as in "IupGridBox" including the NULL terminator, just in
an array.

Best,
Scuri


On Sat, Dec 24, 2016 at 12:10 AM, Andrew Robinson 
wrote:

> Wow! You are fantastic! That helped but it turns out it was just a stupid,
> small typo on my part, and if I hadn't of looked at your code, it would
> have taken me forever to notice it in my code.
>
> Just a few questions that aren't important but am curious about:
>
> 1) What is your logic behind putting the gbox inside an hbox container? I
> left it off and it works just fine (just had to modify IupSetAttribute).
>
> 2) The input parameter to IupGridbox*v* is Ihandle **children, but
> nothing says what *children* will contain. I imagine it should be a
> pointer to an array of pointers, in which case the parameter should be
> listed as Ihandle *children.
>
> Muchas gracias,
>
> On 12/23/2016 at 4:27 PM, Antonio Scuri  wrote:
>
>   Notice that "IupSetAttribute*s"* actually returns the same Ihandle*
> that receives. It is different from "IupSetAttribute". So you can get
> control if needed.
>
>   I changed the gridbox.c sample to include your code. It is attached.
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] segfault using Lua iup.list dropdown on ubuntu 16.10

2016-12-26 Thread Antonio Scuri
  ok. I'll take a look and get back to you in a few days.

Best,
Scuri


On Mon, Dec 26, 2016 at 6:15 PM, reyalp  wrote:

> Hi,
>
> A user of an Lua IUP application I maintain (chdkptp) reported crashes
> on several recent Linux distros, including ubuntu 16.10, Fedora 25 and
> Manjaro.
>
> The crash appears to be triggered when a iup.list with dropdown set is
> mapped, and can be reproduced using just the list.lua example included
> with IUP.
>
> This happens on ubuntu 16.10, and not on 16.04 (both x64, default
> installs with unity desktop). I used the pre-built libraries from
> sourceforge, but the user reported IUP built from source on the
> affected distros has the same problem.
>
> I reproduced the crash with the following:
>
> Download iup-3.20-Lua52_Linux44_64_bin.tar.gz
>
> Download http://webserver2.tecgraf.puc-rio.br/iup/examples/Lua/list.lua
>
> Run
> LD_LIBRARY_PATH=`pwd` ./lua52 list.lua
>
> If the definition of list_dropdown is commented out, or list_dropdown
> is not included in frm_prize it does not crash.
>
> The crash gives a stack trace like:
>
> LD_LIBRARY_PATH=. gdb --args ./lua52 list.lua
> GNU gdb (Ubuntu 7.11.90.20161005-0ubuntu1) 7.11.90.20161005-git
> ...
>
> Thread 1 "lua52" received signal SIGSEGV, Segmentation fault.
> 0x753d7946 in g_type_check_instance_cast ()
>from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
> (gdb) bt
> #0  0x753d7946 in g_type_check_instance_cast ()
>from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
> #1  0x76bcda1b in gtkListMapMethod () from ./libiup.so
> #2  0x76b81854 in IupMap () from ./libiup.so
> #3  0x76b818a8 in IupMap () from ./libiup.so
> #4  0x76b818a8 in IupMap () from ./libiup.so
> #5  0x76b818a8 in IupMap () from ./libiup.so
> #6  0x76b819e7 in IupShowXY () from ./libiup.so
> #7  0x76e784a8 in ShowXY () from ./libiuplua52.so
> #8  0x004085ad in luaD_precall ()
> #9  0x00412dbc in luaV_execute ()
> #10 0x004088ee in luaD_call ()
> #11 0x00407f2f in luaD_rawrunprotected ()
> #12 0x00408b31 in luaD_pcall ()
> #13 0x00406521 in lua_pcallk ()
> #14 0x00404216 in docall ()
> #15 0x00404e08 in pmain ()
> #16 0x004085ad in luaD_precall ()
> #17 0x004088e2 in luaD_call ()
> #18 0x00407f2f in luaD_rawrunprotected ()
> #19 0x00408b31 in luaD_pcall ()
> #20 0x00406521 in lua_pcallk ()
> #21 0x00403fbb in main ()
>
> Best regards, and thanks for IUP
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP - The correct package for Linux 64 bits

2016-12-26 Thread Antonio Scuri
  That depends on the distribution.

  Our pre-compiled binaries are built for Ubuntu, on other distro it may
work.

  Which distro and version are you using?

  Also, run "uname -a" this returns a lot of good information for me to
help you.

  Also if you are still using Lua, then there are two packages that are
necessary, one for pure IUP and one for the respective Lua you are using.

  BTW, you already asked me this last year... But no problem I remember
you. If you would like to send me private messages in portugueses it is ok
too.

Best,
Scuri


On Mon, Dec 26, 2016 at 9:40 PM, luciano de souza 
wrote:

> Hello all,
> In the page of IUP in Sourceforge, I found several packages. I tried
> two of them, the instalation seemed to be correct, but the command
> "require" informed IUP is not found.
> So my question is: what's the correct package for Linux 64 bits?
> Regards,
>
> --
> Luciano de Souza
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP for iOS and Android video introduction

2016-12-29 Thread Antonio Scuri
  Thanks. I'l take a look next week.

Best,
Scuri

On Wed, Dec 28, 2016 at 11:16 PM, Eric Wing  wrote:

> Hi, I promised to follow up with more details about my IUP backends
> for iOS and Android.
>
> So I just posted a video introducing the ideas behind my IUP backend
> for iOS and Android. Video seemed like the best option to show the
> platform specific GUI concepts.
>
> I also do an overview of the IUP/Android implementation because I know
> non-Android developers will probably be confused/overwhelmed by the
> code base because of the complexity of Android. It includes an
> introduction to Android development with an explanation of the Android
> SDK and Android NDK.
>
> https://youtu.be/UvrEfOg3Nyk
>
> I hope this helps get everybody on the same page and also inspires the
> community that we can really make this happen.
>
> Thanks,
> Eric
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP for iOS and Android video introduction

2017-01-03 Thread Antonio Scuri
  Hi Eric,

  Excellent video. Thanks for sharing with US. Also thanks for putting so
much work on this.

  I have a few questionings.

  IUP for Cocoa is a safe ground. It can be used for Desktop applications
although we can extend to iOS.

  Desktop applications are our priority and I really would like to see this
fully working. Existing applications can really benefit from a MacOS driver
for IUP. I would suggest you to focus on this one, because the contribution
will be huge!!! We can even attract more users to IUP.

  On the other hand... do you think that mobile developers can take a
benefit from an IUP port? I see that you had to make lots for workarounds
to make it work. I don't think existing application would benefit, so maybe
we are talking just about new applications when comes to mobile. Then why
to use IUP and not another API that was originally developed for mobile?

  Also, I see a lot of work ahead maintaining the Android code. I didn't
know that was all Java based. What a mess... "Why do do something new
simpler if we can get it even more complicated..."

  Anyway just a few thoughts to get started.

Best,
Scuri


On Fri, Dec 30, 2016 at 2:43 AM, Eric Wing  wrote:

> On 12/28/16, John Spikowski  wrote:
> > Eric,
> >
> > Thanks for the great video you did explaining the JNI interface for
> > native C apps wishing to interface with the Android VM.
> >
> > A couple years ago I went down this path with Script BASIC (compiled
> > native on Android with ARM gcc) and SL4A as my JAVA (uses a socket -
> > like JAPI) interface. Here is a thread on the All BASIC forum about it.
> >
> > http://www.allbasic.info/forum/index.php?topic=373.0
> >
> > I currently use B4A (BASIC for Android) and their B4J (free) for other
> > platforms if I wish to venture into Java land which isn't often.
> >
> > Anyways I'll be following your efforts as you unravel the mysteries of
> > Java and the real world.
> >
> > John
>
>
> Thanks John. I'm glad to hear you liked the video.
>
> I poked around the SL4A source code. Is there anything specific you
> think would be valuable? It seems considerably more complex than what
> I'm doing because it is trying to run entire VM loop separately from
> the Android app and it looks like it is built around RPC. What I'm
> doing should be a lot simpler and a lot more efficient too.
>
>
> Thanks,
> Eric
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] segfault using Lua iup.list dropdown on ubuntu 16.10

2017-01-03 Thread Antonio Scuri
  Hi,

  I only have Ubuntu 16.04 installed. But I think the problem should be
with the GTK version. It is using GTK 3.18 and as you mention it is
working. I installed all updates and it is still working. It used to be
simple to update to .10 version but I'm missing the path...

  Can you check which is the GTK version where the problem is occurring?

Best,
Scuri



On Mon, Dec 26, 2016 at 11:01 PM, Antonio Scuri 
wrote:

>   ok. I'll take a look and get back to you in a few days.
>
> Best,
> Scuri
>
>
> On Mon, Dec 26, 2016 at 6:15 PM, reyalp  wrote:
>
>> Hi,
>>
>> A user of an Lua IUP application I maintain (chdkptp) reported crashes
>> on several recent Linux distros, including ubuntu 16.10, Fedora 25 and
>> Manjaro.
>>
>> The crash appears to be triggered when a iup.list with dropdown set is
>> mapped, and can be reproduced using just the list.lua example included
>> with IUP.
>>
>> This happens on ubuntu 16.10, and not on 16.04 (both x64, default
>> installs with unity desktop). I used the pre-built libraries from
>> sourceforge, but the user reported IUP built from source on the
>> affected distros has the same problem.
>>
>> I reproduced the crash with the following:
>>
>> Download iup-3.20-Lua52_Linux44_64_bin.tar.gz
>>
>> Download http://webserver2.tecgraf.puc-rio.br/iup/examples/Lua/list.lua
>>
>> Run
>> LD_LIBRARY_PATH=`pwd` ./lua52 list.lua
>>
>> If the definition of list_dropdown is commented out, or list_dropdown
>> is not included in frm_prize it does not crash.
>>
>> The crash gives a stack trace like:
>>
>> LD_LIBRARY_PATH=. gdb --args ./lua52 list.lua
>> GNU gdb (Ubuntu 7.11.90.20161005-0ubuntu1) 7.11.90.20161005-git
>> ...
>>
>> Thread 1 "lua52" received signal SIGSEGV, Segmentation fault.
>> 0x753d7946 in g_type_check_instance_cast ()
>>from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>> (gdb) bt
>> #0  0x753d7946 in g_type_check_instance_cast ()
>>from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>> #1  0x76bcda1b in gtkListMapMethod () from ./libiup.so
>> #2  0x76b81854 in IupMap () from ./libiup.so
>> #3  0x76b818a8 in IupMap () from ./libiup.so
>> #4  0x76b818a8 in IupMap () from ./libiup.so
>> #5  0x76b818a8 in IupMap () from ./libiup.so
>> #6  0x76b819e7 in IupShowXY () from ./libiup.so
>> #7  0x76e784a8 in ShowXY () from ./libiuplua52.so
>> #8  0x004085ad in luaD_precall ()
>> #9  0x00412dbc in luaV_execute ()
>> #10 0x004088ee in luaD_call ()
>> #11 0x00407f2f in luaD_rawrunprotected ()
>> #12 0x00408b31 in luaD_pcall ()
>> #13 0x00406521 in lua_pcallk ()
>> #14 0x00404216 in docall ()
>> #15 0x00404e08 in pmain ()
>> #16 0x004085ad in luaD_precall ()
>> #17 0x004088e2 in luaD_call ()
>> #18 0x00407f2f in luaD_rawrunprotected ()
>> #19 0x00408b31 in luaD_pcall ()
>> #20 0x00406521 in lua_pcallk ()
>> #21 0x00403fbb in main ()
>>
>> Best regards, and thanks for IUP
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Getting Started with IM

2017-01-03 Thread Antonio Scuri
  Hi,

  You need to link with a C++ capable linker only if you are statically
linking. If you are using DLLs you don't need a C++ capable linker. So yes,
you can do that, and the interface with other programming language.

Best,
Scuri


On Wed, Jan 4, 2017 at 12:28 AM, Andrew Robinson 
wrote:

> Hello again!
>
> The documentation for IM says that internally IM is written in C++, but
> the API is written for C and not C++. So why is it that I need to link with
> a C++ capable linker? That makes it sound like the API is not C compatible,
> so which is it?
>
> Let me rephrase that. If I want to call the IM dll directly, I would
> follow the API as written, which appears as a C style interface, i.e. -- no
> classes, no overridding or overloading of functions, no name mangling, etc.
> Can I do that? That knowledge would allow me to interface to any other
> programming language I please, such as BASIC.
>
> Thanks,
>
> Andrew
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP for iOS and Android video introduction

2017-01-04 Thread Antonio Scuri
  OK. I just saw the second video. Sorry about your friend.

  As a C/C++ programmer I'm very disappointed with Android. Maybe from a
Java perspective it is a better world.

  About your comments, I loved this paragraph:

"So I agree that the lack of native Mac Cocoa support for IUP has
hindered its adoption. I know that is the reason I didn’t use it at
first. Instead, I’ve used many other frameworks over the years like
wxWidgets, Qt, only to come out frustrated and burned by all of them.
Now that I’ve finally used IUP, I see how well thought out its design
is and how brilliant it is in so many respects. But the Mac limitation
is still a major obstacle for me because I work in developer tools,
and most developers I meet nowadays have Macs, because Mac is the only
platform that lets you develop for iOS and also can do Android. Hence,
this is why I started implementing the Cocoa backend."

   I don't have much to add, just cheering for the best.

Thanks,
Scuri


>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP for iOS and Android video introduction

2017-01-05 Thread Antonio Scuri
  No, sorry. We (at IUP) are a small team, and we depend on the Tecgraf
demand to guide our development needs. Since there are no demand for MacOS
here, it is not a priority unfortunately.

Thanks. So any news on you being able to get a Mac to help out? Or
> maybe using GNUStep? (My code won't work with GNUStep right now, but I
> think we could do some things to fix that.)
>
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP event loop modification proposal (due to new platforms like Android, iOS, Mac)

2017-01-05 Thread Antonio Scuri
  I'll take a look at this in a couple of days.

Best,
Scuri


On Wed, Jan 4, 2017 at 8:49 PM, Eric Wing  wrote:

> As I said earlier, the way IUP does its startup sequence and main loop
> is incompatible with Android and iOS, and potentially other backends
> like Emscripten/asm.js/WebAssembly. So I have developed a new
> alternative sequence that I believe will work with all platforms.
>
> Android Background:
> The reason IUP’s current system doesn’t work on Android is two-fold.
> 1) All Android applications start in Java, and Android/Java completely
> control the event loop. It is not possible to access it or control it.
> 2) Android is event driven. Everything starts from a callback in Java.
> There is no C main function. We use callbacks to cross into C via JNI
> so we can run normal IUP user code. But because this is an event
> callback, the function must return. Calling IupMainLoop() is expected
> to not return which thus would block the event loop.
>
> iOS Background:
> iOS almost works, but not quite, so in the end, it is ultimately the
> same problem as Android. In iOS, to start the main event loop, we need
> to call UIApplicationMain(). I made this the implementation for
> IupMainLoop(), and this seems to fit. But the problem is that IUP APIs
> are expected to work before you call IupMainLoop(). If
> UIApplicationMain hasn’t been started yet, there are a bunch of
> implementation details in CocoaTouch I depend on to make the
> implementation work that have not created/initialized yet. These are
> things like the application delegate, and even the autorelease pool.
> So basically, UIApplicationMain is expected to be the first thing run
> in an iOS app. But once you run it, it doesn’t return and it takes
> control of the event loop. So now our problem looks the same as
> Android.
>
> Mac background:
> Mac’s startup sequence is a little different than iOS’s, so I was
> actually able to make Mac conform to the legacy startup sequence.
> However, Mac really wants to behave more like iOS/Android and what I
> did to implement this is not typical.
>
>
> Proposal:
> We introduce a new callback function, e.g. void IupEntryPoint(void)
> which gets invoked after the application gets started. This is where
> the user’s code officially begins.
>
>
> So for a typical cross-platform project, I expect something like:
>
>
> void IupEntryPoint(void);
> void IupExitCallback(void);
>
> // Remember that main is never run on Android.
> // This main function should be a template/copy-and-paste for all IUP
> projects.
> // Don't put any user code here. All user code should start in
> IupEntryPoint.
> // The main you see here is only to get the platform to eventually
> invoke IupEntryPoint() on platforms that need it.
> int main(int argc, char* argv[])
> {
> IupOpen(0, NULL);
> IupSetFunction("ENTRY_POINT", (Icallback)IupEntryPoint);
> // User can no longer assume that IupMainLoop blocks, and may
> return
> immediately.
> // You should probably not put code after this call.
> // On the pre-existing platforms, IupMainLoop will be
> implemented to lead to IupEntryPoint being invoked.
> IupMainLoop();
> return 0;
> }
>
> // This is where user code should start
> void IupEntryPoint()
> {
> // TODO: Proposed exit callback so the user can call IupClose()
> IupSetFunction("EXIT_CB", (Icallback)IupExitCallback);
>
> Ihandle* button = IupButton("Iup Button", "");
> IupSetCallback(button, "ACTION", (Icallback)OnButtonCallback);
> Ihandle* dialog = IupDialog(button);
> IupShow(dialog);
> }
>
> // TODO: Proposed exit callback which the user should setup in the
> IupEntryPoint() callback.
> void IupExitCallback()
> {
> IupClose();
> }
>
> So here are the major points:
>
> - Unchanged legacy code will continue to work as before (Windows, GTK,
> Motif).IupEntryPoint() will not exist nor IupSetFunction is never
> called for it, so it will never get invoked. IupMainLoop() will still
> behave exactly as before on those existing implementations. So nobody
> is forced to migrate until ready.
>
> - New code should adopt this new design. That way it will work on both
> the existing platforms (Windows, GTK, Motif), but also work on the new
> platforms (iOS, Android, Mac).
>
> - On Android, the main() function never gets run. But all the other
> platforms will run it. The callback entry point is where all platforms
> will start running the same code.
>
> - On Android, because main() is never run, there is no opportunity
> to
> call IupSetFunction() beforehand, IupEntryPoint() is a hardcoded
> fallback/default. Because of this, documentation/conventions should
> strongly encourage one standard function name, e.g. IupEntryPoint.
> However, I made it possible to specify a different function name in
> the AndroidManifest.xml.
>
>
> - Unix dlsym allows us to search for a symbol globally instead of a
> specific librar

Re: [Iup-users] segfault using Lua iup.list dropdown on ubuntu 16.10

2017-01-05 Thread Antonio Scuri
  Hi,

  Just fixed and commited to SVN:

Fixed: crash at IupList in GTK 3.20 when DROPDOWN=Yes and EDITBOX=NO. But
in that case keyboard, focus and enter/leave window callbacks stopped
working.

  GTK changed how things are done for the control and those callbacks are
not working anymore. There is still work to do, but the crash is gone.

Best,
Scuri


On Wed, Jan 4, 2017 at 5:36 AM, reyalp  wrote:

> On Ubuntu 16.10, libgtk-3-0 is 3.20.9.
>
> I agree GTK version seems likely to be the cause.
>
> 16.04 is an LTS release, so you have to change some setting to update
> to 16.10, described on https://wiki.ubuntu.com/YakketyYak/ReleaseNotes
>
> Thanks for looking into this
>
> On Tue, Jan 3, 2017 at 10:12 AM, Antonio Scuri 
> wrote:
> >   Hi,
> >
> >   I only have Ubuntu 16.04 installed. But I think the problem should be
> with
> > the GTK version. It is using GTK 3.18 and as you mention it is working. I
> > installed all updates and it is still working. It used to be simple to
> > update to .10 version but I'm missing the path...
> >
> >   Can you check which is the GTK version where the problem is occurring?
> >
> > Best,
> > Scuri
> >
> >
> >
> > On Mon, Dec 26, 2016 at 11:01 PM, Antonio Scuri  >
> > wrote:
> >>
> >>   ok. I'll take a look and get back to you in a few days.
> >>
> >> Best,
> >> Scuri
> >>
> >>
> >> On Mon, Dec 26, 2016 at 6:15 PM, reyalp  wrote:
> >>>
> >>> Hi,
> >>>
> >>> A user of an Lua IUP application I maintain (chdkptp) reported crashes
> >>> on several recent Linux distros, including ubuntu 16.10, Fedora 25 and
> >>> Manjaro.
> >>>
> >>> The crash appears to be triggered when a iup.list with dropdown set is
> >>> mapped, and can be reproduced using just the list.lua example included
> >>> with IUP.
> >>>
> >>> This happens on ubuntu 16.10, and not on 16.04 (both x64, default
> >>> installs with unity desktop). I used the pre-built libraries from
> >>> sourceforge, but the user reported IUP built from source on the
> >>> affected distros has the same problem.
> >>>
> >>> I reproduced the crash with the following:
> >>>
> >>> Download iup-3.20-Lua52_Linux44_64_bin.tar.gz
> >>>
> >>> Download http://webserver2.tecgraf.puc-rio.br/iup/examples/Lua/list.
> lua
> >>>
> >>> Run
> >>> LD_LIBRARY_PATH=`pwd` ./lua52 list.lua
> >>>
> >>> If the definition of list_dropdown is commented out, or list_dropdown
> >>> is not included in frm_prize it does not crash.
> >>>
> >>> The crash gives a stack trace like:
> >>>
> >>> LD_LIBRARY_PATH=. gdb --args ./lua52 list.lua
> >>> GNU gdb (Ubuntu 7.11.90.20161005-0ubuntu1) 7.11.90.20161005-git
> >>> ...
> >>>
> >>> Thread 1 "lua52" received signal SIGSEGV, Segmentation fault.
> >>> 0x753d7946 in g_type_check_instance_cast ()
> >>>from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
> >>> (gdb) bt
> >>> #0  0x753d7946 in g_type_check_instance_cast ()
> >>>from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
> >>> #1  0x76bcda1b in gtkListMapMethod () from ./libiup.so
> >>> #2  0x76b81854 in IupMap () from ./libiup.so
> >>> #3  0x76b818a8 in IupMap () from ./libiup.so
> >>> #4  0x76b818a8 in IupMap () from ./libiup.so
> >>> #5  0x76b818a8 in IupMap () from ./libiup.so
> >>> #6  0x76b819e7 in IupShowXY () from ./libiup.so
> >>> #7  0x76e784a8 in ShowXY () from ./libiuplua52.so
> >>> #8  0x004085ad in luaD_precall ()
> >>> #9  0x00412dbc in luaV_execute ()
> >>> #10 0x004088ee in luaD_call ()
> >>> #11 0x00407f2f in luaD_rawrunprotected ()
> >>> #12 0x00408b31 in luaD_pcall ()
> >>> #13 0x00406521 in lua_pcallk ()
> >>> #14 0x00404216 in docall ()
> >>> #15 0x00404e08 in pmain ()
> >>> #16 0x004085ad in luaD_precall ()
> >>> #17 0x004088e2 in luaD_call ()
> >>> #18 0x00407f2f in luaD_rawrunprotected ()
> >>> #19 0x00408b31 in luaD_pcall ()
> >>> #20 0x00406521 in lua_pcallk ()
> >>> #21 0x00403fbb in main ()
> >>>

Re: [Iup-users] IupOleControl

2017-01-06 Thread Antonio Scuri
 You mean inside other container in the dialog, yes.

Best,
Scuri

Em 06/01/2017 04:33, "John Spikowski"  escreveu:

> Can an IupOleControl reside in something else other than a dialog
> window? I would like to include a OCX control along with other IUP
> standard controls in a dialog.
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IupGridBox, Part II

2017-01-09 Thread Antonio Scuri
  Hi,

  Can you send me the code for that example. I may have an idea.

Best,
Scuri

On Sun, Jan 8, 2017 at 3:16 PM, Andrew Robinson  wrote:

> Hello,
>
> This is just feedback of user satisfaction. It is not a complaint, it is
> just an opinion and requires no response. I'm hoping someone will
> understand what I am saying here and will think of a way to improve the
> container functionality to bring it up to a more state-of-the-art level.
>
> With the following parameters:
>
> MARGIN=5x5
> GAPCOL=5
> GAPLIN=5
>
> I get the following rendering:
>
> Note how GAPLIN has no effect. That's because IUP needs to be told which
> component in the entire grid is the the tallest component in the entire
> grid, so with that in mind, I used the following parameters,
>
> SIZELIN=1
> SIZECOL=2
> MARGIN=5x5
> GAPCOL=5
> GAPLIN=5
>
> and I get the following rendering:
>
> So now GAPLIN is working, but I have a problem with the GAPCOL ignoring
> the QUIT button's width because IUP hasn't been told that the QUIT button
> is the widest button in that column, but I cannot convey that information
> to IUP without screwing up the rest of the layout, since columns zero and
> one of line 2 are zero width and zero height:
>
>
> To get this to work, I tried inserting the GridBox inside of a Vbox or
> Hbox, but they too have no effect on the QUIT button margin. I could make
> this work by overriding the fault main window width by using USERSIZE, but
> why have containers if I typically will have to override them like this?
>
> That was only for a simplified user interface. Just spelling out the
> labels and flipping SRC with DST, I get this rendering,
>
>
> which is awful and not very fixable.
>
> Therefore the problem is this: I cannot choose a container that will let
> me align components both vertically and horizontally. It is either one or
> the other, but not both. GridBox comes close but it isn't very powerful, as
> you can see. There is no point in having any of these containers, if they
> can only do very simple "Hello World" interfaces and nothing beyond that,
> without having to compile a confusing slew of Vboxes, Hboxes, and GridBoxes
> into your user interface. As much as I hate JAVA, their version of the
> GridBox was very useful. As it stands, I need to resort to the cumbersome
> CX and CY attributes of each component to make anything more complicated
> than a "Hellow World" user interface work.
>
> What is really great about GridBox is that you only need to pass one
> parameter to the function to load your entire interface.
>
> Best Regards,
>
> Andrew
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Extra data on IUP objects in LUA

2017-01-10 Thread Antonio Scuri
  Hi,

  Yes, it is a permitted operation.

Best,
Scuri


On Tue, Jan 10, 2017 at 6:30 PM, john huttley 
wrote:

> Hi team,
>
> I want to generalise  a call back (mouse over on a matrix)
>
> The call back only ever gets "self". So can I add a field to self like
> this?
>
>
> box=iup.matrix{}
>
> box.dat= mydata   <<=== Some custom data
>
> box.mousemove_cb = my_cb(self,l,c)
>
>
>
> Where I can then use the one CB function.
>
>
> my_cb = function (self,l,c)
>
> self.dat  
>
> end
>
>
>
> Is that a permitted use of the IUP object?
>
> Is there a better way?
>
>
> Regards,
>
> --Dad
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP event loop modification proposal (due to new platforms like Android, iOS, Mac)

2017-01-15 Thread Antonio Scuri
  I couldn't even had time to take a look at Eric considerations yet, but I
would like to say a few words.

  First, our policy in IUP is to always maintain backward compatibility. We
have applications that started their development in the 90's and they are
still running using latest IUP version, with minor changes from IUP 2 to
IUP 3 (and that shouldn't occur ever again).

  Said that, Eric is doing a great job implementing a driver for MacOS. And
the idea is the same, to provide a portable abstraction that will not
affect current application code that uses IUP.

  iOS and Android are a plus, they are still an incognita for me. We would
like to dive into that world, but no doubt we will do it with caution and
certainly not breaking any existing applications. So if you don't care
about those systems simply ignore them. There are no plans in changing the
current IUP API just for that matter. On the other hand if I could ADD some
features that will help those drivers to happen then there is no problem in
that and I'll be happy to do it.

  Next week I should release version 3.21, but before that I'l take a look
at Eric's considerations and see what can be done.

Best Regards,
Antonio Scuri



On Sat, Jan 14, 2017 at 5:28 PM, Andrew Robinson 
wrote:

> In conclusion...
>
> Working with nil from the Apple Developer site:
> https://developer.apple.com/library/content/documentation/
> Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithObjects/
> WorkingwithObjects.html
>
> Best Regards,
>
> Andrew
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


<    3   4   5   6   7   8   9   10   11   12   >