[Iup-users] BUG?: Handling keys for iuplist

2023-08-08 Thread Milind Gupta
Hi, I am trying to handle the Key events for iuplist so that I can type the name to quickly reach the list item. I am using it in dropdown mode. The default behavior of the list control seems to be to take just the current key press and find a list item that begins with it. I

[Iup-users] Strange interaction bug for iuplabel and iupflatframe

2023-08-07 Thread Milind Gupta
Hi, If I place iuplabel in a iupflatframe then the label stops behaving properly and does not show up if I put the label handle directly in a dialog. I called it a bug since IUP 3.28 worked fine. As an example see the attached standard label.lua example. I just added line 35 which is

[Iup-users] IUP Matrix adding and deleting lines when merged cells exist

2023-08-06 Thread Milind Gupta
Hi Antonio, After trying out a lot of things I think there is a bug in the iupmatrix code when merged cells exist. The problem is if lines are added so that the new lines end up in a place where previously there were some merges then things get messed up and we see black cells. Same

Re: [Iup-users] IUP Matrix adding and removing lines

2023-08-05 Thread Milind Gupta
It gets even more complicated if we try to delete lines. Added some delete buttons. See the 4-5 button. It ends up with black areas on the grid. Any suggestions how to fix this and delete properly? Thanks, Milind On Fri, 4 Aug 2023 at 12:17, Milind Gupta wrote: > Hi Anto

Re: [Iup-users] IUP Matrix adding and removing lines

2023-08-04 Thread Milind Gupta
; old row. > > Best, > Scuri > > Em dom., 21 de mai. de 2023 às 03:23, Milind Gupta > escreveu: > >> Hi, >> I have a IUP Matrix where some cells are merged with some cells >> on the next row. When I try to add a line before the row the rows added get &

[Iup-users] iuptree executebranch_cb does not trigger

2023-07-25 Thread Milind Gupta
Hi, I have a iuptree control. I am trying to get the executebranch_cb to trigger but do not receive the trigger. When I set the same function for executeleaf_cb it works fine. Is there any particular case when it has to work? Thanks, Milind ___

Re: [Iup-users] IUP Matrix text edition

2023-06-22 Thread Milind Gupta
exits. Thanks, Milind On Wed, 21 Jun 2023 at 22:44, Milind Gupta wrote: > Hi, > When I edit a value of a cell in the matrix, is it possible to set > the value in the text box to something when the edition text box is > displayed. Probably if I can just get the handle of t

[Iup-users] IUP Matrix text edition

2023-06-21 Thread Milind Gupta
Hi, When I edit a value of a cell in the matrix, is it possible to set the value in the text box to something when the edition text box is displayed. Probably if I can just get the handle of the displayed text box then I can use the iupText attributes to set it? Thanks, Milind

[Iup-users] IUP Matrix manipulation

2023-06-13 Thread Milind Gupta
Hi, I am populating a IUP matrix and sometimes making changes to it. During the changes the matrix follows with each change like addlin immediately adds a line. I am wondering if there is a way to buffer the changes and then once everything is done then show the buffer. Much like we can do

Re: [Iup-users] IUP Matrix adding and removing lines

2023-06-13 Thread Milind Gupta
ri > > Em dom., 21 de mai. de 2023 às 03:23, Milind Gupta > escreveu: > >> Hi, >> I have a IUP Matrix where some cells are merged with some cells >> on the next row. When I try to add a line before the row the rows added get >> the cells

[Iup-users] IUP Matrix adding and removing lines

2023-05-21 Thread Milind Gupta
Hi, I have a IUP Matrix where some cells are merged with some cells on the next row. When I try to add a line before the row the rows added get the cells in the merged with the cells that were merging before. For example if I have Row 2 Col 1 merged with Row 3 Col 1 and then if I add a

[Iup-users] IUP binaries for Lua 5.3.6

2023-01-08 Thread Milind Gupta
Hello, Was there any release for the IUP binaries for Lua 5.3.6 for Windows 64 bit? Thanks, Milind ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users

Re: [Iup-users] GTK on cent OS

2021-12-30 Thread Milind Gupta
t; Em sex., 30 de jul. de 2021 às 16:36, Matthew Kennedy > escreveu: > >> I get the same kind of thing, though not quite as pronounced on CentOS 7 >> with IUP from recent SVN. This is via Xorg, I believe. >> >> >> >> On Fri, Jul 30, 2021, at 12:00 P

