Re: [Iup-users] Problem with IupPlot AXS_AUTOSCALEEQUAL

2015-08-25 Thread Tao Li
Hi, Scuri Thanks for the update. It is working properly now. But, I have a issue of the initialization of the plot. Every time, I have to resize the window to make the AXS_AUTOSCALEEQUAL and VIEWPORTSQUARE attributes take effect. Is there a way to make them work directly after the window initial

Re: [Iup-users] Problem with IupPlot AXS_AUTOSCALEEQUAL

2015-08-24 Thread Tao Li
Hi, Scuri Thanks for the new update. The new update did make the zoom-in operation keep the scale. However, the mouse drag operation seems have a bug. The phenomena is: after zoom-in, the mouse left-click-drag operation can not move the plot properly. During the plot move operation, the scale sh

Re: [Iup-users] Problem with IupPlot AXS_AUTOSCALEEQUAL

2015-08-23 Thread Tao Li
Thanks Scuri I use source code to build the lib. So I can test it. Best regards, Tao -- Tao -- ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourcefo

[Iup-users] Problem with IupPlot AXS_AUTOSCALEEQUAL

2015-08-21 Thread Tao Li
Hi, I use the following settings to emulate the axis equal in Matlab. IupSetAttribute(plot, "AXS_AUTOSCALEEQUAL", "YES"); IupSetAttribute(plot, "VIEWPORTSQUARE", "YES"); It works fine when using the mouse scroll wheel to zoom in and out. But when using the left click and drag method, the axis s

Re: [Iup-users] iup.lib link error using vc12

2015-08-13 Thread Tao Li
Hi, Problem solved after adding Advapi32.lib User32.lib Shell32.lib to the link options. It works now. Thanks. Best regards Tao -- ___ Iup-users mailing list Iup-users@lists.sou

[Iup-users] iup.lib link error using vc12

2015-08-13 Thread Tao Li
I have solved the iup_str.c compiling problem using the latest iup src. Now it successfully generates iup.lib. But when I test it using example2_1.c, it has the following link problem. /out:main.exe /debug /LIBPATH:W:\iup\iup\lib\vc12 iup.lib iupcd.lib iup.lib gdi32.lib comdlg32.lib comctl32.lib

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

2015-08-13 Thread Tao Li
I use the English version of VC but the Chinese version of Windows7. Ok. I think I know what the problem is. What is the language of your VC? Scuri On Thu, Aug 13, 2015 at 2:06 PM, Tao Li wrote: > I use visual studio 2013 professional. The problem here is VC can not > recognize

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

2015-08-13 Thread Tao Li
I use visual studio 2013 professional. The problem here is VC can not recognize those special characters in the map[256] and map_nocase[256] array. I tried to save the file with different encoding methods and it did not help. -- Best regards Tao

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

2015-08-13 Thread Tao Li
Hi, guys I have a couple of error when building iup static lib. It seems that vc can not recognize the latin characters. iup_str.c iup_str.c(1191) : error C2015: too many characters in constant iup_str.c(1191) : error C2059: syntax error : ']' iup_str.c(1192) : error C2015: too many characters i

Re: [Iup-users] Setting the aspect ratio for axis in iupplot

2015-04-07 Thread Tao Li
That is great. Thanks a lot. -- Tao -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM thr

Re: [Iup-users] Setting the aspect ratio for axis in iupplot

2015-03-25 Thread Tao Li
Thanks for your reply. I am eager to see the next release. BR Tao -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for

[Iup-users] Setting the aspect ratio for axis in iupplot

2015-03-24 Thread Tao Li
Hi, is there a way to set the aspect ratio behavior during the zoom-in/out operations? I want to keep the shape of the polygon. Like in matlab "axis equal" can keep both the axis the same unit. - axis equal — sets the aspect ratio so that the data units are the same in every direction