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

2015-09-16 Thread Milind Gupta
If we define an attribute HIDESBX and HIDESBY to manually hide and show the scrollbar I think the supporting logic can be written and this functionality implemented. I created a Lua module in C basically to wrap the ACTION and RESIZE_CB callbacks for the matrix. I do that so I can immediately set

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

2015-09-16 Thread Antonio Scuri
Ok. That's something I want too, but that's not easy. I tried before without success. The IupMatrix architecture must be improved. Meanwhile there are a few workarounds using LIMITEXPAND or RESIZEMATRIX_CB + FITTOSIZE. Sorry. This is something we need to improve for the future. Just won't get

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

2015-09-16 Thread Milind Gupta
Hi Antonio, Thanks for looking into this. The problem I see with scrollbars right now is that they are shown if the Matrix is large enough to fill the space it is put in. The matrix control requires that the matrix size be smaller than the maximum size by the scroll bar size. So when

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

2015-09-15 Thread Antonio Scuri
Hi Milind, I'm about to release version 3.16, but before that I would like to take a look at this request. So, you want the scrollbars to be enabled, and you want autohide to be enabled too, as in the default behavior. But you are not satisfied with the scrollbar auhide bahavior, that's it?

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

2015-07-15 Thread Antonio Scuri
I don't know. I have to investigate more. The IupMatrix is quite complex. But it maybe possible. I'll let you know. Best, Scuri On Mon, Jul 13, 2015 at 1:08 PM, Milind Gupta wrote: > So do you think addition of a Hide scroll bar attribute is possible? > > On Mon, Jul 13, 2015 at 8:36 AM, Ant

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

2015-07-13 Thread Milind Gupta
So do you think addition of a Hide scroll bar attribute is possible? On Mon, Jul 13, 2015 at 8:36 AM, Antonio Scuri wrote: >I don't think so. > > Scuri > Em 13/07/2015 12:34, "Milind Gupta" escreveu: > >> Hi Antonio, >>The SCROLLBAR attribute says its on creation only. So the wa

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

2015-07-13 Thread Antonio Scuri
I don't think so. Scuri Em 13/07/2015 12:34, "Milind Gupta" escreveu: > Hi Antonio, >The SCROLLBAR attribute says its on creation only. So the way I > was hiding the scroll bar was setting dx > xmax-xmin and same for dy. But > doing that in Lua does not work probably because the m

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

2015-07-13 Thread Milind Gupta
Hi Antonio, The SCROLLBAR attribute says its on creation only. So the way I was hiding the scroll bar was setting dx > xmax-xmin and same for dy. But doing that in Lua does not work probably because the matrix action and resize call backs calculate and overwrite my value. Was there any o

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

2015-07-13 Thread Antonio Scuri
IupMatrix inherits fom IupCanvas. Check the SCROLLBAR attribute. Best, Scuri On Mon, Jul 13, 2015 at 5:24 AM, Milind Gupta wrote: > Hi Antonio, > Is it possible to get an attribute in IUP Matrix that allows > the scroll bars to be force hidden. I was able to get the behaviour by

[Iup-users] Attribute request for IUP Matrix

2015-07-13 Thread Milind Gupta
Hi Antonio, Is it possible to get an attribute in IUP Matrix that allows the scroll bars to be force hidden. I was able to get the behaviour by setting dx/dy in a C function in both the action and the resize call back after the internal callbacks were done. It would be nice if this is i