Re: [Iup-users] iupflatlabel alignment="ACENTER" not working

2021-07-30 Thread Milind Gupta
Hi Antonio, Is this expected behavior? If the label has the text fit in one line then it "ACENTER" alignment is fine. But if the text wraps then the next line is not in the center but starts from the left side. Regards, Milind On Mon, Jul 26, 2021 at 11:27 PM Milind Gu

Re: [Iup-users] iup label that wraps text and resizes

2021-07-30 Thread Milind Gupta
is resized. In the callback whatever is the rastersize of the label I check how many heights of the natural size are needed to make the natural size area fit in the current raster size area. This seems to work fine. Thanks, Milind On Mon, Jul 26, 2021 at 4:07 PM Milind Gupta wrote: > Hi Anto

Re: [Iup-users] GTK on cent OS

2021-07-30 Thread Milind Gupta
formation about your system? For instance: > > uname -a > > Best, > Scuri > > Em qua., 28 de jul. de 2021 16:03, Milind Gupta > escreveu: > >> Hi Antonio, >> I have a GUI that I run it on windows as well as on CentOS. >> Below are th

[Iup-users] GTK on cent OS

2021-07-28 Thread Milind Gupta
Hi Antonio, I have a GUI that I run it on windows as well as on CentOS. Below are the visuals comparison: Windows: [image: image.png] CentOS: [image: image.png] The text boxes in linux seem to be oversized and overlapping. Is there a way I can make them better? Thanks, Milind

[Iup-users] iupflatlabel alignment="ACENTER" not working

2021-07-27 Thread Milind Gupta
It seems alignment="ACENTER" for iupflatlabel not working. It just stays left aligned. I am trying this in 3.28 on windows. Thanks, Milind ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users

[Iup-users] iup label that wraps text and resizes

2021-07-26 Thread Milind Gupta
Hi Antonio, How can I set the size of a wrapping label so that I can show the full text. The only way I see is to do EXPAND = "YES" which makes it take a lot of space. I want it to expand vertically only the amount needed to show the text. Is there a way to calculate how much that should

Re: [Iup-users] Compiling IUP

2021-02-27 Thread Milind Gupta
ble build. > > On 2021-02-27 07:14, Antonio Scuri wrote: > > OK! > > > > Em qua., 10 de fev. de 2021 às 19:28, Milind Gupta > > escreveu: > > > >> Actually I was going to the source directory and running make. Ran > >> from the upper directory. Now it

Re: [Iup-users] Compiling IUP

2021-02-10 Thread Milind Gupta
Actually I was going to the source directory and running make. Ran from the upper directory. Now it is good. Thanks, Milind On Wed, Feb 10, 2021 at 1:40 PM Milind Gupta wrote: > Hi Antonio, > I followed the steps to build IUP from source (on ARM Linux). > Everything wo

[Iup-users] Compiling IUP

2021-02-10 Thread Milind Gupta
Hi Antonio, I followed the steps to build IUP from source (on ARM Linux). Everything worked fine but after making IUP I just see 1 dynamic library in IUP - libiup.so. I am not sure why it did not build libiuplua53.so I compiled it using the instructions on the web only that I used the

Re: [Iup-users] IupFlatList issue

2020-07-03 Thread Milind Gupta
Hi, >> >> I'll run your test and let you know. Right now I'm in the middle of a >> task, so this may take some time. >> >> Best, >> Scuri >> >> >> Em qua., 17 de jun. de 2020 às 03:34, Milind Gupta < >> milind.gu...@gmail.com>

[Iup-users] IupFlatList issue

2020-06-17 Thread Milind Gupta
Hi Antonio, I am using IUP 3.28 on windows 10. I have the code that I have attached where I have dialog and then another dialog is opened. Both dialogs have k_any callbacks to catch Escape key press. The code as it is works fine by catching the Escape in the second dialog and hiding the

Re: [Iup-users] Question about canvases

2020-06-15 Thread Milind Gupta
an happen. > > I think that starting with a IupBackgroundBox and using regular controls > (not OpenGL) can be a good start. > > Best, > Scuri > > > Em sáb., 13 de jun. de 2020 às 18:43, Milind Gupta > escreveu: > >> Got it. >> >> The behavior of

Re: [Iup-users] Question about canvases

