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 the dx and dy
to large values after the original call back to hide the scroll bar when
the HIDESBX attribute is set to YES. It works but the starting is not
perfect. When the dialog is created the scroll bar although is hidden the
Matrix under the scroll bar is not redrawn until some resize events happen
but after that it looks quite good.
So I think if the HIDESBX/HIDESBY attributes are checked in the
Matrix ACTION and RESIZE_CB callbacks wherever DX and DY are set and set
them to a large value if the attributes are YES, that should create this
feature. But probably there is a bigger picture. I have written a small
module in which I am able to hide and show the scroll bars of the matrix
manually by having 2 matrix elements and using call back mode so that both
matrix are always in sync and one always has scrollbar disabled and one has
it on. Using the ZBOX I put one of them on the front which I want to show.
Works very good. But it would be really nice if the matrix would allow it
by itself.
Milind
On Wed, Sep 16, 2015 at 5:41 PM, Antonio Scuri <[email protected]>
wrote:
> 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 it
> ready for the next release.
>
> Best,
> Scuri
>
>
> On Wed, Sep 16, 2015 at 7:03 PM, Milind Gupta <[email protected]>
> wrote:
>
>> 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 the
>> scroll bar is not shown then we see a blank area where the scroll bars
>> could would be shown when the matrix increases in size.
>> I wanted to keep the scroll bars hidden even when the
>> matrix occupies the entire area of the control and only show the scroll
>> bars when the matrix wants to grow beyond that. Now when the scroll bars
>> have to be shown then to make things visible the visible area of the matrix
>> would have to be reduced a little bit to allow the scroll bars to be
>> displayed.
>> I was trying to do it manually by sizing the matrix to the
>> size available and then forcing the scroll bars to auto hide by setting dx
>> and dy but that does not work properly because I think IUP recalculates
>> them and the scroll bar shows up back.
>>
>> Thanks,
>> Milind
>>
>>
>> On Tue, Sep 15, 2015 at 12:50 PM, Antonio Scuri <[email protected]
>> > wrote:
>>
>>> 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?
>>>
>>> So in which situation you need to hide a scrollbar that is not being
>>> hidden?
>>>
>>> Best,
>>> Scuri
>>>
>>>
>>> On Wed, Jul 15, 2015 at 2:59 PM, Antonio Scuri <[email protected]
>>> > wrote:
>>>
>>>> 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 <[email protected]>
>>>> wrote:
>>>>
>>>>> So do you think addition of a Hide scroll bar attribute is possible?
>>>>>
>>>>> On Mon, Jul 13, 2015 at 8:36 AM, Antonio Scuri <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> I don't think so.
>>>>>>
>>>>>> Scuri
>>>>>> Em 13/07/2015 12:34, "Milind Gupta" <[email protected]>
>>>>>> 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 matrix action
>>>>>>> and
>>>>>>> resize call backs calculate and overwrite my value. Was there any other
>>>>>>> way?
>>>>>>>
>>>>>>> Milind
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jul 13, 2015 at 7:30 AM, Antonio Scuri <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> IupMatrix inherits fom IupCanvas. Check the SCROLLBAR attribute.
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> Scuri
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Jul 13, 2015 at 5:24 AM, Milind Gupta <
>>>>>>>> [email protected]> 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 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 in
>>>>>>>>> built with a attribute like HIDESBX and HIDESBY. This allows the
>>>>>>>>> matrix to
>>>>>>>>> be drawn in the whole space without showing the reserved scroll bar
>>>>>>>>> size on
>>>>>>>>> the edges.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Milind
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> Don't Limit Your Business. Reach for the Cloud.
>>>>>>>>> GigeNET's Cloud Solutions provide you with the tools and support
>>>>>>>>> that
>>>>>>>>> you need to offload your IT needs and focus on growing your
>>>>>>>>> business.
>>>>>>>>> Configured For All Businesses. Start Your Cloud Today.
>>>>>>>>> https://www.gigenetcloud.com/
>>>>>>>>> _______________________________________________
>>>>>>>>> Iup-users mailing list
>>>>>>>>> [email protected]
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Don't Limit Your Business. Reach for the Cloud.
>>>>>>>> GigeNET's Cloud Solutions provide you with the tools and support
>>>>>>>> that
>>>>>>>> you need to offload your IT needs and focus on growing your
>>>>>>>> business.
>>>>>>>> Configured For All Businesses. Start Your Cloud Today.
>>>>>>>> https://www.gigenetcloud.com/
>>>>>>>> _______________________________________________
>>>>>>>> Iup-users mailing list
>>>>>>>> [email protected]
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Don't Limit Your Business. Reach for the Cloud.
>>>>>>> GigeNET's Cloud Solutions provide you with the tools and support that
>>>>>>> you need to offload your IT needs and focus on growing your business.
>>>>>>> Configured For All Businesses. Start Your Cloud Today.
>>>>>>> https://www.gigenetcloud.com/
>>>>>>> _______________________________________________
>>>>>>> Iup-users mailing list
>>>>>>> [email protected]
>>>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Don't Limit Your Business. Reach for the Cloud.
>>>>>> GigeNET's Cloud Solutions provide you with the tools and support that
>>>>>> you need to offload your IT needs and focus on growing your business.
>>>>>> Configured For All Businesses. Start Your Cloud Today.
>>>>>> https://www.gigenetcloud.com/
>>>>>> _______________________________________________
>>>>>> Iup-users mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Don't Limit Your Business. Reach for the Cloud.
>>>>> GigeNET's Cloud Solutions provide you with the tools and support that
>>>>> you need to offload your IT needs and focus on growing your business.
>>>>> Configured For All Businesses. Start Your Cloud Today.
>>>>> https://www.gigenetcloud.com/
>>>>> _______________________________________________
>>>>> Iup-users mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>>
>>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Iup-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> Get real-time metrics from all of your servers, apps and tools
>> in one place.
>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> _______________________________________________
>> Iup-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users