2020-06-13 Thread Milind Gupta
simplification. > > Best, > Scuri > > > > > Em sáb., 13 de jun. de 2020 às 17:47, Milind Gupta > escreveu: > >> Thanks for the summary. I had read their documentation and what I >> understood and still seem to think from your summary is that: >> >

Re: [Iup-users] Question about canvases

2020-06-13 Thread Milind Gupta
; leave it as a separate control > * IupGLSubCanvas - a virtual canvas used for the OpenGL based controls. It > is not actually a canvas, it is a region inside the IupGLCanvasBox used as > base for the IupGLControls library elements. > > Best, > Scuri > > > >

[Iup-users] Question about canvases

2020-06-12 Thread Milind Gupta
Hi Antonio, I am a little confused about all the canvas options in IUP. I found these: * iupcanvas * IupBackgroundBox * IupGLCanvas * IupGLBackground * IupGLCanvasBox * IupGLSubCanvas All of them can act like a canvas I believe. What are the specific instances when each of them should be

Re: [Iup-users] Auto-scroll on appending text in IupText

2020-05-28 Thread Milind Gupta
You can use the SCROLLTO attribute after adding text to automatically scroll so that the last line/character is visible. On Thu, May 28, 2020 at 2:54 AM Damon H. (TheDcoder) wrote: > Hello everyone! I hope you are all doing well during these unfortunate > times. > > I have a question regarding

Re: [Iup-users] iupplot marginleft="AUTO"

2020-05-23 Thread Milind Gupta
gt; > Best, > Scuri > > > Em sex., 22 de mai. de 2020 às 14:40, Milind Gupta > escreveu: > >> Hi Antonio, >> When I create a new plot and add an Label for the Y axis the >> label is not visible since there is not enough space left between the Y >&g

[Iup-users] iupplot marginleft="AUTO"

2020-05-22 Thread Milind Gupta
Hi Antonio, When I create a new plot and add an Label for the Y axis the label is not visible since there is not enough space left between the Y axis and the dialog left end. I was expecting that MARGINLEFT = "AUTO" which is the default should have adjusted the margin to show it since it

Re: [Iup-users] iupflatlist item issue

2020-05-06 Thread Milind Gupta
Never mind I was using IUP 3.27. I just saw it is fixed in 3.28 On Wed, May 6, 2020 at 1:19 AM Milind Gupta wrote: > Hi Antonio, > I was trying to use the flat list. If I have a flat list with > multiple="YES" then if I click the last item in the list by holding Con

[Iup-users] iupflatlist item issue

2020-05-06 Thread Milind Gupta
Hi Antonio, I was trying to use the flat list. If I have a flat list with multiple="YES" then if I click the last item in the list by holding Control key the item text of the previous item changes as well. As an example see the follow example file I modified: In the second

Re: [Iup-users] focus never lost from control

2020-05-05 Thread Milind Gupta
> even sent. > > Sorry this seems to be a system behavior because the window does not > have decorations. > > Best, > Scuri > > > > > Em sáb., 2 de mai. de 2020 às 19:07, Milind Gupta > escreveu: > >> Windows 10 >> >> On Sat, May 2, 202

Re: [Iup-users] focus never lost from control

2020-05-02 Thread Milind Gupta
Windows 10 On Sat, May 2, 2020, 2:21 PM Antonio Scuri wrote: > Hi, > > Which system? > > Best, > Scuri > > > Em sáb., 2 de mai. de 2020 às 09:23, Milind Gupta > escreveu: > >> Here is the script: >> >> require("iuplua") >&

Re: [Iup-users] focus never lost from control

2020-05-02 Thread Milind Gupta
up.timer{time=10,run="NO"} function tim:action_cb() tim.run = "NO" local fc = tostring(iup.GetFocus()) local match for i = 1,#controls do if controls[i] == fc then match = i break end end if not match then print("lost focus") else print("focus on",controls[m

[Iup-users] focus never lost from control

2020-05-02 Thread Milind Gupta
Hi Antonio, I have this small script which creates a simple dialog. I set up a timer to check for focus on any controls in the dialog and print the state. What I see is that if I have menubox="NO" then the focus is never lost from the dialog when I switch over from the dialog to

Re: [Iup-users] CURSORPOS returns nil (Windows)

2020-04-29 Thread Milind Gupta
; CURSORPOS=3509x1964 > CURSORPOS=3752x2046 > CURSORPOS=6419x1595 > CURSORPOS=7381x1410 > CURSORPOS=8955x1726 > CURSORPOS=9211x1488 > CURSORPOS=9202x1602 > CURSORPOS=9206x1605 > CURSORPOS=8272x1043 > > Best, > Scuri > > > > Em qua., 22 de abr. de

Re: [Iup-users] CURSORPOS returns nil (Windows)

2020-04-22 Thread Milind Gupta
I use a timer. On Wed, Apr 22, 2020, 5:58 AM Antonio Scuri wrote: > Do you use a timer or the idle callback to do that? > > Em qua., 22 de abr. de 2020 às 05:54, Milind Gupta > escreveu: > >> I don't have control over the motion_cb or button_cb call backs since &

Re: [Iup-users] CURSORPOS returns nil (Windows)

2020-04-22 Thread Milind Gupta
> > Best, > Scuri > > > Em ter, 21 de abr de 2020 20:43, Milind Gupta > escreveu: > >> Hi Antonio, >>I am using CURSORPOS to determine the mouse position on the >> screen. I see that if I have a multi display setup as soon as my mouse goes >&

[Iup-users] CURSORPOS returns nil (Windows)

2020-04-21 Thread Milind Gupta
Hi Antonio, I am using CURSORPOS to determine the mouse position on the screen. I see that if I have a multi display setup as soon as my mouse goes to the other display it returns nil. There is no error message. Is there any particular way to handle multiple displays. Also

Re: [Iup-users] [Canvasdraw-users] cd.PRINTER canvas

2020-03-25 Thread Milind Gupta
; print(cdbCanvas:MM2Pixel(12/cd.MM2PT, 12/cd.MM2PT )) > 32.0 32.0 > > Best, > Scuri > > > > > > > Em ter., 24 de mar. de 2020 às 20:49, Milind Gupta > escreveu: > >> Yes this one does not have scaling because I was just doing an example to >> check pr

Re: [Iup-users] [Canvasdraw-users] cd.PRINTER canvas

2020-03-24 Thread Milind Gupta
rawing >> compared to the screen for the same size. >> >> On Tue, Mar 24, 2020 at 12:38 PM Milind Gupta >> wrote: >> >>> Actually the problem is the scaling is not the same on the screen >>> compared to the printer. So the issue is if I scale

Re: [Iup-users] [Canvasdraw-users] cd.PRINTER canvas

2020-03-24 Thread Milind Gupta
For example the screen shows the graphic as: [image: image.png] While the printout shows it like: [image: image.png] The text gets totally out of proportion to the rest of the drawing compared to the screen for the same size. On Tue, Mar 24, 2020 at 12:38 PM Milind Gupta wrote: > Actua

Re: [Iup-users] [Canvasdraw-users] cd.PRINTER canvas

2020-03-24 Thread Milind Gupta
ri > > > Em ter., 24 de mar. de 2020 às 05:38, Milind Gupta > escreveu: > >> Hi Antonio, >> When I use cd.PRINTER canvas to print the text scaling is not >> coming out right. For example see the the attached file. When I press the >> button and press prin

[Iup-users] cd.PRINTER canvas

2020-03-24 Thread Milind Gupta
Hi Antonio, When I use cd.PRINTER canvas to print the text scaling is not coming out right. For example see the the attached file. When I press the button and press print the drawing shows up in the lower left corner as expected but the text is quite out of proportion. I am doing this on

[Iup-users] Text formatting

2020-03-06 Thread Milind Gupta
Hi Antonio, Does LineStyle, LineWidth, LineJoin and LineCap affect the raster text in any way? Do they affect the vector text? Thanks, Milind ___ Iup-users mailing list Iup-users@lists.sourceforge.net

Re: [Iup-users] [Canvasdraw-users] Triple Buffer?

2020-02-26 Thread Milind Gupta
Hi Antonio, If you can have a look at my example and suggest me modifications that would be very helpful. Thanks, Milind On Fri, Feb 7, 2020, 11:05 AM Milind Gupta wrote: > Hi Antonio, > If you can have a look at my example and suggest me modifications > that would be ver

[Iup-users] Triple Buffer?

2020-01-24 Thread Milind Gupta
Hi, Is it possible to add a buffer to a buffer canvas? If there is a part of a drawing that rarely changes it can be drawn in the 3rd canvas and flushed to the buffer canvas before doing the other changes. Milind ___ Iup-users mailing list

Re: [Iup-users] CD_CUSTOM linestyle not as expected

2020-01-23 Thread Milind Gupta
A little more information. If I add LineWidth = 2 after setting the line style then only it works properly. Why does LineWidth=1 not work? On Wed, Jan 22, 2020 at 6:09 PM Milind Gupta wrote: > Hi, > I created a custom linestyle of 1 dot and 9 spaces. When I plot this > line I see

[Iup-users] CD_CUSTOM linestyle not as expected

2020-01-22 Thread Milind Gupta
Hi, I created a custom linestyle of 1 dot and 9 spaces. When I plot this line I see multiple dots and a much longer space. The attached script plots it as a horizontal line and creates some vertical markers below which the dots were expected. The dots however are not aligned to those vertical

Re: [Iup-users] [Canvasdraw-users] CD_XOR writemode on canvas

2020-01-22 Thread Milind Gupta
ion is don't use XOR anymore anywhere. Use double buffer > and redraw everything. The nowadays GPUs are fast enough for that. > > Best, > Scuri > > > Em qua., 22 de jan. de 2020 às 19:09, Milind Gupta > escreveu: > >> Hi, >> I have a canvas on w

[Iup-users] CD_XOR writemode on canvas

2020-01-22 Thread Milind Gupta
Hi, I have a canvas on which I draw something using the CD_XOR writemode. The example pasted below works fine by drawing a black line on windows but not on linux. Linux does not show anything. What am I doing wrong here? Thanks, Milind canvas_cd_xor.lua Description: Binary

Re: [Iup-users] Create a stipple

2019-12-18 Thread Milind Gupta
at 2:07 PM Milind Gupta wrote: > Hi, > I want to create a stipple for a fill on the entire canvas in a > way so that I see a grid on the canvas. I want this stipple to be placed on > the canvas in a particular alignment so that the grid points match certain > coordinates. So

[Iup-users] CD_IUPDBUFFER not documented

2019-12-18 Thread Milind Gupta
Hi Antonio, I was going through the simple paint tutorial and came across CD_IUPDBUFFER driver when using CD CreateCanvas. I could not find the documentation for it on CD page. I was initializing my IUP canvas with CD for double buffering in Map_CB like this: local cd_Canvas =

[Iup-users] Create a stipple

2019-12-17 Thread Milind Gupta
Hi, I want to create a stipple for a fill on the entire canvas in a way so that I see a grid on the canvas. I want this stipple to be placed on the canvas in a particular alignment so that the grid points match certain coordinates. So is there a way to figure out how the stipple is placed

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

2019-12-15 Thread Milind Gupta
I think you can remove the border of the cells and give it the same look. On Thu, Dec 12, 2019, 12:07 PM Vince wrote: > Hello, > > I'd like to be sure. In order to implement a UI similar to this: > > https://python-gtk-3-tutorial.readthedocs.io/en/latest/_images/treeview_filter_example.png > >

Re: [Iup-users] IUP 3.28

2019-12-15 Thread Milind Gupta
Very nice! Thank you for these wonderful additions. Milind On Fri, Dec 13, 2019, 6:17 PM Antonio Scuri wrote: > Hi All, > >We just released IUP version 3.28 > >We would like to highlight some of the new features: > >- *New*: *IupVisualLED *application is a IDE for editing and

[Iup-users] Embed a image in a Lua file

2019-10-22 Thread Milind Gupta
Hi Antonio, Do you know what would be the best way to store image data into a Lua file. When I convert the image data to a table it is very large for a image of the size HALFxHALF. Regards, Milind ___ Iup-users mailing list

[Iup-users] IUPPLOT: Query the dataset

2019-09-17 Thread Milind Gupta
Hi, How can I query the dataset for a plot? Can it be queries using the dataset userdata or do I have to maintain my own copy of the dataset? Is there any documentation on how the dataset userdata can be used? Thanks, Milind ___

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

2019-09-17 Thread Milind Gupta
the point to be displayed. > You can use the IupPlotSetSample function to change the dataset value. > > Best, > Scuri > > > Em seg, 16 de set de 2019 às 17:04, Milind Gupta > escreveu: > >> >>> >>> By the way did you noticed that there is curso

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

2019-09-16 Thread Milind Gupta
es it have a callback that I can use? Thanks, Milind > Best, > Scuri > > > Em seg, 16 de set de 2019 às 00:44, Milind Gupta > escreveu: > >> Hi, >> Is there a way to get the X value as plotted on the graph for a >> dataset given the Y value? I am try

[Iup-users] IUP Plot dataset y values

2019-09-15 Thread Milind Gupta
Hi, Is there a way to get the X value as plotted on the graph for a dataset given the Y value? I am trying to make a moving cursor on the dataset when the mouse moves. Can it be accessed through the dataset userdata? Thanks, Milind ___

[Iup-users] iupplot PaintTo

2019-09-12 Thread Milind Gupta
Hi, Is it possible to use the PaintTo function and confine the plot inside a region in a given cdcanvas? So if I have a large canvas area where I have other text, etc. Can I somehow confine the iupplot using paintto to draw in a certain rectangle region? Also does PaintTo have to

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

2019-06-04 Thread Milind Gupta
; *x*: X coordinate value of the tick number. > *decimal_symbol*: the decimal symbol used by the internal function. > > Returns: If IUP_IGNORE the number is not plotted. If IUP_CONTINUE the > internal function is used. > > > > > Em seg, 20 de mai de 2019 às 01:26, Milind Gu

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

2019-05-19 Thread Milind Gupta
to 1MHz. Milind On Wed, May 15, 2019 at 11:51 AM Antonio Scuri wrote: > No, but I don't think I fully understand what you want... > > Best, > Scuri > > > Em qua, 15 de mai de 2019 às 15:34, Milind Gupta > escreveu: > >> Yes the tick numbers that represent the X axi

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

2019-05-15 Thread Milind Gupta
Yes the tick numbers that represent the X axis scale values. On Wed, May 15, 2019 at 11:06 AM Antonio Scuri wrote: > Hi, > > Are you talking about the tick numbers on the axis? > > Best, > Scuri > > > Em qua, 15 de mai de 2019 às 14:51, Milind

[Iup-users] IUP Plot X Axis Ticks

2019-05-15 Thread Milind Gupta
Hi, Is there a way that I can plot a graph using a set of numbers for the X values but on the graph display a different set of transformed values. So that the scaling of the axis is set by the original set and the second set is only used to display on the plot for better reading. Thanks,

Re: [Iup-users] Plot title with multiple plots

2018-11-16 Thread Milind Gupta
Thanks! On Fri, Nov 16, 2018 at 8:35 AM Antonio Scuri wrote: > It is a bug. As soon as I fixed I'll let you know. > > Best, > Scuri > > > Em qui, 15 de nov de 2018 às 19:55, Milind Gupta > escreveu: > >> Hi, >>When I have multiple plots def

[Iup-users] Plot title with multiple plots

2018-11-15 Thread Milind Gupta
Hi, When I have multiple plots defined the plot title does not show up. Is that how it is supposed to be? Thanks, Milind Virus-free. www.avast.com

[Iup-users] IUP plot call back on zoom

2018-11-11 Thread Milind Gupta
Hi, Is there a way to detect when a plot has been zoomed in? Thanks, Milind ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users

Re: [Iup-users] iupList size control

2018-11-07 Thread Milind Gupta
ot;YES" in iuplist does not effect this behavior. So what I understand is that if iuplist is used and it is going to be dynamically populated at runtime you are now forced to use visiblelines attribute to prevent the list elements from being inaccessible. Milind > > Em qua, 7 de

Re: [Iup-users] iupList size control

2018-11-07 Thread Milind Gupta
ing to be dynamically populated at > runtime you are now forced to use visiblelines attribute > > This not a "now", it was always like this. visiblelines was created to > solve that. Can't change that without affecting existing applications. > > Best, > Scuri &

Re: [Iup-users] Clientsize vs size

2018-11-07 Thread Milind Gupta
CLIENTSIZE=969x798 > RASTERSIZE=1001x877 CLIENTSIZE=975x806 > RASTERSIZE=1007x883 CLIENTSIZE=981x812 > RASTERSIZE=1010x886 CLIENTSIZE=984x815 > RASTERSIZE=1011x888 CLIENTSIZE=985x817 > > Are you using the RASTERSIZE or the SIZE attribute? > > Best, > Scuri > > > Em qu

[Iup-users] Clientsize vs size

2018-11-07 Thread Milind Gupta
Hi, When I query the clientsize for a dialog it comes out to be much larger than the size attribute. The elements even though seem a confined in the display area. Why is that? Thanks, Milind ___ Iup-users mailing list

Re: [Iup-users] iupList size control

2018-11-07 Thread Milind Gupta
it is placed? Milind On Wed, Nov 7, 2018 at 9:05 AM Antonio Scuri wrote: > No, there isn't. > > Best, > Scuri > > Em qua, 7 de nov de 2018 15:02, Milind Gupta escreveu: > >> Thanks Antonio, >>Is there a way to find our how many visible lines would fit

Re: [Iup-users] iupList size control

2018-11-07 Thread Milind Gupta
; Best, > Scuri > > > Em qua, 7 de nov de 2018 00:02, Milind Gupta escreveu: > >> Hi, >>I have a multiple selection list control. During the operation if >> I put a lot of elements in the list element the scroll bars show up. But if >> the dialog

[Iup-users] iupList size control

2018-11-06 Thread Milind Gupta
Hi, I have a multiple selection list control. During the operation if I put a lot of elements in the list element the scroll bars show up. But if the dialog is resized the list control size immediately explodes to however large it needs to be to remove the scrollbars and goes beyond what

Re: [Iup-users] Strange error using iup.plot on linux

2017-10-18 Thread Milind Gupta
The OS is Arch Linux. On Wed, Oct 18, 2017 at 12:21 AM, Milind Gupta <milind.gu...@gmail.com> wrote: > Hi, > One of my users is getting this error when using iupplot on Arch > Linux for plotting a large dataset: > > (lua:6375): Gtk-WARNING **: Theme parsing error: gtk

Re: [Iup-users] Drawing over gl controls

2017-07-27 Thread Milind Gupta
utes to do that for you. > > See the attached example. > > Best, > Scuri > > > 2017-07-26 14:09 GMT-03:00 Antonio Scuri <antonio.sc...@gmail.com>: > >> I haven't looked at it yet. I'm on vacation. Be back tomorrow. >> >> Best, >> Scuri

Re: [Iup-users] Drawing over gl controls

2017-07-26 Thread Milind Gupta
Hi Antonio, Any suggestions why defining the action call back is causing an error? Milind On Tue, Jul 25, 2017 at 8:42 AM, Milind Gupta <milind.gu...@gmail.com> wrote: > Hi Antonio, > Please see the attached example. When I run this I get this > error: &

Re: [Iup-users] Drawing over gl controls

2017-07-25 Thread Milind Gupta
drawing while the > controls are drawn on the foreground. So I think that one possible approach > is to use this glsubcanvas with zorder=top. > > In the error it seems that you are trying to set a non function as a > callback. You should check that. > > Best, > Scu

Re: [Iup-users] Drawing over gl controls

2017-07-24 Thread Milind Gupta
n function 'iuplua.SetCallback' [string "iuplua.lua"]:139: in metamethod '__newindex' In my program it points to the link where the action callback function starts. On Mon, Jul 24, 2017 at 3:16 PM, Milind Gupta <milind.gu...@gmail.com> wrote: > Hi, >I notice that if I

[Iup-users] Drawing over gl controls

2017-07-24 Thread Milind Gupta
Hi, I notice that if I draw anything on the glcanvasbox it is always behind the glcontrols like gllabel, etc. Is there a way for me to draw and be on top of those controls? Thanks, Milind -- Check out the vibrant

[Iup-users] Drawing on glcanvasbox using CD

2017-07-06 Thread Milind Gupta
Hi Antonio, I tried drawing on the glcanvas box using CD library. The drawing works but as expected when I clear the canvas during a resize and redraw it also erases the controls that were on the canvas box. Is there a proper way to do this? Only reason I am trying to use CD is because

Re: [Iup-users] iup glframe dimensions

2017-07-06 Thread Milind Gupta
twice. On Thu, Jul 6, 2017 at 11:43 AM, Milind Gupta <milind.gu...@gmail.com> wrote: > Hi Antonio, >Is it possible that I just use the Canvas Draw library to draw on > the glcanvasbox? > > > Milind > > > On Mon, Jul 3, 2017 at 11:57 PM, Milind Gupta <mili

Re: [Iup-users] iup glframe dimensions

2017-07-04 Thread Milind Gupta
+)x(%d+)") >> local cnv_w,cnv_h = cnv.rastersize:match("(%d+)x(%d+)") >> >> -- calculate the bottom middle point >> local x = frm_x + frm_w/2 >> local y = frm_y + frm_h >> >> local cnvx = cnv_w/2 >> local cnvy = cnv_h/2 &

Re: [Iup-users] iup glframe dimensions

2017-06-29 Thread Milind Gupta
So the main thing is I am trying to use the frame box as a box in a flow almost like a flowchart. So I want to connect lines from a frame box to some other point. On Thu, Jun 29, 2017 at 3:29 PM, Milind Gupta <milind.gu...@gmail.com> wrote: > I have attached a sample code. This ha

Re: [Iup-users] IUP in my "Swift on Android" presentation at try! Swift Tokyo

2017-04-19 Thread Milind Gupta
Very impressive. Thank you for sharing. On Wed, Apr 19, 2017 at 8:12 AM, Eric Wing wrote: > Hi all, > > I recently spoke at a conference in Tokyo (try! Swift) about Swift on > Android. In the final part, I talk about cross-platform library > solutions and give a demo with

[Iup-users] Printing in the tutorials

2017-04-17 Thread Milind Gupta
Hi Antonio, It would be really helpful if the tutorials can include printing. I assume we would have to use the CD printer driver for the paint application. Would we have to use that for the notepad as well? Or is there any shortcut way to print the notepad? Thanks, Milind

Re: [Iup-users] Displaying IM Image on a canvas

2017-04-11 Thread Milind Gupta
nvas:Activate() > > Best, > Scuri > > > On Mon, Apr 10, 2017 at 8:25 PM, Milind Gupta <milind.gu...@gmail.com> > wrote: > >> Hi Antonio, >> I have this piece of code from which I am trying to display the >> image on the canvas. It do

[Iup-users] Displaying IM Image on a canvas

2017-04-10 Thread Milind Gupta
Hi Antonio, I have this piece of code from which I am trying to display the image on the canvas. It does not work - I see nothing on the canvas. What am I doing wrong here? Any help would be appreciated. Thanks, Milind imImage_canvas.lua Description: Binary data

[Iup-users] Check the UI periodically

2017-02-23 Thread Milind Gupta
Hello, I have a long process that runs when triggerred from a UI. I don't care very much when the UI is not responding for long periods of time. I am although looking for a way to update the text box on the UI and still maintain control in my long process. Also it would be nice if I decide

Re: [Iup-users] iup plot not respecting AXS_YMIN and AXS_YMAX

2017-02-07 Thread Milind Gupta
summer vacation with my family. I'll be back on the end of > February. > > I think you must set AUTOMIN and AUTOMAX to NO also. > > Best, > Scuri > > Em 06/02/2017 15:38, "Milind Gupta" <milind.gu...@gmail.com> escreveu: > > Hi Antonio, >

[Iup-users] iup plot not respecting AXS_YMIN and AXS_YMAX

2017-02-06 Thread Milind Gupta
Hi Antonio, I am trying to set the YMIN and YMAX values but the Y axis does not come out with the right scale. I have attached a sample with the problem. I am using IUP 3.20. Thanks, Milind plot.lua Description: Binary data

Re: [Iup-users] Get imImage from iupImage

2017-01-24 Thread Milind Gupta
image:SetPixels(pixels) > > To simplify this I added IupImageToImImage to SVN. > > Best, > Scuri > > > On Tue, Jan 24, 2017 at 1:00 PM, Milind Gupta <milind.gu...@gmail.com> > wrote: > >> Hi Antonio, >>How do I specify an IM image in lua? I pref

Re: [Iup-users] Get imImage from iupImage

2017-01-24 Thread Milind Gupta
ur image is in Lua, you can also specify an IM image in Lua. > > Best, > Scuri > > > On Mon, Jan 23, 2017 at 6:25 PM, Milind Gupta <milind.gu...@gmail.com> > wrote: > >> Hi, >> I have a image on a label on one of my dialogs. I want to resize >> the

[Iup-users] Get imImage from iupImage

2017-01-23 Thread Milind Gupta
Hi, I have a image on a label on one of my dialogs. I want to resize the image when the dialog is resized to fill the growing size of the label. To do this I was looking to convert the iup image to IM image so I can use the resize operation and then convert the image back to iup image and

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

2016-12-02 Thread Milind Gupta
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

Re: [Iup-users] IUP plot axis labes

2016-11-04 Thread Milind Gupta
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 <milind.gu...@gmail.com> wrote: > Hi, >

  1   2   3   >